Skip to content

SET_USER_ACCESS_STR

This AdoScript command changes the access string of an ADOxx user.

Syntax

leo-grammar
CC "UserMgt" SET_USER_ACCESS_STR user:strValue accessstr:strValue

# --> RESULT ecode:intValue
CC "UserMgt" SET_USER_ACCESS_STR user:strValue accessstr:strValue

# --> RESULT ecode:intValue

Parameters

  • user (strValue) - the name of the user
  • accessstr (strValue) - the access string which should be set.

Returns

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

Details

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

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!

See Also

Examples

leo-grammar
CC "UserMgt" GET_USER_ACCESS_STR user:"Superman"
IF (ecode = 0)
{
    CC "AdoScript" INFOBOX (accessstr)
}
ELSE
{
    CC "AdoScript" ERRORBOX "Could not get user access string!"
    EXIT
}

CC "UserMgt" SET_USER_ACCESS_STR user:"Superwoman" accessstr:(accessstr)
IF (ecode = 0)
{
    CC "AdoScript" INFOBOX ("Superwoman has now the same rights as Superman!"
}
ELSE
{
    CC "AdoScript" ERRORBOX ("Could not assign the rights to Superwoman!"
}
CC "UserMgt" GET_USER_ACCESS_STR user:"Superman"
IF (ecode = 0)
{
    CC "AdoScript" INFOBOX (accessstr)
}
ELSE
{
    CC "AdoScript" ERRORBOX "Could not get user access string!"
    EXIT
}

CC "UserMgt" SET_USER_ACCESS_STR user:"Superwoman" accessstr:(accessstr)
IF (ecode = 0)
{
    CC "AdoScript" INFOBOX ("Superwoman has now the same rights as Superman!"
}
ELSE
{
    CC "AdoScript" ERRORBOX ("Could not assign the rights to Superwoman!"
}

Versions and Changes

Available since ADOxx 1.3