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 96"
    }
  },
  "_embedded": {
    "sample string 80": [
      {
        "RoleId": 1,
        "RoleType": "sample string 17",
        "RoleDefinitionId": 2,
        "RoleName": "sample string 67",
        "RoleDescription": "sample string 59",
        "Delegator": "sample string 82",
        "DelegatedTime": "2020-10-19T23:42:49.5690397+02:00",
        "RoleDefinitionCode": "sample string 52",
        "_links": {
          "self": {
            "href": "sample string 74"
          }
        }
      },
      {
        "RoleId": 1,
        "RoleType": "sample string 17",
        "RoleDefinitionId": 2,
        "RoleName": "sample string 67",
        "RoleDescription": "sample string 59",
        "Delegator": "sample string 82",
        "DelegatedTime": "2020-10-19T23:42:49.5690397+02:00",
        "RoleDefinitionCode": "sample string 52",
        "_links": {
          "self": {
            "href": "sample string 74"
          }
        }
      },
      {
        "RoleId": 1,
        "RoleType": "sample string 17",
        "RoleDefinitionId": 2,
        "RoleName": "sample string 67",
        "RoleDescription": "sample string 59",
        "Delegator": "sample string 82",
        "DelegatedTime": "2020-10-19T23:42:49.5690397+02:00",
        "RoleDefinitionCode": "sample string 52",
        "_links": {
          "self": {
            "href": "sample string 74"
          }
        }
      }
    ]
  }
}