GET serviceowner/authorization/roles?subject={subject}&reportee={reportee}&language={language}

Gets the roles a user or organization has on behalf of a specified reportee, for the service owners own services.

Request Information

Parameters

NameDescriptionAdditional information
subject The organization number or social security number for the unit/user holding the role.

Define this parameter in the request URI.

reportee The organization number or social security number for the unit/user who have delegated the role.

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 rights the subject has on behalf of the reportee.

Response body formats

application/hal+xml

Sample:

Sample not available.

application/hal+json

Sample:
{
  "_links": {
    "self": {
      "href": "sample string 35"
    }
  },
  "_embedded": {
    "sample string 29": [
      {
        "RoleId": 1,
        "RoleType": "sample string 67",
        "RoleDefinitionId": 2,
        "RoleName": "sample string 74",
        "RoleDescription": "sample string 85",
        "Delegator": "sample string 37",
        "DelegatedTime": "2024-12-04T22:13:58.7450219+01:00",
        "RoleDefinitionCode": "sample string 98",
        "_links": {
          "self": {
            "href": "sample string 2"
          }
        }
      },
      {
        "RoleId": 1,
        "RoleType": "sample string 67",
        "RoleDefinitionId": 2,
        "RoleName": "sample string 74",
        "RoleDescription": "sample string 85",
        "Delegator": "sample string 37",
        "DelegatedTime": "2024-12-04T22:13:58.7450219+01:00",
        "RoleDefinitionCode": "sample string 98",
        "_links": {
          "self": {
            "href": "sample string 2"
          }
        }
      },
      {
        "RoleId": 1,
        "RoleType": "sample string 67",
        "RoleDefinitionId": 2,
        "RoleName": "sample string 74",
        "RoleDescription": "sample string 85",
        "Delegator": "sample string 37",
        "DelegatedTime": "2024-12-04T22:13:58.7450219+01:00",
        "RoleDefinitionCode": "sample string 98",
        "_links": {
          "self": {
            "href": "sample string 2"
          }
        }
      }
    ]
  }
}