addUserPVSS()

Adds a user of an external authentication system to the WinCC OA user administration.

Synopsis

int addUserPVSS(string osID, string userName, langString fullName = "", langString comment="");

Parameter

Parameter Description
osID The OS ID of the user in the external authentication system.
userName The user name of the user to be added.
fullName Optional parameter in order to set the full name of the user.
comment Optional parameter in order to set the comment of the user.

Return Value

ID of the new user and -1 if the user was not created.

Description

Adds a user to the WinCC OA user administration.

Example

Adds a new user called WinCCOA_Operator to the WinCC OA user administration.

main(mapping event)
{
  int i = addUserPVSS("S-1-5-21-125432763-1270913946-3649183423-578567","WinCCOA_Operator",
  "WinCC OA Operator user","Operator user of the system");
  /* here the addUserPVSS is split and shown on two rows. To exceute the function, delete the line break! */
  DebugN("User added", i);
}

Assignment

User administration

Availability

CTRL