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 73", "Name": "sample string 93", "LastName": "sample string 90", "UserName": "sample string 46", "Email": "sample string 2", "SocialSecurityNumber": "sample string 12", "OrganizationNumber": "sample string 22", "DelegationContext": "sample string 95", "Roles": { "_links": { "self": { "href": "sample string 10" } }, "_embedded": { "sample string 21": [ { "RoleId": 1, "RoleType": "sample string 52", "RoleDefinitionId": 2, "RoleName": "sample string 90", "RoleDescription": "sample string 47", "Delegator": "sample string 72", "DelegatedTime": "2025-01-24T22:22:28.8187795+01:00", "RoleDefinitionCode": "sample string 82" }, { "RoleId": 1, "RoleType": "sample string 52", "RoleDefinitionId": 2, "RoleName": "sample string 90", "RoleDescription": "sample string 47", "Delegator": "sample string 72", "DelegatedTime": "2025-01-24T22:22:28.8187795+01:00", "RoleDefinitionCode": "sample string 82" }, { "RoleId": 1, "RoleType": "sample string 52", "RoleDefinitionId": 2, "RoleName": "sample string 90", "RoleDescription": "sample string 47", "Delegator": "sample string 72", "DelegatedTime": "2025-01-24T22:22:28.8187795+01:00", "RoleDefinitionCode": "sample string 82" } ] } }, "Rights": { "_links": { "self": { "href": "sample string 44" } }, "_embedded": { "sample string 31": [ { "RightID": 1, "RightType": "sample string 86", "SystemResourceID": "sample string 49", "ServiceCode": "sample string 21", "ServiceEditionCode": 1, "ServiceOwner": "sample string 46", "ServiceOwnerCode": "sample string 8", "MessageID": "sample string 60", "Delegator": "sample string 64", "DelegatedTime": "2025-01-24T22:22:28.8187795+01:00", "Action": "sample string 42", "RightSourceType": "sample string 3", "IsDelegatable": true, "ValidToDate": "2025-01-24T22:22:28.8187795+01:00", "IsConsentDelegation": true }, { "RightID": 1, "RightType": "sample string 86", "SystemResourceID": "sample string 49", "ServiceCode": "sample string 21", "ServiceEditionCode": 1, "ServiceOwner": "sample string 46", "ServiceOwnerCode": "sample string 8", "MessageID": "sample string 60", "Delegator": "sample string 64", "DelegatedTime": "2025-01-24T22:22:28.8187795+01:00", "Action": "sample string 42", "RightSourceType": "sample string 3", "IsDelegatable": true, "ValidToDate": "2025-01-24T22:22:28.8187795+01:00", "IsConsentDelegation": true }, { "RightID": 1, "RightType": "sample string 86", "SystemResourceID": "sample string 49", "ServiceCode": "sample string 21", "ServiceEditionCode": 1, "ServiceOwner": "sample string 46", "ServiceOwnerCode": "sample string 8", "MessageID": "sample string 60", "Delegator": "sample string 64", "DelegatedTime": "2025-01-24T22:22:28.8187795+01:00", "Action": "sample string 42", "RightSourceType": "sample string 3", "IsDelegatable": true, "ValidToDate": "2025-01-24T22:22:28.8187795+01:00", "IsConsentDelegation": true } ] } }, "AppRights": [ { "RuleGuid": "sample string 54", "AltinnAppId": "sample string 96", "ResourceId": "sample string 66", "ResourceValue": "sample string 20", "Action": "sample string 49", "RightSourceType": "sample string 4", "IsDelegatable": true }, { "RuleGuid": "sample string 54", "AltinnAppId": "sample string 96", "ResourceId": "sample string 66", "ResourceValue": "sample string 20", "Action": "sample string 49", "RightSourceType": "sample string 4", "IsDelegatable": true }, { "RuleGuid": "sample string 54", "AltinnAppId": "sample string 96", "ResourceId": "sample string 66", "ResourceValue": "sample string 20", "Action": "sample string 49", "RightSourceType": "sample string 4", "IsDelegatable": true } ], "_links": { "self": { "href": "sample string 38" } } }