Skip to content

GET_USERGROUP_ACCESS_STR ​

This AdoScript command returns the current access string of an ADOxx usergroup.

Syntax ​

leo-grammar
CC "UserMgt" GET_USERGROUP_ACCESS_STR usergroup:strValue

# --> RESULT ecode:intValue accessstr:strValue

Parameters ​

  • usergroup (strValue) - the name of the usergroup

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success.
  • accessstr (strValue) - contains the current access rights of this usergroup.

Details ​

The syntax of the usergroup access string is not published. This command is only to get an access string from a certain usergroup and assign those access rights to another ADOxx usergroups.

See Also ​

Examples ​

leo-grammar
CC "UserMgt" GET_USERGROUPS_ACCESS_STR usergroup:"Admins"
IF (ecode = 0)
{
    CC "AdoScript" INFOBOX (accessstr)
}
ELSE
{
    CC "AdoScript" ERRORBOX "Could not get the access string of the usergroup Admins!"
    EXIT
}

CC "UserMgt" SET_USERGROUP_ACCESS_STR usergroup:"Heroes" accessstr:(accessstr)
IF (ecode = 0)
{
    CC "AdoScript" INFOBOX ("Access string successfully set!")
}
ELSE
{
    CC "AdoScript" ERRORBOX "Could not set the access string!"
}

Versions and Changes ​

Available since ADOxx 1.3