Skip to content

GET_SYSUSER_INFO ​

GET_SYSUSER_INFO returns data related to an ADOxx system user ID.

Syntax ​

leo-grammar
CC "UserMgt" GET_SYSUSER_INFO userid:intValue

#--> RESULT username:strValue domain:strValue 
			logon-name-type:"samaccountname" | "principalname"
			ecode:intValue .

Parameters ​

  • userid (intValue) - ID of an ADOxx system user

Returns ​

  • ecode (intValue) - 0 (meaning success) or 1 (meaning error).
  • username (strValue) - name of the specified user
  • domain (strValue) - domain name related to the specified user
  • logon-name-type (strValue samaccountname" (username@domain) or "principalname" (domain\username))

Details ​

This command is available within both the ADOxx Development Toolkit and the ADOxx Modelling Toolkit.

See Also ​

Examples ​

leo-grammar
CC "UserMgt" GET_CURRENT_USER_ID
IF (usertype = "system") {
    CC "UserMgt" GET_SYSUSER_INFO userid:(userid)
    SET n:(cond(?logon-name-type = "samaccountname",
                username + "@" + domain,
                domain + "\\" + username))
} ELSE {
    CC "UserMgt" GET_USER_NAME userid:(userid)
    SET n:(username)
}
CC "AdoScript" INFOBOX ("Hello " + n + "!")

Versions and Changes ​

Available since ADOxx 1.3