GetAccountID
(Security Manager Module
Description: | Returns the account ID of the named account. |
Returns: | String |
Usage: | Script or steady state. |
Related to: | GetAccountInfo | GetFullName | GetGroupName | GetUserName | IsLoggedOn | IsSecured | IsSuspended | SecurityCheck | UIErrorToText |
Format: | \SecurityManager.GetAccountID([AccountName]) |
Parameters: |
AccountName |
Optional. The name of the account to obtain the account ID for. |
Comments: |
If AccountName is Invalid or not specified, returns the account ID of the caller’s account. A common use is to store a retained instance of a module, which is linked to the current user. See: SetInstanceName for more information and an example. |
Example:
SecureID = \SecurityManager.GetAcountID();
SecureID is set to the ID of the user currently signed in for this session / workstation.