getGroupsOfUserPVSS()
Returns the group memberships for a specific user. The function is obsolete as of WinCC OA version 3.17. The function is, however, available for compatibility reasons. Use the function UserManagement::getGroupsByUser(UserManagementUser user)
Synopsis
dyn_mapping getGroupsOfUserPVSS(unsigned pvssUserID);
Parameters
| Parameter | Description | 
|---|---|
| pvssUserID | WinCC OA user ID of the user whose groups are returned. | 
Return value
The group memberships for a specific user.
Description
Returns the group memberships for a specific user. The function returns a dyn_mapping containing all groups of given user with 4 properties in a mapping: OSID, PrimaryGroupOSID, Name and PVSSID.
 Example
Example
Returns the group memberships for the user "operator" (3072).
main()
{
  dyn_mapping m;
  m = getGroupsOfUserPVSS(3072);
  DebugN("Groups of the user operator ",m);
}Assignment
User administration
Availability
CTRL
