SBM ModScript Reference → Programming SBM ModScript → Object Types → UGBase → UGBase UniqueName() Method
Gets the unique name for the user or group.
| Parameter | Type | Description | 
|---|---|---|
| Type | Description | 
|---|---|
|  
                 string  | 
 
               
                 This user's login name.  | 
 
            
SBM ModScript version: 11.3.
Ext.WriteStream( Shell.User().UniqueName() );
Result:
chad
If the object is a group, this method returns the name of the group. If the object is a user, this method returns user's login ID.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.