$grantUserAccess

Function grantUserAccess grants the specified access for the named user.
Syntax
    $grantUserAccess{username}{access_value_1}{access_value_2} ... {access_value_n}
DocumentationFunction $grantUserAccess grants the specified accesses for the named user.

    Parameters:
      username, the name of the user to grant the access for.
      access_value_1 through access_value_n, the values of the accesses to be granted for the named user.
      Valid access values are:
        - ACCESS_CREATE
        - ACCESS_DELETE
        - ACCESS_READ
        - ACCESS_UPDATE
        - ACCESS_VISIBLE
        - ACCESS_DATABASE_CREATE
        - ACCESS_DATABASE_REMOVE
        - ACCESS_DATABASE_READ
        - ACCESS_DATABASE_UPDATE
        - ACCESS_ALL
    Throws:
      java.lang.IllegalArgumentException if the named user does not exist or if any access value is not one of the list above.
    Note:
      the accesses are granted for the current branch and its children only.
      the changes of the user accesses don't affect the groups the user is member of.
Examples
Grant an access for the user named 'Jack':

    $grantUserAccess {Jack}{ACCESS_DELETE}
GroupSecurity
Minimum required transaction-mode:UPDATE=SECURITY
Required scripting permission of the developerPERMISSION_FL_ADMINISTRATIVE
Minimum parameters2
Maximum parameters <unlimited>