{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-graph/json-schema/microsoft-graph-microsoft-graph-role-permission-schema.json",
  "title": "rolePermission",
  "description": "Contains the set of ResourceActions determining the allowed and not allowed permissions for each role.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-graph-devicemanagement-devicemanagement-functions-api-openapi.yml#/components/schemas/microsoft.graph.rolePermission",
  "required": [
    "@odata.type"
  ],
  "type": "object",
  "properties": {
    "resourceActions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/microsoft.graph.resourceAction"
      },
      "description": "Resource Actions each containing a set of allowed and not allowed permissions."
    },
    "@odata.type": {
      "type": "string"
    }
  },
  "$defs": {
    "microsoft.graph.resourceAction": {
      "title": "resourceAction",
      "required": [
        "@odata.type"
      ],
      "type": "object",
      "properties": {
        "allowedResourceActions": {
          "type": "array",
          "items": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "Allowed Actions"
        },
        "notAllowedResourceActions": {
          "type": "array",
          "items": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": "Not Allowed Actions."
        },
        "@odata.type": {
          "type": "string"
        }
      },
      "description": "Set of allowed and not allowed actions for a resource."
    }
  }
}