UserMgrGroupAddUser
(FUN)
FUNCTION UserMgrGroupAddUser : RTS_IEC_RESULT
Add a user to a group in the user group database
- InOut:
Scope
Name
Type
Comment
Return
UserMgrGroupAddUser
RTS_IEC_RESULT
- Error code
ERR_OK: User could be added
ERR_NOMEMORY: No memory to add user to group
ERR_DUPLICATE: pszUserName is already added.
ERR_NO_OBJECT: Group name does not exist
ERR_NO_ACCESS_RIGHTS: User not authorized
Input
hUser
RTS_IEC_HANDLE
Handle to authorized user
Inout Const
pszGroupName
STRING
Name of the group
pszUserName
STRING
Name of the user