GET metadata/rolerequirements?serviceCode={serviceCode}&serviceEditionCode={serviceEditionCode}&language={language}

Retrieves the role requirements for an AltinnII service or App resource (either a DelegationScheme from Maskinporten or Altinn 3.0 App), which gives access to one or more operations for the Service or App

Request Information

Parameters

NameDescriptionAdditional information
serviceCode The service code of the AltinnII service or DelegationScheme og AltinnApp by using their SBL AppId in the format: AppId:{AppId}

Define this parameter in the request URI.

serviceEditionCode The service edition code of the AltinnII service (Optional: only used together with ServiceCode if request is for a AltinnII service)

Define this parameter in the request URI.

language The preferred language for localized names of roles and operations

Define this parameter in the request URI.

Response Information

RoleRequirements model which specifies all Roles giving access to one or more operations for the Service or App resource

Response body formats

application/hal+xml

Sample:

Sample not available.

application/hal+json

Sample:
{
  "_links": {
    "self": {
      "href": "sample string 18"
    }
  },
  "_embedded": {
    "sample string 67": [
      {
        "RoleDefinitionId": 1,
        "RoleDefinitionCode": "sample string 71",
        "LocalizedRoleName": "sample string 72",
        "ParentRoleDefinitionIds": [
          1,
          2,
          3
        ],
        "IsDelegable": true,
        "Operations": [
          {
            "Name": "sample string 60",
            "LocalizedFriendlyName": "sample string 12",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              }
            ]
          },
          {
            "Name": "sample string 60",
            "LocalizedFriendlyName": "sample string 12",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              }
            ]
          },
          {
            "Name": "sample string 60",
            "LocalizedFriendlyName": "sample string 12",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              }
            ]
          }
        ]
      },
      {
        "RoleDefinitionId": 1,
        "RoleDefinitionCode": "sample string 71",
        "LocalizedRoleName": "sample string 72",
        "ParentRoleDefinitionIds": [
          1,
          2,
          3
        ],
        "IsDelegable": true,
        "Operations": [
          {
            "Name": "sample string 60",
            "LocalizedFriendlyName": "sample string 12",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              }
            ]
          },
          {
            "Name": "sample string 60",
            "LocalizedFriendlyName": "sample string 12",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              }
            ]
          },
          {
            "Name": "sample string 60",
            "LocalizedFriendlyName": "sample string 12",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              }
            ]
          }
        ]
      },
      {
        "RoleDefinitionId": 1,
        "RoleDefinitionCode": "sample string 71",
        "LocalizedRoleName": "sample string 72",
        "ParentRoleDefinitionIds": [
          1,
          2,
          3
        ],
        "IsDelegable": true,
        "Operations": [
          {
            "Name": "sample string 60",
            "LocalizedFriendlyName": "sample string 12",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              }
            ]
          },
          {
            "Name": "sample string 60",
            "LocalizedFriendlyName": "sample string 12",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              }
            ]
          },
          {
            "Name": "sample string 60",
            "LocalizedFriendlyName": "sample string 12",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 27",
                "SecurityLevel": 3,
                "Type": "sample string 52"
              }
            ]
          }
        ]
      }
    ]
  }
}