UserRoleRemove
You can use these functions for Optiva Workflows.
Purpose
The functionUserRoleAdd revokes one or more role to the Optiva user.
Syntax
int UserRoleRemove(string UserCode, string LabCode, string RolesList)
Return Value
If the code is successful a value greater than zero (0) is displayed or else failed.
Argument
| Part | Description |
|---|---|
UserCode |
The name of the user must be provided. |
Group/GroupList |
The role name (or) semi colon separated list of role names that needs to be tagged for the user must be provided. |
SetPassword Object method
This syntax assigns a password to the user account.
ObjMethod(symbol, code, "setPassword", oldPassword, newPassword)
Example
Function wf_start() As Long
UserGroupRemove("", "ADMIN;QA")
UserRoleRemove("", "GLOBAL", "RL_ADMIN;RL_QA")
End Function
Example 1:
UserRoleRemove("FSI", "GLOBAL", "ADMIN");
Example 2:
UserRoleRemove("FSI", "GLOBAL", "ADMIN;CORE");