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 67"
    }
  },
  "_embedded": {
    "sample string 42": [
      {
        "RoleDefinitionId": 1,
        "RoleDefinitionCode": "sample string 12",
        "LocalizedRoleName": "sample string 81",
        "ParentRoleDefinitionIds": [
          1,
          2,
          3
        ],
        "IsDelegable": true,
        "Operations": [
          {
            "Name": "sample string 76",
            "LocalizedFriendlyName": "sample string 93",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              }
            ]
          },
          {
            "Name": "sample string 76",
            "LocalizedFriendlyName": "sample string 93",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              }
            ]
          },
          {
            "Name": "sample string 76",
            "LocalizedFriendlyName": "sample string 93",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              }
            ]
          }
        ]
      },
      {
        "RoleDefinitionId": 1,
        "RoleDefinitionCode": "sample string 12",
        "LocalizedRoleName": "sample string 81",
        "ParentRoleDefinitionIds": [
          1,
          2,
          3
        ],
        "IsDelegable": true,
        "Operations": [
          {
            "Name": "sample string 76",
            "LocalizedFriendlyName": "sample string 93",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              }
            ]
          },
          {
            "Name": "sample string 76",
            "LocalizedFriendlyName": "sample string 93",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              }
            ]
          },
          {
            "Name": "sample string 76",
            "LocalizedFriendlyName": "sample string 93",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              }
            ]
          }
        ]
      },
      {
        "RoleDefinitionId": 1,
        "RoleDefinitionCode": "sample string 12",
        "LocalizedRoleName": "sample string 81",
        "ParentRoleDefinitionIds": [
          1,
          2,
          3
        ],
        "IsDelegable": true,
        "Operations": [
          {
            "Name": "sample string 76",
            "LocalizedFriendlyName": "sample string 93",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              }
            ]
          },
          {
            "Name": "sample string 76",
            "LocalizedFriendlyName": "sample string 93",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              }
            ]
          },
          {
            "Name": "sample string 76",
            "LocalizedFriendlyName": "sample string 93",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 7",
                "SecurityLevel": 3
              }
            ]
          }
        ]
      }
    ]
  }
}