mng.GetUserRoles
This job lists the system roles for the logged-in user or a specified user.
Without specifying a user, the system roles of the logged-in user are listed.
1. Input Parameters
| Name | Type | Required | Description |
|---|---|---|---|
|
INT |
Yes |
Currently not supported → pass 0 |
|
STRING |
Yes |
GUID of the user. Empty or GUID of the logged-in user: no system role required. GUID of another user: system role |
|
STRING |
No |
ID of the user; currently has no effect and is ignored by the server |
2. Output Parameters
| Name | Type | Dependency | Description |
|---|---|---|---|
|
String |
— |
List of system role IDs, separated by semicolon. See System Roles. Empty if the user has no system role — or if the user does not exist (see Unknown |
4. Required System Role
|
The system role is only checked when querying other users:
If the job is called with a context switch, role An overview of all roles is available under System Roles. |
5. Unknown UserGUID
The UserGUID parameter never produces an error code. An unknown GUID, a syntactically invalid string (NOT-A-GUID) and the null GUID all return return_code = 0 and an empty Result (verified).
|
An empty |
6. Context Switch Errors
If the job is called with a context switch, the error code -1043332467 does not relate to the UserGUID parameter but to the target user of the context switch — that user is unknown, blocked, expired or not yet valid. These four cases can only be distinguished via the error stack; see Context Switch Errors.
Since mng.GetUserRoles is often the first job after a context switch, the error frequently shows up here although it does not originate from this job.