AddUserToRole Method
Syntax
Context.Security.AddUserToRole as L (UserName as C, RoleName as C)
Arguments
- UserNameCharacter
The user name.
- RoleNameCharacter
The name of the role to which the user will be added.
Returns
- resultLogical
Returns .T. if the role was added; otherwise .F.
Description
Adds a user to the supplied role.
Discussion
Context.Security.AddUserToRole() adds a user to the supplied role. Check Context.Security.CallResult.Success before using the return value.