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 74", "Name": "sample string 25", "LastName": "sample string 60", "UserName": "sample string 88", "Email": "sample string 25", "SocialSecurityNumber": "sample string 18", "OrganizationNumber": "sample string 5", "DelegationContext": "sample string 8", "Roles": { "_links": { "self": { "href": "sample string 67" } }, "_embedded": { "sample string 77": [ { "RoleId": 1, "RoleType": "sample string 51", "RoleDefinitionId": 2, "RoleName": "sample string 87", "RoleDescription": "sample string 35", "Delegator": "sample string 28", "DelegatedTime": "2024-04-19T18:33:09.6249951+02:00", "RoleDefinitionCode": "sample string 33" }, { "RoleId": 1, "RoleType": "sample string 51", "RoleDefinitionId": 2, "RoleName": "sample string 87", "RoleDescription": "sample string 35", "Delegator": "sample string 28", "DelegatedTime": "2024-04-19T18:33:09.6249951+02:00", "RoleDefinitionCode": "sample string 33" }, { "RoleId": 1, "RoleType": "sample string 51", "RoleDefinitionId": 2, "RoleName": "sample string 87", "RoleDescription": "sample string 35", "Delegator": "sample string 28", "DelegatedTime": "2024-04-19T18:33:09.6249951+02:00", "RoleDefinitionCode": "sample string 33" } ] } }, "Rights": { "_links": { "self": { "href": "sample string 15" } }, "_embedded": { "sample string 83": [ { "RightID": 1, "RightType": "sample string 42", "SystemResourceID": "sample string 13", "ServiceCode": "sample string 62", "ServiceEditionCode": 1, "ServiceOwner": "sample string 45", "ServiceOwnerCode": "sample string 19", "MessageID": "sample string 81", "Delegator": "sample string 32", "DelegatedTime": "2024-04-19T18:33:09.6249951+02:00", "Action": "sample string 91", "RightSourceType": "sample string 13", "IsDelegatable": true, "ValidToDate": "2024-04-19T18:33:09.6249951+02:00", "IsConsentDelegation": true }, { "RightID": 1, "RightType": "sample string 42", "SystemResourceID": "sample string 13", "ServiceCode": "sample string 62", "ServiceEditionCode": 1, "ServiceOwner": "sample string 45", "ServiceOwnerCode": "sample string 19", "MessageID": "sample string 81", "Delegator": "sample string 32", "DelegatedTime": "2024-04-19T18:33:09.6249951+02:00", "Action": "sample string 91", "RightSourceType": "sample string 13", "IsDelegatable": true, "ValidToDate": "2024-04-19T18:33:09.6249951+02:00", "IsConsentDelegation": true }, { "RightID": 1, "RightType": "sample string 42", "SystemResourceID": "sample string 13", "ServiceCode": "sample string 62", "ServiceEditionCode": 1, "ServiceOwner": "sample string 45", "ServiceOwnerCode": "sample string 19", "MessageID": "sample string 81", "Delegator": "sample string 32", "DelegatedTime": "2024-04-19T18:33:09.6249951+02:00", "Action": "sample string 91", "RightSourceType": "sample string 13", "IsDelegatable": true, "ValidToDate": "2024-04-19T18:33:09.6249951+02:00", "IsConsentDelegation": true } ] } }, "AppRights": [ { "RuleGuid": "sample string 53", "AltinnAppId": "sample string 9", "ResourceId": "sample string 16", "ResourceValue": "sample string 97", "Action": "sample string 14", "RightSourceType": "sample string 81", "IsDelegatable": true }, { "RuleGuid": "sample string 53", "AltinnAppId": "sample string 9", "ResourceId": "sample string 16", "ResourceValue": "sample string 97", "Action": "sample string 14", "RightSourceType": "sample string 81", "IsDelegatable": true }, { "RuleGuid": "sample string 53", "AltinnAppId": "sample string 9", "ResourceId": "sample string 16", "ResourceValue": "sample string 97", "Action": "sample string 14", "RightSourceType": "sample string 81", "IsDelegatable": true } ], "_links": { "self": { "href": "sample string 43" } } }