GET metadata/rolerequirements?app={app}&language={language}

Retrieves the role requirements for an Altinn 3.0 App resource which gives access to one or more operations for the App

Request Information

Parameters

NameDescriptionAdditional information
app The AltinnAppId from Altinn 3.0 in the format: org/appName

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 App resource

Response body formats

application/hal+xml

Sample:

Sample not available.

application/hal+json

Sample:
{
  "_links": {
    "self": {
      "href": "sample string 16"
    }
  },
  "_embedded": {
    "sample string 86": [
      {
        "RoleDefinitionId": 1,
        "RoleDefinitionCode": "sample string 64",
        "LocalizedRoleName": "sample string 45",
        "ParentRoleDefinitionIds": [
          1,
          2,
          3
        ],
        "IsDelegable": true,
        "Operations": [
          {
            "Name": "sample string 74",
            "LocalizedFriendlyName": "sample string 96",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              }
            ]
          },
          {
            "Name": "sample string 74",
            "LocalizedFriendlyName": "sample string 96",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              }
            ]
          },
          {
            "Name": "sample string 74",
            "LocalizedFriendlyName": "sample string 96",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              }
            ]
          }
        ],
        "_links": {
          "self": {
            "href": "sample string 90"
          }
        }
      },
      {
        "RoleDefinitionId": 1,
        "RoleDefinitionCode": "sample string 64",
        "LocalizedRoleName": "sample string 45",
        "ParentRoleDefinitionIds": [
          1,
          2,
          3
        ],
        "IsDelegable": true,
        "Operations": [
          {
            "Name": "sample string 74",
            "LocalizedFriendlyName": "sample string 96",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              }
            ]
          },
          {
            "Name": "sample string 74",
            "LocalizedFriendlyName": "sample string 96",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              }
            ]
          },
          {
            "Name": "sample string 74",
            "LocalizedFriendlyName": "sample string 96",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              }
            ]
          }
        ],
        "_links": {
          "self": {
            "href": "sample string 90"
          }
        }
      },
      {
        "RoleDefinitionId": 1,
        "RoleDefinitionCode": "sample string 64",
        "LocalizedRoleName": "sample string 45",
        "ParentRoleDefinitionIds": [
          1,
          2,
          3
        ],
        "IsDelegable": true,
        "Operations": [
          {
            "Name": "sample string 74",
            "LocalizedFriendlyName": "sample string 96",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              }
            ]
          },
          {
            "Name": "sample string 74",
            "LocalizedFriendlyName": "sample string 96",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              }
            ]
          },
          {
            "Name": "sample string 74",
            "LocalizedFriendlyName": "sample string 96",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 69",
                "SecurityLevel": 3,
                "Type": "sample string 3"
              }
            ]
          }
        ],
        "_links": {
          "self": {
            "href": "sample string 90"
          }
        }
      }
    ]
  }
}