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 22"
    }
  },
  "_embedded": {
    "sample string 23": [
      {
        "RoleDefinitionId": 1,
        "RoleDefinitionCode": "sample string 98",
        "LocalizedRoleName": "sample string 62",
        "ParentRoleDefinitionIds": [
          1,
          2,
          3
        ],
        "IsDelegable": true,
        "Operations": [
          {
            "Name": "sample string 29",
            "LocalizedFriendlyName": "sample string 31",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              }
            ]
          },
          {
            "Name": "sample string 29",
            "LocalizedFriendlyName": "sample string 31",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              }
            ]
          },
          {
            "Name": "sample string 29",
            "LocalizedFriendlyName": "sample string 31",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              }
            ]
          }
        ],
        "_links": {
          "self": {
            "href": "sample string 32"
          }
        }
      },
      {
        "RoleDefinitionId": 1,
        "RoleDefinitionCode": "sample string 98",
        "LocalizedRoleName": "sample string 62",
        "ParentRoleDefinitionIds": [
          1,
          2,
          3
        ],
        "IsDelegable": true,
        "Operations": [
          {
            "Name": "sample string 29",
            "LocalizedFriendlyName": "sample string 31",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              }
            ]
          },
          {
            "Name": "sample string 29",
            "LocalizedFriendlyName": "sample string 31",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              }
            ]
          },
          {
            "Name": "sample string 29",
            "LocalizedFriendlyName": "sample string 31",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              }
            ]
          }
        ],
        "_links": {
          "self": {
            "href": "sample string 32"
          }
        }
      },
      {
        "RoleDefinitionId": 1,
        "RoleDefinitionCode": "sample string 98",
        "LocalizedRoleName": "sample string 62",
        "ParentRoleDefinitionIds": [
          1,
          2,
          3
        ],
        "IsDelegable": true,
        "Operations": [
          {
            "Name": "sample string 29",
            "LocalizedFriendlyName": "sample string 31",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              }
            ]
          },
          {
            "Name": "sample string 29",
            "LocalizedFriendlyName": "sample string 31",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              }
            ]
          },
          {
            "Name": "sample string 29",
            "LocalizedFriendlyName": "sample string 31",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 25",
                "SecurityLevel": 3
              }
            ]
          }
        ],
        "_links": {
          "self": {
            "href": "sample string 32"
          }
        }
      }
    ]
  }
}