REMOVE_USERS_FROM_GROUPS

REMOVE_USERS_FROM_GROUPS removes one or more ADOxx users from one or more user groups.

Syntax

CC "UserMgt" REMOVE_USERS_FROM_GROUPS   users:strValue
                                        usergroups:strValue
                                        [ sep:strValue ]
# --> RESULT ecode:intValue

Parameters

usersstrValue, string containing user names separated by the character passed with sep.
usergroupsstrValue, one or more usergroup names, separated by the character passed with sep.  The default value for sep is “;” (semicolon).  However, it is recommended to use sep:”\t” (TAB).
sepstrValue, default value for sep is “;” (semicolon).  However, it is recommended to use sep:”\t” (TAB).

Returns

ecodeintValue, Contains the error code or is 0 in case of success.

Remarks

This command is available within both the ADOxx Development Toolkit and the ADOxx Modelling Toolkit.  In the Modelling Toolkit only users that also have access to the Development Toolkit may call this command!  However, with ACTIVATE_READONLY_COMMANDS_FOR_BPMTK this command can be activated also for non-admins (although it is actually not a readonly command).

See Also

Example 1

CC "UserMgt" REMOVE_USERS_FROM_GROUPS
        users:"Peter\tPaul\tMary"
        usergroups:"Group1\tGroup2"
        sep:"\t"
IF (ecode) {
    CC "AdoScript" ERRORBOX "Error!"
}