UserGroupAdd, UserGroupRemove

You can use these functions for Optiva Workflows.

Purpose

Adds a user to an Optiva group or removes a user from an Optiva group.

Syntax


Dim variable As Integer = UserGroupAdd(UserCode, GroupList)
Dim variable As Integer = UserGroupRemove(UserCode, GroupList)

Argument

Part Description
UserCode, LabCode User code and lab code. Default to the current values if not supplied.
GroupList A semicolon-separated list of groups 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