UserMgrGetUserAccessRights
(FUN)
FUNCTION UserMgrGetUserAccessRights : RTS_IEC_RESULT
Gets user access rights on the specified object (authorization)!
- InOut:
Scope
Name
Type
Comment
Return
UserMgrGetUserAccessRights
RTS_IEC_RESULT
- Error code
ERR_OK: If user has the requested rights on the object or if no user management is configured
ERR_PARAMETER: If user is not available or the object does not exist
ERR_FAILED: If something failed retrieving the access rights
ERR_NO_ACCESS_RIGHTS: Explicitly denied rights
ERR_INVALID_HANDLE: hUser is invalid or unknown
Input
pszObject
REFERENCE TO STRING
Full object name (see object tree)
hUser
RTS_IEC_HANDLE
Handle to the user
pulRights
POINTER TO DWORD
Pointer to get admitted rights
pulDeniedRights
POINTER TO DWORD
Pointer to get denied rights.
Note
If the required right is denied _and_ admitted on the specified object, the denied right is more significant and so the access must be denied !!