addUserToGroupPVSS()
Adds a WinCC OA user to a user group in the WinCC OA user administration.
Synopsis
bool addUserToGroupPVSS(unsigned userID, unsigned groupID);
Parameter
Parameter | Description |
userID | The user ID of the WinCC OA user that is added to a group (e.g. 3072= operator). |
groupID |
The WinCC OA id of the group where the user will be added //0 = root //1 = PARA //2 = operatorAll //3 = operator //4 = guest //5 = your own user groups.... |
Return Value
The function returns false if neither group nor a user exists or if saving the changes fails. Otherwise the function returns true.
Description
Adds a WinCC OA user to a user group in the WinCC OA user administration.
Example
Adds the user operator to the user group "OperatorWinCCOA".
main() { bool usGroup; unsigned winccoaUserID = 3072; //user operator unsigned winccoaGroupId = 6;//user group OperatorWinCCOA //The user groups: //0 = root //1 = PARA //2 = operatorAll //3 = operator //4 = guest // your own user groups DebugN(usGroup = addUserToGroupPVSS(winccoaUserID , winccoaGroupId)); DebugN("User operator added to group OperatorWinCCOA"); }
Assignment
User administration
Availability
CTRL