{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/RequiredResourceAccess", "title": "RequiredResourceAccess", "type": "object", "description": "Specifies the set of OAuth 2.0 permission scopes and app roles under a specified resource that an application requires access to", "properties": { "resourceAppId": { "type": "string", "description": "The unique identifier for the resource that the application requires access to (the appId of the target application)", "example": "500123" }, "resourceAccess": { "type": "array", "description": "The list of OAuth 2.0 permission scopes and app roles required from the specified resource", "items": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "Unique identifier for the app role or OAuth 2.0 permission scope" }, "type": { "type": "string", "description": "Specifies whether the id property references a Scope (delegated permission) or a Role (application permission)", "enum": [ "Scope", "Role" ] } } }, "example": [] } } }