Function ''AddRoleToUser()''

Top  Previous  Next

Adds a role to the given user account.

Syntax:

AddRoleToUser(username, rolename)

 

Parameters:

username 

the name of the user account.

rolename 

the name of the role to add to the user account.

 

Completion Codes:

 0: Normal completion

 8: username is invalid or disabled or rolename is not found.

12: Syntax error or Security Broker error

 

Example:

AddRoleToUser(username, 'MANAGER')