'Copy usernames from knowledgebase to USERNAMES.
Args:
client: client object open for writing'

def CopyUserNamesFromKnowledgeBase(self, client):

    kb = self.state.knowledge_base.users
    usernames = [user.username for user in kb if user.username]
    client.AddAttribute(client.Schema.USERNAMES('    '.join(usernames)))
