Skip to content

REMOVE_USERS_FROM_GROUPS

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

Syntax

leo-grammar
CC "UserMgt" REMOVE_USERS_FROM_GROUPS 	users:strValue 
										usergroups:strValue
										[ sep:strValue ]

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

# --> RESULT ecode:intValue

Parameters

  • users (strValue) - string containing user names separated by the character passed with sep.
  • usergroups (strValue) - 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).
  • sep (strValue, optional) - default value for sep is ";" (semicolon). However, it is recommended to use sep:"\t" (TAB).

Returns

  • ecode (intValue) - Contains the error code or is 0 in case of success.

Details

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

Examples

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

Versions and Changes

Available since ADOxx 1.3