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 28"
    }
  },
  "_embedded": {
    "sample string 90": [
      {
        "RoleDefinitionId": 1,
        "RoleDefinitionCode": "sample string 83",
        "LocalizedRoleName": "sample string 53",
        "ParentRoleDefinitionIds": [
          1,
          2,
          3
        ],
        "IsDelegable": true,
        "Operations": [
          {
            "Name": "sample string 21",
            "LocalizedFriendlyName": "sample string 95",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              }
            ]
          },
          {
            "Name": "sample string 21",
            "LocalizedFriendlyName": "sample string 95",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              }
            ]
          },
          {
            "Name": "sample string 21",
            "LocalizedFriendlyName": "sample string 95",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              }
            ]
          }
        ],
        "_links": {
          "self": {
            "href": "sample string 21"
          }
        }
      },
      {
        "RoleDefinitionId": 1,
        "RoleDefinitionCode": "sample string 83",
        "LocalizedRoleName": "sample string 53",
        "ParentRoleDefinitionIds": [
          1,
          2,
          3
        ],
        "IsDelegable": true,
        "Operations": [
          {
            "Name": "sample string 21",
            "LocalizedFriendlyName": "sample string 95",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              }
            ]
          },
          {
            "Name": "sample string 21",
            "LocalizedFriendlyName": "sample string 95",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              }
            ]
          },
          {
            "Name": "sample string 21",
            "LocalizedFriendlyName": "sample string 95",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              }
            ]
          }
        ],
        "_links": {
          "self": {
            "href": "sample string 21"
          }
        }
      },
      {
        "RoleDefinitionId": 1,
        "RoleDefinitionCode": "sample string 83",
        "LocalizedRoleName": "sample string 53",
        "ParentRoleDefinitionIds": [
          1,
          2,
          3
        ],
        "IsDelegable": true,
        "Operations": [
          {
            "Name": "sample string 21",
            "LocalizedFriendlyName": "sample string 95",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              }
            ]
          },
          {
            "Name": "sample string 21",
            "LocalizedFriendlyName": "sample string 95",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              }
            ]
          },
          {
            "Name": "sample string 21",
            "LocalizedFriendlyName": "sample string 95",
            "AppliesTo": [
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              },
              {
                "SequenceNumber": 1,
                "Name": "sample string 67",
                "SecurityLevel": 3
              }
            ]
          }
        ],
        "_links": {
          "self": {
            "href": "sample string 21"
          }
        }
      }
    ]
  }
}