GET {who}/authorization/Delegations/{receiverId}?language={language}
Gets a right holder by its id. Will include all rights and roles delegated to the right holder
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
who | Who to retrieve the right holder for. 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. This can be the reportee id or an organization number. |
Define this parameter in the request URI. |
language | Language the result should be returned in |
Define this parameter in the request URI. |
Response Information
A populated right holder object with all delegated rights and/or roles.
Response body formats
application/hal+xml
Sample:
Sample not available.
application/hal+json
Sample:
{ "RightHolderId": "sample string 78", "Name": "sample string 53", "LastName": "sample string 21", "UserName": "sample string 21", "Email": "sample string 42", "SocialSecurityNumber": "sample string 67", "OrganizationNumber": "sample string 48", "DelegationContext": "sample string 60", "Roles": { "_links": { "self": { "href": "sample string 22" } }, "_embedded": { "sample string 1": [ { "RoleId": 1, "RoleType": "sample string 41", "RoleDefinitionId": 2, "RoleName": "sample string 78", "RoleDescription": "sample string 31", "Delegator": "sample string 28", "DelegatedTime": "2025-02-07T09:39:06.0851939+01:00", "RoleDefinitionCode": "sample string 30" }, { "RoleId": 1, "RoleType": "sample string 41", "RoleDefinitionId": 2, "RoleName": "sample string 78", "RoleDescription": "sample string 31", "Delegator": "sample string 28", "DelegatedTime": "2025-02-07T09:39:06.0851939+01:00", "RoleDefinitionCode": "sample string 30" }, { "RoleId": 1, "RoleType": "sample string 41", "RoleDefinitionId": 2, "RoleName": "sample string 78", "RoleDescription": "sample string 31", "Delegator": "sample string 28", "DelegatedTime": "2025-02-07T09:39:06.0851939+01:00", "RoleDefinitionCode": "sample string 30" } ] } }, "Rights": { "_links": { "self": { "href": "sample string 99" } }, "_embedded": { "sample string 97": [ { "RightID": 3, "RightType": "sample string 49", "SystemResourceID": "sample string 33", "ServiceCode": "sample string 45", "ServiceEditionCode": 1, "ServiceOwner": "sample string 52", "ServiceOwnerCode": "sample string 95", "MessageID": "sample string 70", "Delegator": "sample string 92", "DelegatedTime": "2025-02-07T09:39:06.0851939+01:00", "Action": "sample string 10", "RightSourceType": "sample string 44", "IsDelegatable": true, "ValidToDate": "2025-02-07T09:39:06.0851939+01:00", "IsConsentDelegation": true }, { "RightID": 3, "RightType": "sample string 49", "SystemResourceID": "sample string 33", "ServiceCode": "sample string 45", "ServiceEditionCode": 1, "ServiceOwner": "sample string 52", "ServiceOwnerCode": "sample string 95", "MessageID": "sample string 70", "Delegator": "sample string 92", "DelegatedTime": "2025-02-07T09:39:06.0851939+01:00", "Action": "sample string 10", "RightSourceType": "sample string 44", "IsDelegatable": true, "ValidToDate": "2025-02-07T09:39:06.0851939+01:00", "IsConsentDelegation": true }, { "RightID": 3, "RightType": "sample string 49", "SystemResourceID": "sample string 33", "ServiceCode": "sample string 45", "ServiceEditionCode": 1, "ServiceOwner": "sample string 52", "ServiceOwnerCode": "sample string 95", "MessageID": "sample string 70", "Delegator": "sample string 92", "DelegatedTime": "2025-02-07T09:39:06.0851939+01:00", "Action": "sample string 10", "RightSourceType": "sample string 44", "IsDelegatable": true, "ValidToDate": "2025-02-07T09:39:06.0851939+01:00", "IsConsentDelegation": true } ] } }, "AppRights": [ { "AltinnAppId": "sample string 95", "RuleGuid": "sample string 46", "ResourceId": "sample string 81", "ResourceValue": "sample string 35", "Action": "sample string 88", "RightSourceType": "sample string 10", "IsDelegatable": true }, { "AltinnAppId": "sample string 95", "RuleGuid": "sample string 46", "ResourceId": "sample string 81", "ResourceValue": "sample string 35", "Action": "sample string 88", "RightSourceType": "sample string 10", "IsDelegatable": true }, { "AltinnAppId": "sample string 95", "RuleGuid": "sample string 46", "ResourceId": "sample string 81", "ResourceValue": "sample string 35", "Action": "sample string 88", "RightSourceType": "sample string 10", "IsDelegatable": true } ], "_links": { "self": { "href": "sample string 84" } } }