GET {who}/authorization/roles?language={language}

Gets the role list.

Request Information

Parameters

NameDescriptionAdditional information
who who the user is acting as/on behalf of.

Define this parameter in the request URI.

language Translation of messages retrieved, valid values are: 1033 (English), 1044 (Bokmal) and 2068 (Nynorsk) This is an optional parameter, defaults to the user preset language

Define this parameter in the request URI.

queryOptions OData Query details. This object is created by the Framework based on parameters in the url.

None.

Response Information

The role list.

Response body formats

application/hal+xml

Sample:

Sample not available.

application/hal+json

Sample:
{
  "_links": {
    "self": {
      "href": "sample string 62"
    }
  },
  "_embedded": {
    "sample string 35": [
      {
        "RoleId": 1,
        "RoleType": "sample string 11",
        "RoleDefinitionId": 2,
        "RoleName": "sample string 50",
        "RoleDescription": "sample string 91",
        "Delegator": "sample string 16",
        "DelegatedTime": "2025-04-25T08:55:38.5459061+02:00",
        "RoleDefinitionCode": "sample string 7",
        "_links": {
          "self": {
            "href": "sample string 96"
          }
        }
      },
      {
        "RoleId": 1,
        "RoleType": "sample string 11",
        "RoleDefinitionId": 2,
        "RoleName": "sample string 50",
        "RoleDescription": "sample string 91",
        "Delegator": "sample string 16",
        "DelegatedTime": "2025-04-25T08:55:38.5459061+02:00",
        "RoleDefinitionCode": "sample string 7",
        "_links": {
          "self": {
            "href": "sample string 96"
          }
        }
      },
      {
        "RoleId": 1,
        "RoleType": "sample string 11",
        "RoleDefinitionId": 2,
        "RoleName": "sample string 50",
        "RoleDescription": "sample string 91",
        "Delegator": "sample string 16",
        "DelegatedTime": "2025-04-25T08:55:38.5459061+02:00",
        "RoleDefinitionCode": "sample string 7",
        "_links": {
          "self": {
            "href": "sample string 96"
          }
        }
      }
    ]
  }
}