Skip to content

GET_USER_ID

GET_USER_ID returns the ID of an ADOxx user.

Syntax

leo-grammar
CC "UserMgt" GET_USER_ID user:strValue .


# --> RESULT ecode:intValue userid:intValue .
CC "UserMgt" GET_USER_ID user:strValue .


# --> RESULT ecode:intValue userid:intValue .

Parameters

  • user (strValue) - the user which id should be returned

Returns

  • ecode (intValue) - Contains the error code or is 0 in case of success.
  • userid (intValue) - The ID of the specified ADOxx user.

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!

See Also

Examples

leo-grammar
CC "UserMgt" GET_USER_ID user:"Travolta"
IF (ecode = 0) {
    CC "AdoScript" INFOBOX (STR userid)
} ELSE {
    CC "AdoScript" ERRORBOX "User ID could not be retreived!"
}
CC "UserMgt" GET_USER_ID user:"Travolta"
IF (ecode = 0) {
    CC "AdoScript" INFOBOX (STR userid)
} ELSE {
    CC "AdoScript" ERRORBOX "User ID could not be retreived!"
}

Versions and Changes

Available since ADOxx 1.3