UserGroupAdd
You can use these functions for Optiva Workflows.
Purpose
The function UserGroupAdd assign one or more groups to the Optiva user.
Syntax
int UserGroupAdd(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 needs to be provided. |
Group/GroupList |
The group name, or a semicolon separated list of group names, must be provided to tag the user. |
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:
UserGroupAdd("FSI", "ADMIN");
Example 2:
UserGroupAdd("FSI", "ADMIN;CORE");