UserRoleAdd, UserRoleRemove
You can use these functions for Optiva Workflows.
Purpose
Adds a user to an Optiva role or removes a user from an Optiva role.
Syntax
Dim variable As Integer = UserRoleAdd(UserCode, LabCode, RoleList)
Dim variable As Integer =UserRoleRemove(UserCode, LabCode, RoleList)
Argument
Part | Description |
---|---|
UserCode ,
LabCode
|
User code and lab code. Default to the current values if not supplied. |
RoleList
|
A semicolon-separated list of roles that are to be added or removed. |
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