UserGroupRemove
You can use these functions for Optiva Workflows.
Purpose
The function UserGroupRemove revokes one or more Groups from the Optiva user.
Syntax
int UserGroupRemove(string UserCode, string GroupsList)
Return Value
If the code is successful a value greater than zero (0) is displayed or else failed.
Argument
| Part | Description |
|---|---|
UserCode, LabCode |
The name of the user must be provided. |
Group/GroupList |
The group name (or) semi colon separated list of group names that needs to be revoked 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:
UserGroupRemove("FSI", "ADMIN");
Example 2:
UserGroupRemove("FSI", "ADMIN;CORE");