def ShowUser(username, token=None):
 if (username is None):
  fd = aff4.FACTORY.Open('aff4:/users', token=token)
  for user in fd.OpenChildren():
   if isinstance(user, users.GRRUser):
    EPrint(user.Describe())
 else:
  user = aff4.FACTORY.Open(('aff4:/users/%s' % username), token=token)
  if isinstance(user, users.GRRUser):
   EPrint(user.Describe())
  else:
   EPrint(('User %s not found' % username))

def ShowUser ( username , token = None ) : if ( username is None ) : fd = aff4 . FACTORY . Open ( 'aff4:/users' , token = token ) for user in fd . OpenChildren ( ) : if isinstance ( user , users . GRRUser ) : EPrint ( user . Describe ( ) ) else : user = aff4 . FACTORY . Open ( ( 'aff4:/users/%s' % username ) , token = token ) if isinstance ( user , users . GRRUser ) : EPrint ( user . Describe ( ) ) else : EPrint ( ( 'User %s not found' % username ) )
implementation of the show_user command .