removeUserFromGroupPVSS()

Removes a WinCC OA group from a user.

Synopsis

bool removeUserFromGroupPVSS(unsigned groupID, unsigned userID);

Parameters

Parameter Description
groupID

The WinCC OA group ID of the group the user is removed from.

//0 = root

//1 = PARA

//2 = operatorAll

//3 = operator

//4 = guest

//5 or greater values can be used for your own WinCC OA groups.

In order to get the groupID, use the function UserManagementUser: getUser()

userID WinCC OA user ID of the user that is removed from the group.

Return value

TRUE if the user was successfully removed and FALSE if the group or the user does not exist or the removing fails.

Description

Removes a WinCC OA group from a user. If neither the group nor the user exists, the function returns false.

If a user never belonged to a group, the function still returns true.

Example

Removes the WinCC OA group "test" from the user "guest".

main()
{
  removeUserFromGroupPVSS(5, 4096);
  //user group test (5), user guest (4096)
}

Assignment

User administration

Availability

CTRL