SBM ModScript Reference → Programming SBM ModScript → Application Objects → Object Types → UGBase
UGBase is an object type for internal use and supports concepts useful to users and groups. UGBase objects are never merely of type UGBase; they must be of type User. The type Group also inherits from UGBase and is created when Ext.CreateAppRecord is invoked using the group's table ID.
AppRecord->UGBase
GetDisplayName(): Returns this user's full name.
Input: N/A
Output: N/A
Return: (string) – The full name of this user.
Member(groupId): Find out whether a user is a member of a group.
Input: groupId (Long Integer) – TS_ID of the group to test for membership. The group ID can be looked up from its name in the TS_GROUPS table using AppRecord methods.
Output: N/A
Return: (Long Integer) – Non-zero if this user is a member of the given group; zero if not.
UniqueName(): Get this user's login ID, which is unique.
Input: N/A
Output: N/A
Return: (string) – This user's login name.
Copyright © 2007–2017 Serena Software, Inc. All rights reserved.