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 92"
    }
  },
  "_embedded": {
    "sample string 96": [
      {
        "RoleDefinitionId": 1,
        "RoleDefinitionCode": "sample string 51",
        "LocalizedRoleName": "sample string 69",
        "ParentRoleDefinitionIds": [
          1,
          2,
          3
        ],
        "IsDelegable": true,
        "Operations": [
          {
            "Name": "sample string 83",
            "LocalizedFriendlyName": "sample string 20",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              }
            ]
          },
          {
            "Name": "sample string 83",
            "LocalizedFriendlyName": "sample string 20",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              }
            ]
          },
          {
            "Name": "sample string 83",
            "LocalizedFriendlyName": "sample string 20",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              }
            ]
          }
        ],
        "_links": {
          "self": {
            "href": "sample string 68"
          }
        }
      },
      {
        "RoleDefinitionId": 1,
        "RoleDefinitionCode": "sample string 51",
        "LocalizedRoleName": "sample string 69",
        "ParentRoleDefinitionIds": [
          1,
          2,
          3
        ],
        "IsDelegable": true,
        "Operations": [
          {
            "Name": "sample string 83",
            "LocalizedFriendlyName": "sample string 20",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              }
            ]
          },
          {
            "Name": "sample string 83",
            "LocalizedFriendlyName": "sample string 20",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              }
            ]
          },
          {
            "Name": "sample string 83",
            "LocalizedFriendlyName": "sample string 20",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              }
            ]
          }
        ],
        "_links": {
          "self": {
            "href": "sample string 68"
          }
        }
      },
      {
        "RoleDefinitionId": 1,
        "RoleDefinitionCode": "sample string 51",
        "LocalizedRoleName": "sample string 69",
        "ParentRoleDefinitionIds": [
          1,
          2,
          3
        ],
        "IsDelegable": true,
        "Operations": [
          {
            "Name": "sample string 83",
            "LocalizedFriendlyName": "sample string 20",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              }
            ]
          },
          {
            "Name": "sample string 83",
            "LocalizedFriendlyName": "sample string 20",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              }
            ]
          },
          {
            "Name": "sample string 83",
            "LocalizedFriendlyName": "sample string 20",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 71",
                "SecurityLevel": 3,
                "Type": "sample string 31"
              }
            ]
          }
        ],
        "_links": {
          "self": {
            "href": "sample string 68"
          }
        }
      }
    ]
  }
}