GET_USERGROUP_ACCESS_STR

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

Syntax

CC "UserMgt" GET_USERGROUP_ACCESS_STR usergroup:strValue
# --> RESULT ecode:intValue accessstr:strValue

Parameters

usergroupstrValue, the name of the usergroup

Returns

ecodeintValue, Contains the error code or is 0 in case of success.
accessstrstrValue, contains the current access rights of this usergroup.

Remarks

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

Example 1

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!"
}