grr/server/grr_response_server/db.py
def WriteGRRUser(self,
                   username,
                   password=None,
                   ui_mode=None,
                   canary_mode=None,
                   user_type=None):
    """Writes user object for a user with a given name.

    If a user with the given username exists, it is overwritten.

    Args:
      username: Name of a user to insert/update.
      password: If set, should be a string with a new encrypted user password.
      ui_mode: If set, should be a GUISettings.UIMode enum.
      canary_mode: If not None, should be a boolean indicating user's preferred
        canary mode setting.
      user_type: GRRUser.UserType enum describing user type (unset, standard or
        admin).
    """
Writes user object for a user with a given name.

    If a user with the given username exists, it is overwritten.

    Args:
      username: Name of a user to insert/update.
      password: If set, should be a string with a new encrypted user password.
      ui_mode: If set, should be a GUISettings.UIMode enum.
      canary_mode: If not None, should be a boolean indicating user's preferred
        canary mode setting.
      user_type: GRRUser.UserType enum describing user type (unset, standard or
        admin).
    
Writes user object for a user with a given name.
If a user with the given username exists, it is overwritten.
Writes user object for a user with a given name . If a user with the given username exists it is overwritten .
def WriteGRRUser(self,
                   username,
                   password=None,
                   ui_mode=None,
                   canary_mode=None,
                   user_type=None):
def WriteGRRUser ( self , username , password = None , ui_mode = None , canary_mode = None , user_type = None ) :
Writes user object for a user with a given name.
Writes user object for a user with a given name .
"""Writes user object for a user with a given name.

    If a user with the given username exists, it is overwritten.

    Args:
      username: Name of a user to insert/update.
      password: If set, should be a string with a new encrypted user password.
      ui_mode: If set, should be a GUISettings.UIMode enum.
      canary_mode: If not None, should be a boolean indicating user's preferred
        canary mode setting.
      user_type: GRRUser.UserType enum describing user type (unset, standard or
        admin).
    """
self
username
Name of a user to insert/update.
Name of a user to insert / update .
password
If set, should be a string with a new encrypted user password.
If set should be a string with a new encrypted user password .
ui_mode
If set, should be a GUISettings.UIMode enum.
If set should be a GUISettings . UIMode enum .
canary_mode
If not None, should be a boolean indicating user's preferred
canary mode setting.
If not None should be a boolean indicating user ' s preferred canary mode setting .
user_type
GRRUser.UserType enum describing user type (unset, standard or
admin).
GRRUser . UserType enum describing user type ( unset standard or admin ) .