You can return all the user’s roles in the system using the following example GET:
. . /api/v1/User/Roles
This GET returns:
{"@odata.context": " . . /api/v1/$metadata#User/Roles","value":
[
{
"RoleUID": "RL_DWAdministrator",
"DisplayName": "DWAdministrator",
"Selected": false
},
{
"RoleUID": "RL_InstrumentationViewer",
"DisplayName": "InstrumentationViewer",
"Selected": false
},
The results displayed do not depend on whether the roles are in use or not.