GET_SYSUSER_ID

GET_SYSUSER_ID returns the ID of an ADOxx system user (userid).

Syntax

CC "UserMgt" GET_SYSUSER_ID user:strValue domain:strValue
                            logon-name-type:"samaccountname" | "principalname"
                            [ ignore-case ]
# --> RESULT userid:intValue ecode:intValue

Parameters

userstrValue, user name
domainstrValue, domain name
logon-name-typeogon-name type: “samaccountname” (user@domain) or “principalname” (domain\user).
ignore-casemodifier, if given, case is ignored concerning the user name.  This means that it does not matter if the user name is given in upper or lower case (or mixed).  If a user with such a name exists, its ID will be returned anyway.

Returns

ecodeintValue, 0 (meaning success) or 1 (meaning error).
useridintValue, ID of the specified ADOxx system user

Remarks

Parameters

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

Example