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

Gets all roles for a given receiver

Request Information

Parameters

NameDescriptionAdditional information
who Who the retrieved roles are offered by. Valid values are "my", or an organization number of an organization the user can represent, or <Reportee.ReporteeId>, where the identified reportee may be a person or organization.

Define this parameter in the request URI.

receiverId The id of the right holder to retrieve roles for. This can be the reportee id or an organization number.

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.

language Language the roles should be returned in

Define this parameter in the request URI.

Response Information

All roles given to the receiver from who

Response body formats

application/hal+xml

Sample:

Sample not available.

application/hal+json

Sample:
{
  "_links": {
    "self": {
      "href": "sample string 93"
    }
  },
  "_embedded": {
    "sample string 1": [
      {
        "RoleId": 1,
        "RoleType": "sample string 71",
        "RoleDefinitionId": 2,
        "RoleName": "sample string 13",
        "RoleDescription": "sample string 60",
        "Delegator": "sample string 24",
        "DelegatedTime": "2021-07-31T23:45:29.9039563+02:00",
        "RoleDefinitionCode": "sample string 9",
        "_links": {
          "self": {
            "href": "sample string 57"
          }
        }
      },
      {
        "RoleId": 1,
        "RoleType": "sample string 71",
        "RoleDefinitionId": 2,
        "RoleName": "sample string 13",
        "RoleDescription": "sample string 60",
        "Delegator": "sample string 24",
        "DelegatedTime": "2021-07-31T23:45:29.9039563+02:00",
        "RoleDefinitionCode": "sample string 9",
        "_links": {
          "self": {
            "href": "sample string 57"
          }
        }
      },
      {
        "RoleId": 1,
        "RoleType": "sample string 71",
        "RoleDefinitionId": 2,
        "RoleName": "sample string 13",
        "RoleDescription": "sample string 60",
        "Delegator": "sample string 24",
        "DelegatedTime": "2021-07-31T23:45:29.9039563+02:00",
        "RoleDefinitionCode": "sample string 9",
        "_links": {
          "self": {
            "href": "sample string 57"
          }
        }
      }
    ]
  }
}