From 85dbe19310af364d7e0e776666800e433dc3b607 Mon Sep 17 00:00:00 2001 From: taofeeko Date: Fri, 4 Dec 2026 13:26:53 -0800 Subject: [PATCH 1/2] Fix read-only Graph type contracts in stable 1.0.1 Goal: Correct stable Graph Bicep read-only authoring contracts while preserving readable outputs, conditional service-principal inputs, and published 1.0.0 artifacts. Add versioned schemas, generated artifacts, regression tests and upgrade guidance. Preserve description overrides and serialized JSON/Markdown contents during generation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: db906020-1a67-43c3-b0eb-80e95473e9d5 --- docs/getting-started.md | 20 + .../microsoft.graph/beta/1.0.1/index.json | 34 + .../microsoft.graph/beta/1.0.1/index.md | 23 + .../microsoft.graph/beta/1.0.1/types.json | 2599 +++++++++++++++++ .../microsoft.graph/beta/1.0.1/types.md | 395 +++ .../microsoft.graph/v1.0/1.0.1/index.json | 34 + .../microsoft.graph/v1.0/1.0.1/index.md | 23 + .../microsoft.graph/v1.0/1.0.1/types.json | 2499 ++++++++++++++++ .../microsoft.graph/v1.0/1.0.1/types.md | 379 +++ .../MicrosoftGraphTypeLoaderTests.cs | 55 + src/extensionConfig/src/extensionConfig.json | 4 +- src/generator/src/cmd/generate.ts | 6 +- src/swagger-generation/README.md | 1 + src/swagger-generation/configs/beta/1.0.1.yml | 257 ++ src/swagger-generation/configs/v1.0/1.0.1.yml | 238 ++ src/swagger-generation/output/metadata.json | 278 ++ .../output/microsoftgraph-beta-1.0.1.json | 2043 +++++++++++++ .../output/microsoftgraph-v1.0-1.0.1.json | 1965 +++++++++++++ src/swagger-generation/src/config.ts | 1 + src/swagger-generation/src/deserializer.ts | 3 +- src/swagger-generation/src/validator.ts | 5 + .../tests/versionedContracts.test.ts | 133 + .../microsoftgraph/official/beta/1.0.1.json | 2043 +++++++++++++ .../microsoftgraph/official/v1.0/1.0.1.json | 1965 +++++++++++++ .../microsoftgraph/resource-manager/readme.md | 2 + 25 files changed, 14999 insertions(+), 6 deletions(-) create mode 100644 generated/microsoftgraph/microsoft.graph/beta/1.0.1/index.json create mode 100644 generated/microsoftgraph/microsoft.graph/beta/1.0.1/index.md create mode 100644 generated/microsoftgraph/microsoft.graph/beta/1.0.1/types.json create mode 100644 generated/microsoftgraph/microsoft.graph/beta/1.0.1/types.md create mode 100644 generated/microsoftgraph/microsoft.graph/v1.0/1.0.1/index.json create mode 100644 generated/microsoftgraph/microsoft.graph/v1.0/1.0.1/index.md create mode 100644 generated/microsoftgraph/microsoft.graph/v1.0/1.0.1/types.json create mode 100644 generated/microsoftgraph/microsoft.graph/v1.0/1.0.1/types.md create mode 100644 src/swagger-generation/configs/beta/1.0.1.yml create mode 100644 src/swagger-generation/configs/v1.0/1.0.1.yml create mode 100644 src/swagger-generation/output/microsoftgraph-beta-1.0.1.json create mode 100644 src/swagger-generation/output/microsoftgraph-v1.0-1.0.1.json create mode 100644 src/swagger-generation/tests/versionedContracts.test.ts create mode 100644 swagger/specification/microsoftgraph/resource-manager/microsoftgraph/official/beta/1.0.1.json create mode 100644 swagger/specification/microsoftgraph/resource-manager/microsoftgraph/official/v1.0/1.0.1.json diff --git a/docs/getting-started.md b/docs/getting-started.md index a8cef7c..5f339d1 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -1,3 +1,23 @@ # Getting started Go to [Bicep templates for Microsoft Graph](https://aka.ms/graphbicep). + +## Read-only authoring corrections in 1.0.1 + +The 1.0.1 type definitions correct ordinary resource-body writes for these properties in both the `v1.0` and `beta` API versions: + +| Resource | Read-only properties | +|---|---| +| `Microsoft.Graph/groups` | `isManagementRestricted`, `serviceProvisioningErrors` | +| `Microsoft.Graph/applications` | `disabledByMicrosoftStatus`, `verifiedPublisher` | +| `Microsoft.Graph/servicePrincipals` | `disabledByMicrosoftStatus` | + +These properties remain available for reads and outputs. Remove them from resource declarations when upgrading; read-only diagnostics can become build failures when warnings are treated as errors. Existing 1.0.0 type artifacts are unchanged. This corrects the authoring contract, not the underlying service behavior or permissions. + +`isManagementRestricted` reflects restricted-management administrative-unit membership; it is not a switch for placing a group in an administrative unit. `serviceProvisioningErrors` is service-produced diagnostic state. See the [group contract](https://learn.microsoft.com/en-us/graph/api/resources/group?view=graph-rest-1.0) and the [confirmed provisioning-error annotation gap](https://github.com/microsoftgraph/msgraph-bicep-types/issues/257#issuecomment-3184478843). + +`disabledByMicrosoftStatus` is Microsoft-controlled status, not a way to enable or disable an application. See [application](https://learn.microsoft.com/en-us/graph/api/resources/application?view=graph-rest-1.0) and [service principal](https://learn.microsoft.com/en-us/graph/api/resources/serviceprincipal?view=graph-rest-1.0) contracts and the [confirmed read-only behavior](https://github.com/microsoftgraph/msgraph-bicep-types/issues/260). + +Application publisher verification requires the separate [setVerifiedPublisher action](https://learn.microsoft.com/en-us/graph/api/application-setverifiedpublisher?view=graph-rest-1.0); setting `verifiedPublisher` in a Bicep resource body is not supported. This patch does not add that action or app-only verification. + +Service-principal `appRoles`, `addIns`, supported URLs, and `servicePrincipalNames` are deliberately not made globally read-only. Writability depends on the property, service-principal type, and whether values originate from the backing application. In particular, inherited application roles differ from service-principal-local roles, and additional service-principal names have hybrid-application restrictions. See [update servicePrincipal](https://learn.microsoft.com/en-us/graph/api/serviceprincipal-update?view=graph-rest-1.0) and [appRole](https://learn.microsoft.com/en-us/graph/api/resources/approle?view=graph-rest-1.0). diff --git a/generated/microsoftgraph/microsoft.graph/beta/1.0.1/index.json b/generated/microsoftgraph/microsoft.graph/beta/1.0.1/index.json new file mode 100644 index 0000000..fe59384 --- /dev/null +++ b/generated/microsoftgraph/microsoft.graph/beta/1.0.1/index.json @@ -0,0 +1,34 @@ +{ + "resources": { + "Microsoft.Graph/groups@beta": { + "$ref": "types.json#/21" + }, + "Microsoft.Graph/applications@beta": { + "$ref": "types.json#/77" + }, + "Microsoft.Graph/servicePrincipals@beta": { + "$ref": "types.json#/95" + }, + "Microsoft.Graph/applications/federatedIdentityCredentials@beta": { + "$ref": "types.json#/101" + }, + "Microsoft.Graph/oauth2PermissionGrants@beta": { + "$ref": "types.json#/105" + }, + "Microsoft.Graph/appRoleAssignedTo@beta": { + "$ref": "types.json#/109" + }, + "Microsoft.Graph/users@beta": { + "$ref": "types.json#/114" + } + }, + "resourceFunctions": {}, + "settings": { + "name": "MicrosoftGraphBeta", + "version": "1.0.1", + "isSingleton": false, + "configurationType": { + "$ref": "types.json#/115" + } + } +} \ No newline at end of file diff --git a/generated/microsoftgraph/microsoft.graph/beta/1.0.1/index.md b/generated/microsoftgraph/microsoft.graph/beta/1.0.1/index.md new file mode 100644 index 0000000..3321aaf --- /dev/null +++ b/generated/microsoftgraph/microsoft.graph/beta/1.0.1/index.md @@ -0,0 +1,23 @@ +# Bicep Types +## microsoft.graph +### microsoft.graph/applications +* **Link**: [beta](types.md#resource-microsoftgraphapplicationsbeta) + +### microsoft.graph/applications/federatedidentitycredentials +* **Link**: [beta](types.md#resource-microsoftgraphapplicationsfederatedidentitycredentialsbeta) + +### microsoft.graph/approleassignedto +* **Link**: [beta](types.md#resource-microsoftgraphapproleassignedtobeta) + +### microsoft.graph/groups +* **Link**: [beta](types.md#resource-microsoftgraphgroupsbeta) + +### microsoft.graph/oauth2permissiongrants +* **Link**: [beta](types.md#resource-microsoftgraphoauth2permissiongrantsbeta) + +### microsoft.graph/serviceprincipals +* **Link**: [beta](types.md#resource-microsoftgraphserviceprincipalsbeta) + +### microsoft.graph/users +* **Link**: [beta](types.md#resource-microsoftgraphusersbeta) + diff --git a/generated/microsoftgraph/microsoft.graph/beta/1.0.1/types.json b/generated/microsoftgraph/microsoft.graph/beta/1.0.1/types.json new file mode 100644 index 0000000..4f938e7 --- /dev/null +++ b/generated/microsoftgraph/microsoft.graph/beta/1.0.1/types.json @@ -0,0 +1,2599 @@ +[ + { + "$type": "StringType" + }, + { + "$type": "StringLiteralType", + "value": "Microsoft.Graph/groups" + }, + { + "$type": "StringLiteralType", + "value": "beta" + }, + { + "$type": "ObjectType", + "name": "Microsoft.Graph/groups", + "properties": { + "type": { + "type": { + "$ref": "#/1" + }, + "flags": 10, + "description": "The resource type" + }, + "apiVersion": { + "type": { + "$ref": "#/2" + }, + "flags": 10, + "description": "The resource api version" + }, + "classification": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Describes a classification for the group (such as low, medium or high business impact)." + }, + "cloudLicensing": { + "type": { + "$ref": "#/4" + }, + "flags": 0, + "description": "The relationships of a group to cloud licensing resources." + }, + "createdByAppId": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "App ID of the app used to create the group. Can be null for some groups. Read-only." + }, + "createdDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Timestamp of when the group was created. The value can't be modified and is automatically populated when the group is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only." + }, + "description": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "An optional description for the group." + }, + "displayName": { + "type": { + "$ref": "#/0" + }, + "flags": 1, + "description": "The display name for the group. Required. Maximum length is 256 characters." + }, + "expirationDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Timestamp of when the group is set to expire. It is null for security groups, but for Microsoft 365 groups, it represents when the group is set to expire as defined in the groupLifecyclePolicy. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only." + }, + "groupTypes": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "Specifies the group type and its membership. If the collection contains Unified, the group is a Microsoft 365 group; otherwise, it's either a security group or a distribution group. For details, see groups overview.If the collection includes DynamicMembership, the group has dynamic membership; otherwise, membership is static." + }, + "infoCatalogs": { + "type": { + "$ref": "#/6" + }, + "flags": 0, + "description": "Identifies the info segments assigned to the group." + }, + "isAssignableToRole": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "Indicates whether this group can be assigned to a Microsoft Entra role. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group cannot be a dynamic group (that is, groupTypes can't contain DynamicMembership). Only callers with at least the Privileged Role Administrator role can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Microsoft Entra role assignmentsUsing this feature requires a Microsoft Entra ID P1 license." + }, + "isManagementRestricted": { + "type": { + "$ref": "#/7" + }, + "flags": 2, + "description": "Indicates whether the group is a member of a restricted management administrative unit. Read-only. To manage a group member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. See [restricted management administrative units](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/admin-units-restricted-management)." + }, + "mail": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The SMTP address for the group, for example, 'serviceadmins@contoso.com'. Read-only." + }, + "mailEnabled": { + "type": { + "$ref": "#/7" + }, + "flags": 1, + "description": "Specifies whether the group is mail-enabled. Required." + }, + "mailNickname": { + "type": { + "$ref": "#/0" + }, + "flags": 1, + "description": "The mail alias for the group, unique for Microsoft 365 groups in the organization. Maximum length is 64 characters. This property can contain only characters in the ASCII character set 0 - 127 except the following: @ () / [] ' ; : <> , SPACE." + }, + "membershipRule": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The rule that determines members for this group if the group is a dynamic group (groupTypes contains DynamicMembership). For more information about the syntax of the membership rule, see Membership Rules syntax." + }, + "membershipRuleProcessingState": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Indicates whether the dynamic membership processing is on or paused. Possible values are On or Paused." + }, + "onPremisesDomainName": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Contains the on-premises domain FQDN, also called dnsDomainName synchronized from the on-premises directory. Read-only." + }, + "onPremisesLastSyncDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Indicates the last time at which the group was synced with the on-premises directory.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only." + }, + "onPremisesNetBiosName": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Contains the on-premises netBios name synchronized from the on-premises directory. Read-only." + }, + "onPremisesProvisioningErrors": { + "type": { + "$ref": "#/9" + }, + "flags": 2, + "description": "Errors when using Microsoft synchronization product during provisioning." + }, + "onPremisesSamAccountName": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Contains the on-premises SAM account name synchronized from the on-premises directory. Read-only." + }, + "onPremisesSecurityIdentifier": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Read-only." + }, + "onPremisesSyncEnabled": { + "type": { + "$ref": "#/7" + }, + "flags": 2, + "description": "true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Read-only." + }, + "organizationId": { + "type": { + "$ref": "#/0" + }, + "flags": 0 + }, + "preferredDataLocation": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The preferred data location for the Microsoft 365 group. By default, the group inherits the group creator's preferred data location. To set this property, the calling app must be granted the Directory.ReadWrite.All permission and the user be assigned at least one of the following Microsoft Entra roles: User Account Administrator Directory Writer Exchange Administrator SharePoint Administrator For more information about this property, see OneDrive Online Multi-Geo and Create a Microsoft 365 group with a specific PDL. Nullable." + }, + "preferredLanguage": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The preferred language for a Microsoft 365 group. Should follow ISO 639-1 Code; for example, en-US." + }, + "proxyAddresses": { + "type": { + "$ref": "#/10" + }, + "flags": 2, + "description": "Email addresses for the group that direct to the same group mailbox. For example: ['SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com']. The any operator is required for filter expressions on multi-valued properties. Read-only. Not nullable." + }, + "renewedDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Timestamp of when the group was last renewed. This cannot be modified directly and is only updated via the renew service action. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only." + }, + "resourceBehaviorOptions": { + "type": { + "$ref": "#/11" + }, + "flags": 0, + "description": "Specifies the group behaviors that can be set for a Microsoft 365 group during creation. This property can be set only as part of creation (POST). For the list of possible values, see Microsoft 365 group behaviors and provisioning options." + }, + "resourceProvisioningOptions": { + "type": { + "$ref": "#/12" + }, + "flags": 0, + "description": "Specifies the group resources that are associated with the Microsoft 365 group. The possible value is Team. For more information, see Microsoft 365 group behaviors and provisioning options." + }, + "securityEnabled": { + "type": { + "$ref": "#/7" + }, + "flags": 1, + "description": "Specifies whether the group is a security group." + }, + "securityIdentifier": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Security identifier of the group, used in Windows scenarios. Read-only." + }, + "serviceProvisioningErrors": { + "type": { + "$ref": "#/14" + }, + "flags": 2, + "description": "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object." + }, + "theme": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies a Microsoft 365 group's color theme. Possible values are Teal, Purple, Green, Blue, Pink, Orange or Red." + }, + "uniqueName": { + "type": { + "$ref": "#/0" + }, + "flags": 25, + "description": "The unique identifier that can be assigned to a group and used as an alternate key. Immutable." + }, + "visibility": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value isn't specified during group creation on Microsoft Graph, a security group is created as Private by default, and Microsoft 365 group is Public. Groups assignable to roles are always Private. To learn more, see group visibility options. Nullable." + }, + "writebackConfiguration": { + "type": { + "$ref": "#/15" + }, + "flags": 0, + "description": "Specifies whether or not a group is configured to write back group object properties to on-premises Active Directory. These properties are used when group writeback is configured in the Microsoft Entra Connect sync client." + }, + "members": { + "type": { + "$ref": "#/16" + }, + "flags": 0, + "description": "Direct group members, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable." + }, + "owners": { + "type": { + "$ref": "#/16" + }, + "flags": 0, + "description": "The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue." + }, + "deletedDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Date and time when this object was deleted. Always null when the object hasn't been deleted." + }, + "id": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The unique identifier for an entity. Read-only." + } + } + }, + { + "$type": "AnyType" + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "BooleanType" + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphOnPremisesProvisioningError", + "properties": { + "category": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Category of the provisioning error. Note: Currently, there is only one possible value. Possible value: PropertyConflict - indicates a property value is not unique. Other objects contain the same value for the property." + }, + "occurredDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The date and time at which the error occurred." + }, + "propertyCausingError": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Name of the directory property causing the error. Current possible values: UserPrincipalName or ProxyAddress." + }, + "value": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Value of the property causing the error." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/8" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphServiceProvisioningError", + "properties": { + "createdDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The date and time at which the error occurred." + }, + "isResolved": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "Indicates whether the Error has been attended to." + }, + "serviceInstance": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Qualified service instance (for example, 'SharePoint/Dublin') that published the service error information." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/13" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphGroupWritebackConfiguration", + "properties": { + "onPremisesGroupType": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Indicates the target on-premises group type the cloud object is written back as. Nullable. The possible values are: universalDistributionGroup, universalSecurityGroup, universalMailEnabledSecurityGroup.If the cloud group is a unified (Microsoft 365) group, this property can be one of the following: universalDistributionGroup, universalSecurityGroup, universalMailEnabledSecurityGroup. Microsoft Entra security groups can be written back as universalSecurityGroup. If isEnabled or the NewUnifiedGroupWritebackDefault group setting is true but this property isn't explicitly configured: Microsoft 365 groups are written back as universalDistributionGroup by defaultSecurity groups are written back as universalSecurityGroup by default." + }, + "isEnabled": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "Indicates whether writeback of cloud groups to on-premise Active Directory is enabled. Default value is true for Microsoft 365 groups and false for security groups." + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphRelationship", + "properties": { + "relationshipSemantics": { + "type": { + "$ref": "#/19" + }, + "flags": 0, + "description": "Specifies the semantics used by the Microsoft Graph Bicep extension to process the relationships. The 'append' semantics means that the relationship items in the template are added to the existing list. The 'replace' semantics means that the relationship items in the template will replace all existing items in the Entra resource. The default value (if not set) is 'append'" + }, + "relationships": { + "type": { + "$ref": "#/20" + }, + "flags": 1, + "description": "The list of object ids to be included in the relationship." + } + } + }, + { + "$type": "StringLiteralType", + "value": "append" + }, + { + "$type": "StringLiteralType", + "value": "replace" + }, + { + "$type": "UnionType", + "elements": [ + { + "$ref": "#/17" + }, + { + "$ref": "#/18" + }, + { + "$ref": "#/0" + } + ] + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ResourceType", + "name": "Microsoft.Graph/groups@beta", + "scopeType": 0, + "body": { + "$ref": "#/3" + }, + "flags": 0 + }, + { + "$type": "StringLiteralType", + "value": "Microsoft.Graph/applications" + }, + { + "$type": "StringLiteralType", + "value": "beta" + }, + { + "$type": "ObjectType", + "name": "Microsoft.Graph/applications", + "properties": { + "type": { + "type": { + "$ref": "#/22" + }, + "flags": 10, + "description": "The resource type" + }, + "apiVersion": { + "type": { + "$ref": "#/23" + }, + "flags": 10, + "description": "The resource api version" + }, + "api": { + "type": { + "$ref": "#/25" + }, + "flags": 0, + "description": "Specifies settings for an application that implements a web API." + }, + "appId": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The unique identifier for the application that is assigned by Microsoft Entra ID. Not nullable. Read-only. Alternate key." + }, + "appRoles": { + "type": { + "$ref": "#/36" + }, + "flags": 0, + "description": "The collection of roles defined for the application. With app role assignments, these roles can be assigned to users, groups, or service principals associated with other applications. Not nullable." + }, + "authenticationBehaviors": { + "type": { + "$ref": "#/37" + }, + "flags": 0, + "description": "The collection of breaking change behaviors related to token issuance that are configured for the application. Authentication behaviors are unset by default (null) and must be explicitly enabled or disabled. Nullable. For more information about authentication behaviors, see Manage application authenticationBehaviors to avoid unverified use of email claims for user identification or authorization." + }, + "certification": { + "type": { + "$ref": "#/38" + }, + "flags": 2, + "description": "Specifies the certification status of the application." + }, + "createdDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The date and time the application was registered. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only." + }, + "defaultRedirectUri": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The default redirect URI. If specified and there's no explicit redirect URI in the sign-in request for SAML and OIDC flows, Microsoft Entra ID sends the token to this redirect URI. Microsoft Entra ID also sends the token to this default URI in SAML IdP-initiated single sign-on. The value must match one of the configured redirect URIs for the application." + }, + "description": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Free text field to provide a description of the application object to end users. The maximum allowed size is 1,024 characters." + }, + "disabledByMicrosoftStatus": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons may include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement)." + }, + "displayName": { + "type": { + "$ref": "#/0" + }, + "flags": 1, + "description": "The display name for the application. Maximum length is 256 characters." + }, + "groupMembershipClaims": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following string values: None, SecurityGroup (for security groups and Microsoft Entra roles), All (this gets all security groups, distribution groups, and Microsoft Entra directory roles that the signed-in user is a member of)." + }, + "identifierUris": { + "type": { + "$ref": "#/39" + }, + "flags": 0, + "description": "Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you reference in your API's code, and it must be globally unique across Microsoft Entra ID. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable." + }, + "info": { + "type": { + "$ref": "#/40" + }, + "flags": 0, + "description": "Basic profile information of the application, such as it's marketing, support, terms of service, and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more information, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps." + }, + "isDeviceOnlyAuthSupported": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "Specifies whether this application supports device authentication without a user. The default is false." + }, + "isFallbackPublicClient": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false, which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID can't determine the client application type. For example, the ROPC flow where the application is configured without specifying a redirect URI. In those cases Microsoft Entra ID interprets the application type based on the value of this property." + }, + "keyCredentials": { + "type": { + "$ref": "#/42" + }, + "flags": 0, + "description": "The collection of key credentials associated with the application. Not nullable." + }, + "nativeAuthenticationApisEnabled": { + "type": { + "$ref": "#/45" + }, + "flags": 0, + "description": "Specifies whether the Native Authentication APIs are enabled for the application. The possible values are: noneand all. Default is none. For more information, see Native Authentication." + }, + "notes": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Notes relevant for the management of the application." + }, + "optionalClaims": { + "type": { + "$ref": "#/46" + }, + "flags": 0, + "description": "Application developers can configure optional claims in their Microsoft Entra applications to specify the claims that are sent to their application by the Microsoft security token service. For more information, see How to: Provide optional claims to your app." + }, + "parentalControlSettings": { + "type": { + "$ref": "#/52" + }, + "flags": 0, + "description": "Specifies parental control settings for an application." + }, + "passwordCredentials": { + "type": { + "$ref": "#/55" + }, + "flags": 0, + "description": "The collection of password credentials associated with the application. Not nullable." + }, + "publicClient": { + "type": { + "$ref": "#/56" + }, + "flags": 0, + "description": "Specifies settings for installed clients such as desktop or mobile devices." + }, + "publisherDomain": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The verified publisher domain for the application. Read-only." + }, + "requestSignatureVerification": { + "type": { + "$ref": "#/58" + }, + "flags": 0, + "description": "Specifies whether this application requires Microsoft Entra ID to verify the signed authentication requests." + }, + "requiredResourceAccess": { + "type": { + "$ref": "#/64" + }, + "flags": 0, + "description": "Specifies the resources that the application needs to access. This property also specifies the set of delegated permissions and application roles that it needs for each of those resources. This configuration of access to the required resources drives the consent experience. No more than 50 resource services (APIs) can be configured. Beginning mid-October 2021, the total number of required permissions must not exceed 400. For more information, see Limits on requested permissions per app. Not nullable." + }, + "samlMetadataUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The URL where the service exposes SAML metadata for federation. This property is valid only for single-tenant applications. Nullable." + }, + "serviceManagementReference": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "References application or service contact information from a Service or Asset Management database. Nullable." + }, + "servicePrincipalLockConfiguration": { + "type": { + "$ref": "#/65" + }, + "flags": 0, + "description": "Specifies whether sensitive properties of a multitenant application should be locked for editing after the application is provisioned in a tenant. Nullable. null by default." + }, + "signInAudience": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the Microsoft accounts that are supported for the current application. The possible values are: AzureADMyOrg (default), AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount, and PersonalMicrosoftAccount. See more in the table. The value of this object also limits the number of permissions an app can request. For more information, see Limits on requested permissions per app. The value for this property has implications on other app object properties. As a result, if you change this property, you may need to change other properties first." + }, + "spa": { + "type": { + "$ref": "#/66" + }, + "flags": 0, + "description": "Specifies settings for a single-page application, including sign out URLs and redirect URIs for authorization codes and access tokens." + }, + "tags": { + "type": { + "$ref": "#/68" + }, + "flags": 0, + "description": "Custom strings that can be used to categorize and identify the application. Not nullable." + }, + "tokenEncryptionKeyId": { + "type": { + "$ref": "#/26" + }, + "flags": 0, + "description": "Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID encrypts all the tokens it emits by using the key this property points to. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user." + }, + "uniqueName": { + "type": { + "$ref": "#/0" + }, + "flags": 25, + "description": "The unique identifier that can be assigned to an application and used as an alternate key. Immutable." + }, + "verifiedPublisher": { + "type": { + "$ref": "#/69" + }, + "flags": 2, + "description": "Specifies the verified publisher of the application. For more information about how publisher verification helps support application security, trustworthiness, and compliance, see Publisher verification." + }, + "web": { + "type": { + "$ref": "#/70" + }, + "flags": 0, + "description": "Specifies settings for a web application." + }, + "windows": { + "type": { + "$ref": "#/75" + }, + "flags": 0, + "description": "Specifies settings for apps running Microsoft Windows and published in the Microsoft Store or Xbox games store." + }, + "owners": { + "type": { + "$ref": "#/16" + }, + "flags": 0, + "description": "Directory objects that are owners of this application. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable." + }, + "deletedDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Date and time when this object was deleted. Always null when the object hasn't been deleted." + }, + "id": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The unique identifier for an entity. Read-only." + }, + "logo": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The main logo for the application. Not nullable." + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphApiApplication", + "properties": { + "acceptMappedClaims": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "When true, allows an application to use claims mapping without specifying a custom signing key." + }, + "knownClientApplications": { + "type": { + "$ref": "#/27" + }, + "flags": 0, + "description": "Used for bundling consent if you have a solution that contains two parts: a client app and a custom web API app. If you set the appID of the client app to this value, the user only consents once to the client app. Microsoft Entra ID knows that consenting to the client means implicitly consenting to the web API and automatically provisions service principals for both APIs at the same time. Both the client and the web API app must be registered in the same tenant." + }, + "oauth2PermissionScopes": { + "type": { + "$ref": "#/29" + }, + "flags": 0, + "description": "The definition of the delegated permissions exposed by the web API represented by this application registration. These delegated permissions may be requested by a client application, and may be granted by users or administrators during consent. Delegated permissions are sometimes referred to as OAuth 2.0 scopes." + }, + "preAuthorizedApplications": { + "type": { + "$ref": "#/32" + }, + "flags": 0, + "description": "Lists the client applications that are preauthorized with the specified delegated permissions to access this application's APIs. Users aren't required to consent to any preauthorized application (for the permissions specified). However, any other permissions not listed in preAuthorizedApplications (requested through incremental consent for example) will require user consent." + }, + "requestedAccessTokenVersion": { + "type": { + "$ref": "#/33" + }, + "flags": 0, + "description": "Specifies the access token version expected by this resource. This changes the version and format of the JWT produced independent of the endpoint or client used to request the access token. The endpoint used, v1.0 or v2.0, is chosen by the client and only impacts the version of id_tokens. Resources need to explicitly configure requestedAccessTokenVersion to indicate the supported access token format. Possible values for requestedAccessTokenVersion are 1, 2, or null. If the value is null, this defaults to 1, which corresponds to the v1.0 endpoint. If signInAudience on the application is configured as AzureADandPersonalMicrosoftAccount or PersonalMicrosoftAccount, the value for this property must be 2." + } + } + }, + { + "$type": "StringType", + "minLength": 36, + "maxLength": 36, + "pattern": "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$" + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/26" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphPermissionScope", + "properties": { + "adminConsentDescription": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "A description of the delegated permissions, intended to be read by an administrator granting the permission on behalf of all users. This text appears in tenant-wide admin consent experiences." + }, + "adminConsentDisplayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The permission's title, intended to be read by an administrator granting the permission on behalf of all users." + }, + "id": { + "type": { + "$ref": "#/26" + }, + "flags": 0, + "description": "Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application." + }, + "isEnabled": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "When you create or update a permission, this property must be set to true (which is the default). To delete a permission, this property must first be set to false. At that point, in a subsequent call, the permission may be removed." + }, + "type": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The possible values are: User and Admin. Specifies whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator consent should always be required. While Microsoft Graph defines the default consent requirement for each permission, the tenant administrator may override the behavior in their organization (by allowing, restricting, or limiting user consent to this delegated permission). For more information, see Configure how users consent to applications." + }, + "userConsentDescription": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "A description of the delegated permissions, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves." + }, + "userConsentDisplayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "A title for the permission, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves." + }, + "value": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the value to include in the scp (scope) claim in access tokens. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , -. / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with .." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/28" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphPreAuthorizedApplication", + "properties": { + "appId": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The unique identifier for the client application." + }, + "permissionIds": { + "type": { + "$ref": "#/31" + }, + "flags": 0, + "description": "The unique identifier for the scopes the client application is granted." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/30" + } + }, + { + "$type": "IntegerType" + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphAppRole", + "properties": { + "allowedMemberTypes": { + "type": { + "$ref": "#/35" + }, + "flags": 0, + "description": "Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment to other applications' service principals are also known as application permissions. The 'Application' value is only supported for app roles defined on application entities." + }, + "description": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The description for the app role. This is displayed when the app role is being assigned and, if the app role functions as an application permission, during consent experiences." + }, + "displayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Display name for the permission that appears in the app role assignment and consent experiences." + }, + "id": { + "type": { + "$ref": "#/26" + }, + "flags": 0, + "description": "Unique role identifier inside the appRoles collection. You must specify a new GUID identifier when you create a new app role." + }, + "isEnabled": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "When you create or updating an app role, this value must be true. To delete a role, this must first be set to false. At that point, in a subsequent call, this role might be removed. Default value is true." + }, + "origin": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Specifies if the app role is defined on the application object or on the servicePrincipal entity. Must not be included in any POST or PATCH requests. Read-only." + }, + "value": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , -. / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z, and a-z. Any other character, including the space character, aren't allowed. May not begin with .." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/34" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphAuthenticationBehaviors", + "properties": { + "blockAzureADGraphAccess": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "If false, allows the app to have extended access to Azure AD Graph until June 30, 2025 when Azure AD Graph is fully retired. For more information on Azure AD retirement updates, see June 2024 update on Azure AD Graph API retirement." + }, + "removeUnverifiedEmailClaim": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "If true, removes the email claim from tokens sent to an application when the email address's domain can't be verified." + }, + "requireClientServicePrincipal": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "If true, requires multitenant applications to have a service principal in the resource tenant as part of authorization checks before they're granted access tokens. This property is only modifiable for multitenant resource applications that rely on access from clients without a service principal and had this behavior as set to false by Microsoft. Tenant administrators should respond to security advisories sent through Azure Health Service events and the Microsoft 365 message center." + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphCertification", + "properties": { + "certificationDetailsUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "URL that shows certification details for the application." + }, + "certificationExpirationDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The timestamp when the current certification for the application expires." + }, + "isCertifiedByMicrosoft": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "Indicates whether the application is certified by Microsoft." + }, + "isPublisherAttested": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "Indicates whether the application developer or publisher completed Publisher Attestation." + }, + "lastCertificationDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The timestamp when the certification for the application was most recently added or updated." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphInformationalUrl", + "properties": { + "logoUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "CDN URL to the application's logo, Read-only." + }, + "marketingUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Link to the application's marketing page. For example, https://www.contoso.com/app/marketing." + }, + "privacyStatementUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Link to the application's privacy statement. For example, https://www.contoso.com/app/privacy." + }, + "supportUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Link to the application's support page. For example, https://www.contoso.com/app/support." + }, + "termsOfServiceUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Link to the application's terms of service statement. For example, https://www.contoso.com/app/termsofservice." + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphKeyCredential", + "properties": { + "customKeyIdentifier": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "A 40-character binary type that can be used to identify the credential. Optional. When not provided in the payload, defaults to the thumbprint of the certificate." + }, + "displayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The friendly name for the key, with a maximum length of 90 characters. Longer values are accepted but shortened. Optional." + }, + "endDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The date and time at which the credential expires. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z." + }, + "key": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Value for the key credential. Should be a Base64 encoded value. From a .cer certificate, you can read the key using the Convert.ToBase64String() method. For more information, see Get the certificate key." + }, + "keyId": { + "type": { + "$ref": "#/26" + }, + "flags": 0, + "description": "The unique identifier for the key." + }, + "startDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The date and time at which the credential becomes valid.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z." + }, + "type": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The type of key credential; for example, Symmetric, AsymmetricX509Cert, or X509CertAndPassword." + }, + "usage": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "A string that describes the purpose for which the key can be used; for example, None​, Verify​, PairwiseIdentifier​, Delegation​, Decrypt​, Encrypt​, HashedIdentifier​, SelfSignedTls, or Sign. If usage is Sign​, the type should be X509CertAndPassword​, and the passwordCredentials​ for signing should be defined." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/41" + } + }, + { + "$type": "StringLiteralType", + "value": "none" + }, + { + "$type": "StringLiteralType", + "value": "all" + }, + { + "$type": "UnionType", + "elements": [ + { + "$ref": "#/43" + }, + { + "$ref": "#/44" + }, + { + "$ref": "#/0" + } + ] + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphOptionalClaims", + "properties": { + "accessToken": { + "type": { + "$ref": "#/49" + }, + "flags": 0, + "description": "The optional claims returned in the JWT access token." + }, + "idToken": { + "type": { + "$ref": "#/50" + }, + "flags": 0, + "description": "The optional claims returned in the JWT ID token." + }, + "saml2Token": { + "type": { + "$ref": "#/51" + }, + "flags": 0, + "description": "The optional claims returned in the SAML token." + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphOptionalClaim", + "properties": { + "additionalProperties": { + "type": { + "$ref": "#/48" + }, + "flags": 0, + "description": "Additional properties of the claim. If a property exists in this collection, it modifies the behavior of the optional claim specified in the name property." + }, + "essential": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "If the value is true, the claim specified by the client is necessary to ensure a smooth authorization experience for the specific task requested by the end user. The default value is false." + }, + "name": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The name of the optional claim." + }, + "source": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The source (directory object) of the claim. There are predefined claims and user-defined claims from extension properties. If the source value is null, the claim is a predefined optional claim. If the source value is user, the value in the name property is the extension property from the user object." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/47" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/47" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/47" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphParentalControlSettings", + "properties": { + "countriesBlockedForMinors": { + "type": { + "$ref": "#/53" + }, + "flags": 0, + "description": "Specifies the two-letter ISO country codes. Access to the application will be blocked for minors from the countries specified in this list." + }, + "legalAgeGroupRule": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the legal age group rule that applies to users of the app. Can be set to one of the following values: ValueDescriptionAllowDefault. Enforces the legal minimum. This means parental consent is required for minors in the European Union and Korea.RequireConsentForPrivacyServicesEnforces the user to specify date of birth to comply with COPPA rules. RequireConsentForMinorsRequires parental consent for ages below 18, regardless of country/region minor rules.RequireConsentForKidsRequires parental consent for ages below 14, regardless of country/region minor rules.BlockMinorsBlocks minors from using the app." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphPasswordCredential", + "properties": { + "displayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Friendly name for the password. Optional." + }, + "endDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The date and time at which the password expires represented using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional." + }, + "hint": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Contains the first three characters of the password. Read-only." + }, + "keyId": { + "type": { + "$ref": "#/26" + }, + "flags": 0, + "description": "The unique identifier for the password." + }, + "secretText": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Read-only; Contains the strong passwords generated by Microsoft Entra ID that are 16-64 characters in length. The generated password value is only returned during the initial POST request to addPassword. There is no way to retrieve this password in the future." + }, + "startDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The date and time at which the password becomes valid. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/54" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphPublicClientApplication", + "properties": { + "redirectUris": { + "type": { + "$ref": "#/57" + }, + "flags": 0, + "description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. For iOS and macOS apps, specify the value following the syntax msauth.{BUNDLEID}://auth, replacing '{BUNDLEID}'. For example, if the bundle ID is com.microsoft.identitysample.MSALiOS, the URI is msauth.com.microsoft.identitysample.MSALiOS://auth." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphRequestSignatureVerification", + "properties": { + "allowedWeakAlgorithms": { + "type": { + "$ref": "#/60" + }, + "flags": 0, + "description": "Specifies whether this application accepts weak algorithms. The possible values are: rsaSha1, unknownFutureValue." + }, + "isSignedRequestRequired": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "Specifies whether signed authentication requests for this application should be required." + } + } + }, + { + "$type": "StringLiteralType", + "value": "rsaSha1" + }, + { + "$type": "UnionType", + "elements": [ + { + "$ref": "#/59" + }, + { + "$ref": "#/0" + } + ] + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphRequiredResourceAccess", + "properties": { + "resourceAccess": { + "type": { + "$ref": "#/63" + }, + "flags": 0, + "description": "The list of OAuth2.0 permission scopes and app roles that the application requires from the specified resource." + }, + "resourceAppId": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The unique identifier for the resource that the application requires access to. This should be equal to the appId declared on the target resource application." + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphResourceAccess", + "properties": { + "id": { + "type": { + "$ref": "#/26" + }, + "flags": 0, + "description": "The unique identifier of an app role or delegated permission exposed by the resource application. For delegated permissions, this should match the id property of one of the delegated permissions in the oauth2PermissionScopes collection of the resource application's service principal. For app roles (application permissions), this should match the id property of an app role in the appRoles collection of the resource application's service principal." + }, + "type": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies whether the id property references a delegated permission or an app role (application permission). The possible values are: Scope (for delegated permissions) or Role (for app roles)." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/62" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/61" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphServicePrincipalLockConfiguration", + "properties": { + "allProperties": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "Enables locking all sensitive properties. The sensitive properties are keyCredentials, passwordCredentials, and tokenEncryptionKeyId." + }, + "credentialsWithUsageSign": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "Locks the keyCredentials and passwordCredentials properties for modification where credential usage type is Sign." + }, + "credentialsWithUsageVerify": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "Locks the keyCredentials and passwordCredentials properties for modification where credential usage type is Verify. This locks OAuth service principals." + }, + "isEnabled": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "Enables or disables service principal lock configuration. To allow the sensitive properties to be updated, update this property to false to disable the lock on the service principal." + }, + "tokenEncryptionKeyId": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "Locks the tokenEncryptionKeyId property for modification on the service principal." + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphSpaApplication", + "properties": { + "redirectUris": { + "type": { + "$ref": "#/67" + }, + "flags": 0, + "description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphVerifiedPublisher", + "properties": { + "addedDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The timestamp when the verified publisher was first added or most recently updated." + }, + "displayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The verified publisher name from the app publisher's Microsoft Partner Network (MPN) account." + }, + "verifiedPublisherId": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The ID of the verified publisher from the app publisher's Partner Center account." + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphWebApplication", + "properties": { + "homePageUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Home page or landing page of the application." + }, + "implicitGrantSettings": { + "type": { + "$ref": "#/71" + }, + "flags": 0, + "description": "Specifies whether this web application can request tokens using the OAuth 2.0 implicit flow." + }, + "logoutUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the URL that will be used by Microsoft's authorization service to logout a user using front-channel, back-channel or SAML logout protocols." + }, + "oauth2AllowImplicitFlow": { + "type": { + "$ref": "#/7" + }, + "flags": 0 + }, + "redirectUris": { + "type": { + "$ref": "#/72" + }, + "flags": 0, + "description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent." + }, + "redirectUriSettings": { + "type": { + "$ref": "#/74" + }, + "flags": 0, + "description": "Specifies the index of the URLs where user tokens are sent for sign-in. This is only valid for applications using SAML." + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphImplicitGrantSettings", + "properties": { + "enableAccessTokenIssuance": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "Specifies whether this web application can request an access token using the OAuth 2.0 implicit flow." + }, + "enableIdTokenIssuance": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "Specifies whether this web application can request an ID token using the OAuth 2.0 implicit flow." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphRedirectUriSettings", + "properties": { + "index": { + "type": { + "$ref": "#/33" + }, + "flags": 0, + "description": "Identifies the specific URI within the redirectURIs collection in SAML SSO flows. Defaults to null. The index is unique across all the redirectUris for the application." + }, + "uri": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the URI that tokens are sent to." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/73" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphWindowsApplication", + "properties": { + "packageSid": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The package security identifier that Microsoft has assigned the application. Optional. Read-only." + }, + "redirectUris": { + "type": { + "$ref": "#/76" + }, + "flags": 0, + "description": "Specifies the URLs where user tokens are sent for sign-in or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. Only available for applications that support the PersonalMicrosoftAccount signInAudience." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ResourceType", + "name": "Microsoft.Graph/applications@beta", + "scopeType": 0, + "body": { + "$ref": "#/24" + }, + "flags": 0 + }, + { + "$type": "StringLiteralType", + "value": "Microsoft.Graph/servicePrincipals" + }, + { + "$type": "StringLiteralType", + "value": "beta" + }, + { + "$type": "ObjectType", + "name": "Microsoft.Graph/servicePrincipals", + "properties": { + "type": { + "type": { + "$ref": "#/78" + }, + "flags": 10, + "description": "The resource type" + }, + "apiVersion": { + "type": { + "$ref": "#/79" + }, + "flags": 10, + "description": "The resource api version" + }, + "accountEnabled": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "true if the service principal account is enabled; otherwise, false. If set to false, then no users are able to sign in to this app, even if they're assigned to it." + }, + "addIns": { + "type": { + "$ref": "#/84" + }, + "flags": 0, + "description": "Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on." + }, + "alternativeNames": { + "type": { + "$ref": "#/85" + }, + "flags": 0, + "description": "Used to retrieve service principals by subscription, identify resource group and full resource IDs for managed identities." + }, + "appDescription": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The description exposed by the associated application." + }, + "appDisplayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The display name exposed by the associated application. Maximum length is 256 characters." + }, + "appId": { + "type": { + "$ref": "#/0" + }, + "flags": 17, + "description": "The unique identifier for the associated application (its appId property). Alternate key." + }, + "applicationTemplateId": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Unique identifier of the applicationTemplate. Read-only. null if the app wasn't created from an application template." + }, + "appOwnerOrganizationId": { + "type": { + "$ref": "#/26" + }, + "flags": 2, + "description": "Contains the tenant ID where the application is registered. This is applicable only to service principals backed by applications." + }, + "appRoleAssignmentRequired": { + "type": { + "$ref": "#/7" + }, + "flags": 0, + "description": "Specifies whether users or other service principals need to be granted an app role assignment for this service principal before users can sign in or apps can get tokens. The default value is false. Not nullable." + }, + "appRoles": { + "type": { + "$ref": "#/86" + }, + "flags": 0, + "description": "The roles exposed by the application, which this service principal represents. For more information, see the appRoles property definition on the application entity. Not nullable." + }, + "description": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Free text field to provide an internal end-user facing description of the service principal. End-user portals such MyApps displays the application description in this field. The maximum allowed size is 1,024 characters." + }, + "disabledByMicrosoftStatus": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons may include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement)." + }, + "displayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The display name for the service principal." + }, + "homepage": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Home page or landing page of the application." + }, + "info": { + "type": { + "$ref": "#/40" + }, + "flags": 0, + "description": "Basic profile information of the acquired application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps." + }, + "keyCredentials": { + "type": { + "$ref": "#/87" + }, + "flags": 0, + "description": "The collection of key credentials associated with the service principal. Not nullable." + }, + "loginUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the URL where the service provider redirects the user to Microsoft Entra ID to authenticate. Microsoft Entra ID uses the URL to launch the application from Microsoft 365 or the Microsoft Entra My Apps. When blank, Microsoft Entra ID performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Microsoft Entra My Apps, or the Microsoft Entra SSO URL." + }, + "logoutUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the URL that the Microsoft's authorization service uses to sign out a user using OpenId Connect front-channel, back-channel, or SAML sign out protocols." + }, + "notes": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Free text field to capture information about the service principal, typically used for operational purposes. Maximum allowed size is 1,024 characters." + }, + "notificationEmailAddresses": { + "type": { + "$ref": "#/88" + }, + "flags": 0, + "description": "Specifies the list of email addresses where Microsoft Entra ID sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Microsoft Entra Gallery applications." + }, + "passwordCredentials": { + "type": { + "$ref": "#/89" + }, + "flags": 0, + "description": "The collection of password credentials associated with the service principal. Not nullable." + }, + "preferredSingleSignOnMode": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the single sign-on mode configured for this application. Microsoft Entra ID uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Microsoft Entra My Apps. The supported values are password, saml, notSupported, and oidc. Note: This field might be null for older SAML apps and for OIDC applications where it isn't set automatically." + }, + "preferredTokenSigningKeyEndDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the expiration date of the keyCredential used for token signing, marked by preferredTokenSigningKeyThumbprint. Updating this attribute isn't currently supported. For details, see ServicePrincipal property differences." + }, + "preferredTokenSigningKeyThumbprint": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "This property can be used on SAML applications (apps that have preferredSingleSignOnMode set to saml) to control which certificate is used to sign the SAML responses. For applications that aren't SAML, don't write or otherwise rely on this property." + }, + "publishedPermissionScopes": { + "type": { + "$ref": "#/90" + }, + "flags": 0, + "description": "The delegated permissions exposed by the application. For more information, see the oauth2PermissionScopes property on the application entity's api property. Not nullable. Note: This property is named oauth2PermissionScopes in v1.0." + }, + "publisherName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The name of the Microsoft Entra tenant that published the application." + }, + "replyUrls": { + "type": { + "$ref": "#/91" + }, + "flags": 0, + "description": "The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application. Not nullable." + }, + "samlMetadataUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The url where the service exposes SAML metadata for federation." + }, + "samlSingleSignOnSettings": { + "type": { + "$ref": "#/92" + }, + "flags": 0, + "description": "The collection for settings related to saml single sign-on." + }, + "servicePrincipalNames": { + "type": { + "$ref": "#/93" + }, + "flags": 0, + "description": "Contains the list of identifiersUris, copied over from the associated application. More values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI that is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable." + }, + "servicePrincipalType": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Identifies if the service principal represents an application or a managed identity. This is set by Microsoft Entra ID internally. For a service principal that represents an application this is set as Application. For a service principal that represents a managed identity this is set as ManagedIdentity. The SocialIdp type is for internal use." + }, + "signInAudience": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multitenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only." + }, + "tags": { + "type": { + "$ref": "#/94" + }, + "flags": 0, + "description": "Custom strings that can be used to categorize and identify the service principal. Not nullable." + }, + "tokenEncryptionKeyId": { + "type": { + "$ref": "#/26" + }, + "flags": 0, + "description": "Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user." + }, + "verifiedPublisher": { + "type": { + "$ref": "#/69" + }, + "flags": 0, + "description": "Specifies the verified publisher of the application that's linked to this service principal." + }, + "owners": { + "type": { + "$ref": "#/16" + }, + "flags": 0, + "description": "Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object." + }, + "deletedDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Date and time when this object was deleted. Always null when the object hasn't been deleted." + }, + "id": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The unique identifier for an entity. Read-only." + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphAddIn", + "properties": { + "id": { + "type": { + "$ref": "#/26" + }, + "flags": 0, + "description": "The unique identifier for the addIn object." + }, + "properties": { + "type": { + "$ref": "#/83" + }, + "flags": 0, + "description": "The collection of key-value pairs that define parameters that the consuming service can use or call. You must specify this property when performing a POST or a PATCH operation on the addIns collection. Required." + }, + "type": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The unique name for the functionality exposed by the app." + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphKeyValue", + "properties": { + "key": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Key." + }, + "value": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Value." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/82" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/81" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/34" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/41" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/54" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/28" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphSamlSingleSignOnSettings", + "properties": { + "relayState": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The relative URI the service provider would redirect to after completion of the single sign-on flow." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ResourceType", + "name": "Microsoft.Graph/servicePrincipals@beta", + "scopeType": 0, + "body": { + "$ref": "#/80" + }, + "flags": 0 + }, + { + "$type": "StringLiteralType", + "value": "Microsoft.Graph/applications/federatedIdentityCredentials" + }, + { + "$type": "StringLiteralType", + "value": "beta" + }, + { + "$type": "ObjectType", + "name": "Microsoft.Graph/applications/federatedIdentityCredentials", + "properties": { + "type": { + "type": { + "$ref": "#/96" + }, + "flags": 10, + "description": "The resource type" + }, + "apiVersion": { + "type": { + "$ref": "#/97" + }, + "flags": 10, + "description": "The resource api version" + }, + "audiences": { + "type": { + "$ref": "#/99" + }, + "flags": 1, + "description": "The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Microsoft Entra ID. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Microsoft Entra ID in your external identity provider and has no fixed value across identity providers - you may need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required." + }, + "claimsMatchingExpression": { + "type": { + "$ref": "#/100" + }, + "flags": 0, + "description": "Nullable. Defaults to null if not set. Enables the use of claims matching expressions against specified claims. If claimsMatchingExpression is defined, subject must be null. For the list of supported expression syntax and claims, visit the Flexible FIC reference." + }, + "description": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The un-validated, user-provided description of the federated identity credential. It has a limit of 600 characters. Optional." + }, + "issuer": { + "type": { + "$ref": "#/0" + }, + "flags": 1, + "description": "The URL of the external identity provider and must match the issuer claim of the external token being exchanged. The combination of the values of issuer and subject must be unique on the app. It has a limit of 600 characters. Required." + }, + "name": { + "type": { + "$ref": "#/0" + }, + "flags": 17, + "description": "The unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. It is immutable once created. Alternate key. Required. Not nullable." + }, + "subject": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Nullable. Defaults to null if not set. The identifier of the external software workload within the external identity provider. Like the audience value, it has no fixed format, as each identity provider uses their own - sometimes a GUID, sometimes a colon delimited identifier, sometimes arbitrary strings. The value here must match the sub claim within the token presented to Microsoft Entra ID. The combination of issuer and subject must be unique on the app. It has a limit of 600 characters. If subject is defined, claimsMatchingExpression must be null." + }, + "id": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The unique identifier for an entity. Read-only." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphFederatedIdentityExpression", + "properties": { + "languageVersion": { + "type": { + "$ref": "#/33" + }, + "flags": 0, + "description": "Indicated the language version to be used. Should always be set to 1. Required." + }, + "value": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Indicates the configured expression. Required." + } + } + }, + { + "$type": "ResourceType", + "name": "Microsoft.Graph/applications/federatedIdentityCredentials@beta", + "scopeType": 0, + "body": { + "$ref": "#/98" + }, + "flags": 0 + }, + { + "$type": "StringLiteralType", + "value": "Microsoft.Graph/oauth2PermissionGrants" + }, + { + "$type": "StringLiteralType", + "value": "beta" + }, + { + "$type": "ObjectType", + "name": "Microsoft.Graph/oauth2PermissionGrants", + "properties": { + "type": { + "type": { + "$ref": "#/102" + }, + "flags": 10, + "description": "The resource type" + }, + "apiVersion": { + "type": { + "$ref": "#/103" + }, + "flags": 10, + "description": "The resource api version" + }, + "clientId": { + "type": { + "$ref": "#/0" + }, + "flags": 1, + "description": "The object id (not appId) of the client service principal for the application that is authorized to act on behalf of a signed-in user when accessing an API. Required." + }, + "consentType": { + "type": { + "$ref": "#/0" + }, + "flags": 1, + "description": "Indicates whether authorization is granted for the client application to impersonate all users or only a specific user. AllPrincipals indicates authorization to impersonate all users. Principal indicates authorization to impersonate a specific user. Consent on behalf of all users can be granted by an administrator. Nonadmin users may be authorized to consent on behalf of themselves in some cases, for some delegated permissions. Required." + }, + "principalId": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The id of the user on behalf of whom the client is authorized to access the resource, when consentType is Principal. If consentType is AllPrincipals this value is null. Required when consentType is Principal." + }, + "resourceId": { + "type": { + "$ref": "#/0" + }, + "flags": 1, + "description": "The id of the resource service principal to which access is authorized. This identifies the API that the client is authorized to attempt to call on behalf of a signed-in user." + }, + "scope": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "A space-separated list of the claim values for delegated permissions that should be included in access tokens for the resource application (the API). For example, openid User.Read GroupMember.Read.All. Each claim value should match the value field of one of the delegated permissions defined by the API, listed in the publishedPermissionScopes property of the resource service principal. Must not exceed 3850 characters in length." + }, + "id": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The unique identifier for an entity. Read-only." + } + } + }, + { + "$type": "ResourceType", + "name": "Microsoft.Graph/oauth2PermissionGrants@beta", + "scopeType": 0, + "body": { + "$ref": "#/104" + }, + "flags": 0 + }, + { + "$type": "StringLiteralType", + "value": "Microsoft.Graph/appRoleAssignedTo" + }, + { + "$type": "StringLiteralType", + "value": "beta" + }, + { + "$type": "ObjectType", + "name": "Microsoft.Graph/appRoleAssignedTo", + "properties": { + "type": { + "type": { + "$ref": "#/106" + }, + "flags": 10, + "description": "The resource type" + }, + "apiVersion": { + "type": { + "$ref": "#/107" + }, + "flags": 10, + "description": "The resource api version" + }, + "appRoleId": { + "type": { + "$ref": "#/26" + }, + "flags": 1, + "description": "The identifier (id) for the app role that is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application hasn't declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create." + }, + "creationTimestamp": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The time when the app role assignment was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only." + }, + "principalDisplayName": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The display name of the user, group, or service principal that was granted the app role assignment. Maximum length is 256 characters. Read-only." + }, + "principalId": { + "type": { + "$ref": "#/26" + }, + "flags": 1, + "description": "The unique identifier (id) for the user, security group, or service principal being granted the app role. Security groups with dynamic memberships are supported. Required on create." + }, + "principalType": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The type of the assigned principal. This can either be User, Group, or ServicePrincipal. Read-only." + }, + "resourceDisplayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The display name of the resource app's service principal to which the assignment is made. Maximum length is 256 characters." + }, + "resourceId": { + "type": { + "$ref": "#/26" + }, + "flags": 1, + "description": "The unique identifier (id) for the resource service principal for which the assignment is made. Required on create." + }, + "deletedDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Date and time when this object was deleted. Always null when the object hasn't been deleted." + }, + "id": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The unique identifier for an entity. Read-only." + } + } + }, + { + "$type": "ResourceType", + "name": "Microsoft.Graph/appRoleAssignedTo@beta", + "scopeType": 0, + "body": { + "$ref": "#/108" + }, + "flags": 0 + }, + { + "$type": "StringLiteralType", + "value": "Microsoft.Graph/users" + }, + { + "$type": "StringLiteralType", + "value": "beta" + }, + { + "$type": "ObjectType", + "name": "Microsoft.Graph/users", + "properties": { + "type": { + "type": { + "$ref": "#/110" + }, + "flags": 10, + "description": "The resource type" + }, + "apiVersion": { + "type": { + "$ref": "#/111" + }, + "flags": 10, + "description": "The resource api version" + }, + "businessPhones": { + "type": { + "$ref": "#/113" + }, + "flags": 2, + "description": "The telephone numbers for the user. Only one number can be set for this property. Read-only for users synced from on-premises directory." + }, + "displayName": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The name displayed in the address book for the user. This value is usually the combination of the user's first name, middle initial, and last name. This property is required when a user is created, and it cannot be cleared during updates. Maximum length is 256 characters." + }, + "givenName": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The given name (first name) of the user. Maximum length is 64 characters." + }, + "jobTitle": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The user's job title. Maximum length is 128 characters." + }, + "mail": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The SMTP address for the user, for example, admin@contoso.com. Changes to this property also update the user's proxyAddresses collection to include the value as an SMTP address. This property can't contain accent characters. NOTE: We don't recommend updating this property for Azure AD B2C user profiles. Use the otherMails property instead." + }, + "mobilePhone": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The primary cellular telephone number for the user. Read-only for users synced from the on-premises directory." + }, + "officeLocation": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The office location in the user's place of business. Maximum length is 128 characters." + }, + "preferredLanguage": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The preferred language for the user. The preferred language format is based on RFC 4646. The name combines an ISO 639 two-letter lowercase culture code associated with the language and an ISO 3166 two-letter uppercase subculture code associated with the country or region. Example: 'en-US', or 'es-ES'." + }, + "surname": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The user's surname (family name or last name). Maximum length is 64 characters." + }, + "userPrincipalName": { + "type": { + "$ref": "#/0" + }, + "flags": 25, + "description": "The user principal name (UPN) of the user. The UPN is an Internet-style sign-in name for the user based on the Internet standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where the domain must be present in the tenant's verified domain collection. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization.NOTE: This property can't contain accent characters. Only the following characters are allowed A - Z, a - z, 0 - 9, '. - _ ! # ^ ~. For the complete list of allowed characters, see username policies." + }, + "deletedDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Date and time when this object was deleted. Always null when the object hasn't been deleted." + }, + "id": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The unique identifier for an entity. Read-only." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ResourceType", + "name": "Microsoft.Graph/users@beta", + "scopeType": 0, + "body": { + "$ref": "#/112" + }, + "flags": 1 + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphBicepExtensionConfig", + "properties": { + "relationshipSemantics": { + "type": { + "$ref": "#/19" + }, + "flags": 0, + "description": "Specifies the semantics used by the Microsoft Graph Bicep extension to process the relationships. The 'append' semantics means that the relationship items in the template are added to the existing list. The 'replace' semantics means that the relationship items in the template will replace all existing items in the Entra resource. The default value (if not set) is 'append'" + } + } + } +] \ No newline at end of file diff --git a/generated/microsoftgraph/microsoft.graph/beta/1.0.1/types.md b/generated/microsoftgraph/microsoft.graph/beta/1.0.1/types.md new file mode 100644 index 0000000..12ff0a3 --- /dev/null +++ b/generated/microsoftgraph/microsoft.graph/beta/1.0.1/types.md @@ -0,0 +1,395 @@ +# Microsoft.Graph @ beta + +## Resource Microsoft.Graph/applications@beta +* **Valid Scope(s)**: Unknown +### Properties +* **api**: [MicrosoftGraphApiApplication](#microsoftgraphapiapplication): Specifies settings for an application that implements a web API. +* **apiVersion**: 'beta' (ReadOnly, DeployTimeConstant): The resource api version +* **appId**: string (ReadOnly): The unique identifier for the application that is assigned by Microsoft Entra ID. Not nullable. Read-only. Alternate key. +* **appRoles**: [MicrosoftGraphAppRole](#microsoftgraphapprole)[]: The collection of roles defined for the application. With app role assignments, these roles can be assigned to users, groups, or service principals associated with other applications. Not nullable. +* **authenticationBehaviors**: [MicrosoftGraphAuthenticationBehaviors](#microsoftgraphauthenticationbehaviors): The collection of breaking change behaviors related to token issuance that are configured for the application. Authentication behaviors are unset by default (null) and must be explicitly enabled or disabled. Nullable. For more information about authentication behaviors, see Manage application authenticationBehaviors to avoid unverified use of email claims for user identification or authorization. +* **certification**: [MicrosoftGraphCertification](#microsoftgraphcertification) (ReadOnly): Specifies the certification status of the application. +* **createdDateTime**: string (ReadOnly): The date and time the application was registered. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +* **defaultRedirectUri**: string: The default redirect URI. If specified and there's no explicit redirect URI in the sign-in request for SAML and OIDC flows, Microsoft Entra ID sends the token to this redirect URI. Microsoft Entra ID also sends the token to this default URI in SAML IdP-initiated single sign-on. The value must match one of the configured redirect URIs for the application. +* **deletedDateTime**: string (ReadOnly): Date and time when this object was deleted. Always null when the object hasn't been deleted. +* **description**: string: Free text field to provide a description of the application object to end users. The maximum allowed size is 1,024 characters. +* **disabledByMicrosoftStatus**: string (ReadOnly): Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons may include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement). +* **displayName**: string (Required): The display name for the application. Maximum length is 256 characters. +* **groupMembershipClaims**: string: Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following string values: None, SecurityGroup (for security groups and Microsoft Entra roles), All (this gets all security groups, distribution groups, and Microsoft Entra directory roles that the signed-in user is a member of). +* **id**: string (ReadOnly): The unique identifier for an entity. Read-only. +* **identifierUris**: string[]: Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you reference in your API's code, and it must be globally unique across Microsoft Entra ID. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable. +* **info**: [MicrosoftGraphInformationalUrl](#microsoftgraphinformationalurl): Basic profile information of the application, such as it's marketing, support, terms of service, and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more information, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps. +* **isDeviceOnlyAuthSupported**: bool: Specifies whether this application supports device authentication without a user. The default is false. +* **isFallbackPublicClient**: bool: Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false, which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID can't determine the client application type. For example, the ROPC flow where the application is configured without specifying a redirect URI. In those cases Microsoft Entra ID interprets the application type based on the value of this property. +* **keyCredentials**: [MicrosoftGraphKeyCredential](#microsoftgraphkeycredential)[]: The collection of key credentials associated with the application. Not nullable. +* **logo**: string: The main logo for the application. Not nullable. +* **nativeAuthenticationApisEnabled**: 'all' | 'none' | string: Specifies whether the Native Authentication APIs are enabled for the application. The possible values are: noneand all. Default is none. For more information, see Native Authentication. +* **notes**: string: Notes relevant for the management of the application. +* **optionalClaims**: [MicrosoftGraphOptionalClaims](#microsoftgraphoptionalclaims): Application developers can configure optional claims in their Microsoft Entra applications to specify the claims that are sent to their application by the Microsoft security token service. For more information, see How to: Provide optional claims to your app. +* **owners**: [MicrosoftGraphRelationship](#microsoftgraphrelationship): Directory objects that are owners of this application. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable. +* **parentalControlSettings**: [MicrosoftGraphParentalControlSettings](#microsoftgraphparentalcontrolsettings): Specifies parental control settings for an application. +* **passwordCredentials**: [MicrosoftGraphPasswordCredential](#microsoftgraphpasswordcredential)[]: The collection of password credentials associated with the application. Not nullable. +* **publicClient**: [MicrosoftGraphPublicClientApplication](#microsoftgraphpublicclientapplication): Specifies settings for installed clients such as desktop or mobile devices. +* **publisherDomain**: string (ReadOnly): The verified publisher domain for the application. Read-only. +* **requestSignatureVerification**: [MicrosoftGraphRequestSignatureVerification](#microsoftgraphrequestsignatureverification): Specifies whether this application requires Microsoft Entra ID to verify the signed authentication requests. +* **requiredResourceAccess**: [MicrosoftGraphRequiredResourceAccess](#microsoftgraphrequiredresourceaccess)[]: Specifies the resources that the application needs to access. This property also specifies the set of delegated permissions and application roles that it needs for each of those resources. This configuration of access to the required resources drives the consent experience. No more than 50 resource services (APIs) can be configured. Beginning mid-October 2021, the total number of required permissions must not exceed 400. For more information, see Limits on requested permissions per app. Not nullable. +* **samlMetadataUrl**: string: The URL where the service exposes SAML metadata for federation. This property is valid only for single-tenant applications. Nullable. +* **serviceManagementReference**: string: References application or service contact information from a Service or Asset Management database. Nullable. +* **servicePrincipalLockConfiguration**: [MicrosoftGraphServicePrincipalLockConfiguration](#microsoftgraphserviceprincipallockconfiguration): Specifies whether sensitive properties of a multitenant application should be locked for editing after the application is provisioned in a tenant. Nullable. null by default. +* **signInAudience**: string: Specifies the Microsoft accounts that are supported for the current application. The possible values are: AzureADMyOrg (default), AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount, and PersonalMicrosoftAccount. See more in the table. The value of this object also limits the number of permissions an app can request. For more information, see Limits on requested permissions per app. The value for this property has implications on other app object properties. As a result, if you change this property, you may need to change other properties first. +* **spa**: [MicrosoftGraphSpaApplication](#microsoftgraphspaapplication): Specifies settings for a single-page application, including sign out URLs and redirect URIs for authorization codes and access tokens. +* **tags**: string[]: Custom strings that can be used to categorize and identify the application. Not nullable. +* **tokenEncryptionKeyId**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"}: Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID encrypts all the tokens it emits by using the key this property points to. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user. +* **type**: 'Microsoft.Graph/applications' (ReadOnly, DeployTimeConstant): The resource type +* **uniqueName**: string (Required, DeployTimeConstant, Identifier): The unique identifier that can be assigned to an application and used as an alternate key. Immutable. +* **verifiedPublisher**: [MicrosoftGraphVerifiedPublisher](#microsoftgraphverifiedpublisher) (ReadOnly): Specifies the verified publisher of the application. For more information about how publisher verification helps support application security, trustworthiness, and compliance, see Publisher verification. +* **web**: [MicrosoftGraphWebApplication](#microsoftgraphwebapplication): Specifies settings for a web application. +* **windows**: [MicrosoftGraphWindowsApplication](#microsoftgraphwindowsapplication): Specifies settings for apps running Microsoft Windows and published in the Microsoft Store or Xbox games store. + +## Resource Microsoft.Graph/applications/federatedIdentityCredentials@beta +* **Valid Scope(s)**: Unknown +### Properties +* **apiVersion**: 'beta' (ReadOnly, DeployTimeConstant): The resource api version +* **audiences**: string[] (Required): The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Microsoft Entra ID. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Microsoft Entra ID in your external identity provider and has no fixed value across identity providers - you may need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required. +* **claimsMatchingExpression**: [MicrosoftGraphFederatedIdentityExpression](#microsoftgraphfederatedidentityexpression): Nullable. Defaults to null if not set. Enables the use of claims matching expressions against specified claims. If claimsMatchingExpression is defined, subject must be null. For the list of supported expression syntax and claims, visit the Flexible FIC reference. +* **description**: string: The un-validated, user-provided description of the federated identity credential. It has a limit of 600 characters. Optional. +* **id**: string (ReadOnly): The unique identifier for an entity. Read-only. +* **issuer**: string (Required): The URL of the external identity provider and must match the issuer claim of the external token being exchanged. The combination of the values of issuer and subject must be unique on the app. It has a limit of 600 characters. Required. +* **name**: string (Required, Identifier): The unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. It is immutable once created. Alternate key. Required. Not nullable. +* **subject**: string: Nullable. Defaults to null if not set. The identifier of the external software workload within the external identity provider. Like the audience value, it has no fixed format, as each identity provider uses their own - sometimes a GUID, sometimes a colon delimited identifier, sometimes arbitrary strings. The value here must match the sub claim within the token presented to Microsoft Entra ID. The combination of issuer and subject must be unique on the app. It has a limit of 600 characters. If subject is defined, claimsMatchingExpression must be null. +* **type**: 'Microsoft.Graph/applications/federatedIdentityCredentials' (ReadOnly, DeployTimeConstant): The resource type + +## Resource Microsoft.Graph/appRoleAssignedTo@beta +* **Valid Scope(s)**: Unknown +### Properties +* **apiVersion**: 'beta' (ReadOnly, DeployTimeConstant): The resource api version +* **appRoleId**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"} (Required): The identifier (id) for the app role that is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application hasn't declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create. +* **creationTimestamp**: string (ReadOnly): The time when the app role assignment was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +* **deletedDateTime**: string (ReadOnly): Date and time when this object was deleted. Always null when the object hasn't been deleted. +* **id**: string (ReadOnly): The unique identifier for an entity. Read-only. +* **principalDisplayName**: string (ReadOnly): The display name of the user, group, or service principal that was granted the app role assignment. Maximum length is 256 characters. Read-only. +* **principalId**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"} (Required): The unique identifier (id) for the user, security group, or service principal being granted the app role. Security groups with dynamic memberships are supported. Required on create. +* **principalType**: string (ReadOnly): The type of the assigned principal. This can either be User, Group, or ServicePrincipal. Read-only. +* **resourceDisplayName**: string: The display name of the resource app's service principal to which the assignment is made. Maximum length is 256 characters. +* **resourceId**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"} (Required): The unique identifier (id) for the resource service principal for which the assignment is made. Required on create. +* **type**: 'Microsoft.Graph/appRoleAssignedTo' (ReadOnly, DeployTimeConstant): The resource type + +## Resource Microsoft.Graph/groups@beta +* **Valid Scope(s)**: Unknown +### Properties +* **apiVersion**: 'beta' (ReadOnly, DeployTimeConstant): The resource api version +* **classification**: string: Describes a classification for the group (such as low, medium or high business impact). +* **cloudLicensing**: any: The relationships of a group to cloud licensing resources. +* **createdByAppId**: string (ReadOnly): App ID of the app used to create the group. Can be null for some groups. Read-only. +* **createdDateTime**: string (ReadOnly): Timestamp of when the group was created. The value can't be modified and is automatically populated when the group is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +* **deletedDateTime**: string (ReadOnly): Date and time when this object was deleted. Always null when the object hasn't been deleted. +* **description**: string: An optional description for the group. +* **displayName**: string (Required): The display name for the group. Required. Maximum length is 256 characters. +* **expirationDateTime**: string (ReadOnly): Timestamp of when the group is set to expire. It is null for security groups, but for Microsoft 365 groups, it represents when the group is set to expire as defined in the groupLifecyclePolicy. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +* **groupTypes**: string[]: Specifies the group type and its membership. If the collection contains Unified, the group is a Microsoft 365 group; otherwise, it's either a security group or a distribution group. For details, see groups overview.If the collection includes DynamicMembership, the group has dynamic membership; otherwise, membership is static. +* **id**: string (ReadOnly): The unique identifier for an entity. Read-only. +* **infoCatalogs**: string[]: Identifies the info segments assigned to the group. +* **isAssignableToRole**: bool: Indicates whether this group can be assigned to a Microsoft Entra role. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group cannot be a dynamic group (that is, groupTypes can't contain DynamicMembership). Only callers with at least the Privileged Role Administrator role can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Microsoft Entra role assignmentsUsing this feature requires a Microsoft Entra ID P1 license. +* **isManagementRestricted**: bool (ReadOnly): Indicates whether the group is a member of a restricted management administrative unit. Read-only. To manage a group member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. See [restricted management administrative units](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/admin-units-restricted-management). +* **mail**: string (ReadOnly): The SMTP address for the group, for example, 'serviceadmins@contoso.com'. Read-only. +* **mailEnabled**: bool (Required): Specifies whether the group is mail-enabled. Required. +* **mailNickname**: string (Required): The mail alias for the group, unique for Microsoft 365 groups in the organization. Maximum length is 64 characters. This property can contain only characters in the ASCII character set 0 - 127 except the following: @ () / [] ' ; : <> , SPACE. +* **members**: [MicrosoftGraphRelationship](#microsoftgraphrelationship): Direct group members, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. +* **membershipRule**: string: The rule that determines members for this group if the group is a dynamic group (groupTypes contains DynamicMembership). For more information about the syntax of the membership rule, see Membership Rules syntax. +* **membershipRuleProcessingState**: string: Indicates whether the dynamic membership processing is on or paused. Possible values are On or Paused. +* **onPremisesDomainName**: string (ReadOnly): Contains the on-premises domain FQDN, also called dnsDomainName synchronized from the on-premises directory. Read-only. +* **onPremisesLastSyncDateTime**: string (ReadOnly): Indicates the last time at which the group was synced with the on-premises directory.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +* **onPremisesNetBiosName**: string (ReadOnly): Contains the on-premises netBios name synchronized from the on-premises directory. Read-only. +* **onPremisesProvisioningErrors**: [MicrosoftGraphOnPremisesProvisioningError](#microsoftgraphonpremisesprovisioningerror)[] (ReadOnly): Errors when using Microsoft synchronization product during provisioning. +* **onPremisesSamAccountName**: string (ReadOnly): Contains the on-premises SAM account name synchronized from the on-premises directory. Read-only. +* **onPremisesSecurityIdentifier**: string (ReadOnly): Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Read-only. +* **onPremisesSyncEnabled**: bool (ReadOnly): true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Read-only. +* **organizationId**: string +* **owners**: [MicrosoftGraphRelationship](#microsoftgraphrelationship): The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. +* **preferredDataLocation**: string: The preferred data location for the Microsoft 365 group. By default, the group inherits the group creator's preferred data location. To set this property, the calling app must be granted the Directory.ReadWrite.All permission and the user be assigned at least one of the following Microsoft Entra roles: User Account Administrator Directory Writer Exchange Administrator SharePoint Administrator For more information about this property, see OneDrive Online Multi-Geo and Create a Microsoft 365 group with a specific PDL. Nullable. +* **preferredLanguage**: string: The preferred language for a Microsoft 365 group. Should follow ISO 639-1 Code; for example, en-US. +* **proxyAddresses**: string[] (ReadOnly): Email addresses for the group that direct to the same group mailbox. For example: ['SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com']. The any operator is required for filter expressions on multi-valued properties. Read-only. Not nullable. +* **renewedDateTime**: string (ReadOnly): Timestamp of when the group was last renewed. This cannot be modified directly and is only updated via the renew service action. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +* **resourceBehaviorOptions**: string[]: Specifies the group behaviors that can be set for a Microsoft 365 group during creation. This property can be set only as part of creation (POST). For the list of possible values, see Microsoft 365 group behaviors and provisioning options. +* **resourceProvisioningOptions**: string[]: Specifies the group resources that are associated with the Microsoft 365 group. The possible value is Team. For more information, see Microsoft 365 group behaviors and provisioning options. +* **securityEnabled**: bool (Required): Specifies whether the group is a security group. +* **securityIdentifier**: string (ReadOnly): Security identifier of the group, used in Windows scenarios. Read-only. +* **serviceProvisioningErrors**: [MicrosoftGraphServiceProvisioningError](#microsoftgraphserviceprovisioningerror)[] (ReadOnly): Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object. +* **theme**: string: Specifies a Microsoft 365 group's color theme. Possible values are Teal, Purple, Green, Blue, Pink, Orange or Red. +* **type**: 'Microsoft.Graph/groups' (ReadOnly, DeployTimeConstant): The resource type +* **uniqueName**: string (Required, DeployTimeConstant, Identifier): The unique identifier that can be assigned to a group and used as an alternate key. Immutable. +* **visibility**: string: Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value isn't specified during group creation on Microsoft Graph, a security group is created as Private by default, and Microsoft 365 group is Public. Groups assignable to roles are always Private. To learn more, see group visibility options. Nullable. +* **writebackConfiguration**: [MicrosoftGraphGroupWritebackConfiguration](#microsoftgraphgroupwritebackconfiguration): Specifies whether or not a group is configured to write back group object properties to on-premises Active Directory. These properties are used when group writeback is configured in the Microsoft Entra Connect sync client. + +## Resource Microsoft.Graph/oauth2PermissionGrants@beta +* **Valid Scope(s)**: Unknown +### Properties +* **apiVersion**: 'beta' (ReadOnly, DeployTimeConstant): The resource api version +* **clientId**: string (Required): The object id (not appId) of the client service principal for the application that is authorized to act on behalf of a signed-in user when accessing an API. Required. +* **consentType**: string (Required): Indicates whether authorization is granted for the client application to impersonate all users or only a specific user. AllPrincipals indicates authorization to impersonate all users. Principal indicates authorization to impersonate a specific user. Consent on behalf of all users can be granted by an administrator. Nonadmin users may be authorized to consent on behalf of themselves in some cases, for some delegated permissions. Required. +* **id**: string (ReadOnly): The unique identifier for an entity. Read-only. +* **principalId**: string: The id of the user on behalf of whom the client is authorized to access the resource, when consentType is Principal. If consentType is AllPrincipals this value is null. Required when consentType is Principal. +* **resourceId**: string (Required): The id of the resource service principal to which access is authorized. This identifies the API that the client is authorized to attempt to call on behalf of a signed-in user. +* **scope**: string: A space-separated list of the claim values for delegated permissions that should be included in access tokens for the resource application (the API). For example, openid User.Read GroupMember.Read.All. Each claim value should match the value field of one of the delegated permissions defined by the API, listed in the publishedPermissionScopes property of the resource service principal. Must not exceed 3850 characters in length. +* **type**: 'Microsoft.Graph/oauth2PermissionGrants' (ReadOnly, DeployTimeConstant): The resource type + +## Resource Microsoft.Graph/servicePrincipals@beta +* **Valid Scope(s)**: Unknown +### Properties +* **accountEnabled**: bool: true if the service principal account is enabled; otherwise, false. If set to false, then no users are able to sign in to this app, even if they're assigned to it. +* **addIns**: [MicrosoftGraphAddIn](#microsoftgraphaddin)[]: Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on. +* **alternativeNames**: string[]: Used to retrieve service principals by subscription, identify resource group and full resource IDs for managed identities. +* **apiVersion**: 'beta' (ReadOnly, DeployTimeConstant): The resource api version +* **appDescription**: string: The description exposed by the associated application. +* **appDisplayName**: string: The display name exposed by the associated application. Maximum length is 256 characters. +* **appId**: string (Required, Identifier): The unique identifier for the associated application (its appId property). Alternate key. +* **applicationTemplateId**: string (ReadOnly): Unique identifier of the applicationTemplate. Read-only. null if the app wasn't created from an application template. +* **appOwnerOrganizationId**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"} (ReadOnly): Contains the tenant ID where the application is registered. This is applicable only to service principals backed by applications. +* **appRoleAssignmentRequired**: bool: Specifies whether users or other service principals need to be granted an app role assignment for this service principal before users can sign in or apps can get tokens. The default value is false. Not nullable. +* **appRoles**: [MicrosoftGraphAppRole](#microsoftgraphapprole)[]: The roles exposed by the application, which this service principal represents. For more information, see the appRoles property definition on the application entity. Not nullable. +* **deletedDateTime**: string (ReadOnly): Date and time when this object was deleted. Always null when the object hasn't been deleted. +* **description**: string: Free text field to provide an internal end-user facing description of the service principal. End-user portals such MyApps displays the application description in this field. The maximum allowed size is 1,024 characters. +* **disabledByMicrosoftStatus**: string (ReadOnly): Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons may include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement). +* **displayName**: string: The display name for the service principal. +* **homepage**: string: Home page or landing page of the application. +* **id**: string (ReadOnly): The unique identifier for an entity. Read-only. +* **info**: [MicrosoftGraphInformationalUrl](#microsoftgraphinformationalurl): Basic profile information of the acquired application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps. +* **keyCredentials**: [MicrosoftGraphKeyCredential](#microsoftgraphkeycredential)[]: The collection of key credentials associated with the service principal. Not nullable. +* **loginUrl**: string: Specifies the URL where the service provider redirects the user to Microsoft Entra ID to authenticate. Microsoft Entra ID uses the URL to launch the application from Microsoft 365 or the Microsoft Entra My Apps. When blank, Microsoft Entra ID performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Microsoft Entra My Apps, or the Microsoft Entra SSO URL. +* **logoutUrl**: string: Specifies the URL that the Microsoft's authorization service uses to sign out a user using OpenId Connect front-channel, back-channel, or SAML sign out protocols. +* **notes**: string: Free text field to capture information about the service principal, typically used for operational purposes. Maximum allowed size is 1,024 characters. +* **notificationEmailAddresses**: string[]: Specifies the list of email addresses where Microsoft Entra ID sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Microsoft Entra Gallery applications. +* **owners**: [MicrosoftGraphRelationship](#microsoftgraphrelationship): Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. +* **passwordCredentials**: [MicrosoftGraphPasswordCredential](#microsoftgraphpasswordcredential)[]: The collection of password credentials associated with the service principal. Not nullable. +* **preferredSingleSignOnMode**: string: Specifies the single sign-on mode configured for this application. Microsoft Entra ID uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Microsoft Entra My Apps. The supported values are password, saml, notSupported, and oidc. Note: This field might be null for older SAML apps and for OIDC applications where it isn't set automatically. +* **preferredTokenSigningKeyEndDateTime**: string: Specifies the expiration date of the keyCredential used for token signing, marked by preferredTokenSigningKeyThumbprint. Updating this attribute isn't currently supported. For details, see ServicePrincipal property differences. +* **preferredTokenSigningKeyThumbprint**: string: This property can be used on SAML applications (apps that have preferredSingleSignOnMode set to saml) to control which certificate is used to sign the SAML responses. For applications that aren't SAML, don't write or otherwise rely on this property. +* **publishedPermissionScopes**: [MicrosoftGraphPermissionScope](#microsoftgraphpermissionscope)[]: The delegated permissions exposed by the application. For more information, see the oauth2PermissionScopes property on the application entity's api property. Not nullable. Note: This property is named oauth2PermissionScopes in v1.0. +* **publisherName**: string: The name of the Microsoft Entra tenant that published the application. +* **replyUrls**: string[]: The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application. Not nullable. +* **samlMetadataUrl**: string: The url where the service exposes SAML metadata for federation. +* **samlSingleSignOnSettings**: [MicrosoftGraphSamlSingleSignOnSettings](#microsoftgraphsamlsinglesignonsettings): The collection for settings related to saml single sign-on. +* **servicePrincipalNames**: string[]: Contains the list of identifiersUris, copied over from the associated application. More values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI that is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable. +* **servicePrincipalType**: string: Identifies if the service principal represents an application or a managed identity. This is set by Microsoft Entra ID internally. For a service principal that represents an application this is set as Application. For a service principal that represents a managed identity this is set as ManagedIdentity. The SocialIdp type is for internal use. +* **signInAudience**: string (ReadOnly): Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multitenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only. +* **tags**: string[]: Custom strings that can be used to categorize and identify the service principal. Not nullable. +* **tokenEncryptionKeyId**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"}: Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user. +* **type**: 'Microsoft.Graph/servicePrincipals' (ReadOnly, DeployTimeConstant): The resource type +* **verifiedPublisher**: [MicrosoftGraphVerifiedPublisher](#microsoftgraphverifiedpublisher): Specifies the verified publisher of the application that's linked to this service principal. + +## Resource Microsoft.Graph/users@beta (ReadOnly) +* **Valid Scope(s)**: Unknown +### Properties +* **apiVersion**: 'beta' (ReadOnly, DeployTimeConstant): The resource api version +* **businessPhones**: string[] (ReadOnly): The telephone numbers for the user. Only one number can be set for this property. Read-only for users synced from on-premises directory. +* **deletedDateTime**: string (ReadOnly): Date and time when this object was deleted. Always null when the object hasn't been deleted. +* **displayName**: string (ReadOnly): The name displayed in the address book for the user. This value is usually the combination of the user's first name, middle initial, and last name. This property is required when a user is created, and it cannot be cleared during updates. Maximum length is 256 characters. +* **givenName**: string (ReadOnly): The given name (first name) of the user. Maximum length is 64 characters. +* **id**: string (ReadOnly): The unique identifier for an entity. Read-only. +* **jobTitle**: string (ReadOnly): The user's job title. Maximum length is 128 characters. +* **mail**: string (ReadOnly): The SMTP address for the user, for example, admin@contoso.com. Changes to this property also update the user's proxyAddresses collection to include the value as an SMTP address. This property can't contain accent characters. NOTE: We don't recommend updating this property for Azure AD B2C user profiles. Use the otherMails property instead. +* **mobilePhone**: string (ReadOnly): The primary cellular telephone number for the user. Read-only for users synced from the on-premises directory. +* **officeLocation**: string (ReadOnly): The office location in the user's place of business. Maximum length is 128 characters. +* **preferredLanguage**: string (ReadOnly): The preferred language for the user. The preferred language format is based on RFC 4646. The name combines an ISO 639 two-letter lowercase culture code associated with the language and an ISO 3166 two-letter uppercase subculture code associated with the country or region. Example: 'en-US', or 'es-ES'. +* **surname**: string (ReadOnly): The user's surname (family name or last name). Maximum length is 64 characters. +* **type**: 'Microsoft.Graph/users' (ReadOnly, DeployTimeConstant): The resource type +* **userPrincipalName**: string (Required, DeployTimeConstant, Identifier): The user principal name (UPN) of the user. The UPN is an Internet-style sign-in name for the user based on the Internet standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where the domain must be present in the tenant's verified domain collection. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization.NOTE: This property can't contain accent characters. Only the following characters are allowed A - Z, a - z, 0 - 9, '. - _ ! # ^ ~. For the complete list of allowed characters, see username policies. + +## MicrosoftGraphAddIn +### Properties +* **id**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"}: The unique identifier for the addIn object. +* **properties**: [MicrosoftGraphKeyValue](#microsoftgraphkeyvalue)[]: The collection of key-value pairs that define parameters that the consuming service can use or call. You must specify this property when performing a POST or a PATCH operation on the addIns collection. Required. +* **type**: string: The unique name for the functionality exposed by the app. + +## MicrosoftGraphApiApplication +### Properties +* **acceptMappedClaims**: bool: When true, allows an application to use claims mapping without specifying a custom signing key. +* **knownClientApplications**: (string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"})[]: Used for bundling consent if you have a solution that contains two parts: a client app and a custom web API app. If you set the appID of the client app to this value, the user only consents once to the client app. Microsoft Entra ID knows that consenting to the client means implicitly consenting to the web API and automatically provisions service principals for both APIs at the same time. Both the client and the web API app must be registered in the same tenant. +* **oauth2PermissionScopes**: [MicrosoftGraphPermissionScope](#microsoftgraphpermissionscope)[]: The definition of the delegated permissions exposed by the web API represented by this application registration. These delegated permissions may be requested by a client application, and may be granted by users or administrators during consent. Delegated permissions are sometimes referred to as OAuth 2.0 scopes. +* **preAuthorizedApplications**: [MicrosoftGraphPreAuthorizedApplication](#microsoftgraphpreauthorizedapplication)[]: Lists the client applications that are preauthorized with the specified delegated permissions to access this application's APIs. Users aren't required to consent to any preauthorized application (for the permissions specified). However, any other permissions not listed in preAuthorizedApplications (requested through incremental consent for example) will require user consent. +* **requestedAccessTokenVersion**: int: Specifies the access token version expected by this resource. This changes the version and format of the JWT produced independent of the endpoint or client used to request the access token. The endpoint used, v1.0 or v2.0, is chosen by the client and only impacts the version of id_tokens. Resources need to explicitly configure requestedAccessTokenVersion to indicate the supported access token format. Possible values for requestedAccessTokenVersion are 1, 2, or null. If the value is null, this defaults to 1, which corresponds to the v1.0 endpoint. If signInAudience on the application is configured as AzureADandPersonalMicrosoftAccount or PersonalMicrosoftAccount, the value for this property must be 2. + +## MicrosoftGraphAppRole +### Properties +* **allowedMemberTypes**: string[]: Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment to other applications' service principals are also known as application permissions. The 'Application' value is only supported for app roles defined on application entities. +* **description**: string: The description for the app role. This is displayed when the app role is being assigned and, if the app role functions as an application permission, during consent experiences. +* **displayName**: string: Display name for the permission that appears in the app role assignment and consent experiences. +* **id**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"}: Unique role identifier inside the appRoles collection. You must specify a new GUID identifier when you create a new app role. +* **isEnabled**: bool: When you create or updating an app role, this value must be true. To delete a role, this must first be set to false. At that point, in a subsequent call, this role might be removed. Default value is true. +* **origin**: string (ReadOnly): Specifies if the app role is defined on the application object or on the servicePrincipal entity. Must not be included in any POST or PATCH requests. Read-only. +* **value**: string: Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , -. / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z, and a-z. Any other character, including the space character, aren't allowed. May not begin with .. + +## MicrosoftGraphAuthenticationBehaviors +### Properties +* **blockAzureADGraphAccess**: bool: If false, allows the app to have extended access to Azure AD Graph until June 30, 2025 when Azure AD Graph is fully retired. For more information on Azure AD retirement updates, see June 2024 update on Azure AD Graph API retirement. +* **removeUnverifiedEmailClaim**: bool: If true, removes the email claim from tokens sent to an application when the email address's domain can't be verified. +* **requireClientServicePrincipal**: bool: If true, requires multitenant applications to have a service principal in the resource tenant as part of authorization checks before they're granted access tokens. This property is only modifiable for multitenant resource applications that rely on access from clients without a service principal and had this behavior as set to false by Microsoft. Tenant administrators should respond to security advisories sent through Azure Health Service events and the Microsoft 365 message center. + +## MicrosoftGraphCertification +### Properties +* **certificationDetailsUrl**: string: URL that shows certification details for the application. +* **certificationExpirationDateTime**: string: The timestamp when the current certification for the application expires. +* **isCertifiedByMicrosoft**: bool: Indicates whether the application is certified by Microsoft. +* **isPublisherAttested**: bool: Indicates whether the application developer or publisher completed Publisher Attestation. +* **lastCertificationDateTime**: string: The timestamp when the certification for the application was most recently added or updated. + +## MicrosoftGraphFederatedIdentityExpression +### Properties +* **languageVersion**: int: Indicated the language version to be used. Should always be set to 1. Required. +* **value**: string: Indicates the configured expression. Required. + +## MicrosoftGraphGroupWritebackConfiguration +### Properties +* **isEnabled**: bool: Indicates whether writeback of cloud groups to on-premise Active Directory is enabled. Default value is true for Microsoft 365 groups and false for security groups. +* **onPremisesGroupType**: string: Indicates the target on-premises group type the cloud object is written back as. Nullable. The possible values are: universalDistributionGroup, universalSecurityGroup, universalMailEnabledSecurityGroup.If the cloud group is a unified (Microsoft 365) group, this property can be one of the following: universalDistributionGroup, universalSecurityGroup, universalMailEnabledSecurityGroup. Microsoft Entra security groups can be written back as universalSecurityGroup. If isEnabled or the NewUnifiedGroupWritebackDefault group setting is true but this property isn't explicitly configured: Microsoft 365 groups are written back as universalDistributionGroup by defaultSecurity groups are written back as universalSecurityGroup by default. + +## MicrosoftGraphImplicitGrantSettings +### Properties +* **enableAccessTokenIssuance**: bool: Specifies whether this web application can request an access token using the OAuth 2.0 implicit flow. +* **enableIdTokenIssuance**: bool: Specifies whether this web application can request an ID token using the OAuth 2.0 implicit flow. + +## MicrosoftGraphInformationalUrl +### Properties +* **logoUrl**: string (ReadOnly): CDN URL to the application's logo, Read-only. +* **marketingUrl**: string: Link to the application's marketing page. For example, https://www.contoso.com/app/marketing. +* **privacyStatementUrl**: string: Link to the application's privacy statement. For example, https://www.contoso.com/app/privacy. +* **supportUrl**: string: Link to the application's support page. For example, https://www.contoso.com/app/support. +* **termsOfServiceUrl**: string: Link to the application's terms of service statement. For example, https://www.contoso.com/app/termsofservice. + +## MicrosoftGraphKeyCredential +### Properties +* **customKeyIdentifier**: string: A 40-character binary type that can be used to identify the credential. Optional. When not provided in the payload, defaults to the thumbprint of the certificate. +* **displayName**: string: The friendly name for the key, with a maximum length of 90 characters. Longer values are accepted but shortened. Optional. +* **endDateTime**: string: The date and time at which the credential expires. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. +* **key**: string: Value for the key credential. Should be a Base64 encoded value. From a .cer certificate, you can read the key using the Convert.ToBase64String() method. For more information, see Get the certificate key. +* **keyId**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"}: The unique identifier for the key. +* **startDateTime**: string: The date and time at which the credential becomes valid.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. +* **type**: string: The type of key credential; for example, Symmetric, AsymmetricX509Cert, or X509CertAndPassword. +* **usage**: string: A string that describes the purpose for which the key can be used; for example, None​, Verify​, PairwiseIdentifier​, Delegation​, Decrypt​, Encrypt​, HashedIdentifier​, SelfSignedTls, or Sign. If usage is Sign​, the type should be X509CertAndPassword​, and the passwordCredentials​ for signing should be defined. + +## MicrosoftGraphKeyValue +### Properties +* **key**: string: Key. +* **value**: string: Value. + +## MicrosoftGraphOnPremisesProvisioningError +### Properties +* **category**: string: Category of the provisioning error. Note: Currently, there is only one possible value. Possible value: PropertyConflict - indicates a property value is not unique. Other objects contain the same value for the property. +* **occurredDateTime**: string: The date and time at which the error occurred. +* **propertyCausingError**: string: Name of the directory property causing the error. Current possible values: UserPrincipalName or ProxyAddress. +* **value**: string: Value of the property causing the error. + +## MicrosoftGraphOptionalClaim +### Properties +* **additionalProperties**: string[]: Additional properties of the claim. If a property exists in this collection, it modifies the behavior of the optional claim specified in the name property. +* **essential**: bool: If the value is true, the claim specified by the client is necessary to ensure a smooth authorization experience for the specific task requested by the end user. The default value is false. +* **name**: string: The name of the optional claim. +* **source**: string: The source (directory object) of the claim. There are predefined claims and user-defined claims from extension properties. If the source value is null, the claim is a predefined optional claim. If the source value is user, the value in the name property is the extension property from the user object. + +## MicrosoftGraphOptionalClaims +### Properties +* **accessToken**: [MicrosoftGraphOptionalClaim](#microsoftgraphoptionalclaim)[]: The optional claims returned in the JWT access token. +* **idToken**: [MicrosoftGraphOptionalClaim](#microsoftgraphoptionalclaim)[]: The optional claims returned in the JWT ID token. +* **saml2Token**: [MicrosoftGraphOptionalClaim](#microsoftgraphoptionalclaim)[]: The optional claims returned in the SAML token. + +## MicrosoftGraphParentalControlSettings +### Properties +* **countriesBlockedForMinors**: string[]: Specifies the two-letter ISO country codes. Access to the application will be blocked for minors from the countries specified in this list. +* **legalAgeGroupRule**: string: Specifies the legal age group rule that applies to users of the app. Can be set to one of the following values: ValueDescriptionAllowDefault. Enforces the legal minimum. This means parental consent is required for minors in the European Union and Korea.RequireConsentForPrivacyServicesEnforces the user to specify date of birth to comply with COPPA rules. RequireConsentForMinorsRequires parental consent for ages below 18, regardless of country/region minor rules.RequireConsentForKidsRequires parental consent for ages below 14, regardless of country/region minor rules.BlockMinorsBlocks minors from using the app. + +## MicrosoftGraphPasswordCredential +### Properties +* **displayName**: string: Friendly name for the password. Optional. +* **endDateTime**: string: The date and time at which the password expires represented using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional. +* **hint**: string (ReadOnly): Contains the first three characters of the password. Read-only. +* **keyId**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"}: The unique identifier for the password. +* **secretText**: string (ReadOnly): Read-only; Contains the strong passwords generated by Microsoft Entra ID that are 16-64 characters in length. The generated password value is only returned during the initial POST request to addPassword. There is no way to retrieve this password in the future. +* **startDateTime**: string: The date and time at which the password becomes valid. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional. + +## MicrosoftGraphPermissionScope +### Properties +* **adminConsentDescription**: string: A description of the delegated permissions, intended to be read by an administrator granting the permission on behalf of all users. This text appears in tenant-wide admin consent experiences. +* **adminConsentDisplayName**: string: The permission's title, intended to be read by an administrator granting the permission on behalf of all users. +* **id**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"}: Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application. +* **isEnabled**: bool: When you create or update a permission, this property must be set to true (which is the default). To delete a permission, this property must first be set to false. At that point, in a subsequent call, the permission may be removed. +* **type**: string: The possible values are: User and Admin. Specifies whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator consent should always be required. While Microsoft Graph defines the default consent requirement for each permission, the tenant administrator may override the behavior in their organization (by allowing, restricting, or limiting user consent to this delegated permission). For more information, see Configure how users consent to applications. +* **userConsentDescription**: string: A description of the delegated permissions, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves. +* **userConsentDisplayName**: string: A title for the permission, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves. +* **value**: string: Specifies the value to include in the scp (scope) claim in access tokens. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , -. / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with .. + +## MicrosoftGraphPreAuthorizedApplication +### Properties +* **appId**: string: The unique identifier for the client application. +* **permissionIds**: string[]: The unique identifier for the scopes the client application is granted. + +## MicrosoftGraphPublicClientApplication +### Properties +* **redirectUris**: string[]: Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. For iOS and macOS apps, specify the value following the syntax msauth.{BUNDLEID}://auth, replacing '{BUNDLEID}'. For example, if the bundle ID is com.microsoft.identitysample.MSALiOS, the URI is msauth.com.microsoft.identitysample.MSALiOS://auth. + +## MicrosoftGraphRedirectUriSettings +### Properties +* **index**: int: Identifies the specific URI within the redirectURIs collection in SAML SSO flows. Defaults to null. The index is unique across all the redirectUris for the application. +* **uri**: string: Specifies the URI that tokens are sent to. + +## MicrosoftGraphRelationship +### Properties +* **relationships**: string[] (Required): The list of object ids to be included in the relationship. +* **relationshipSemantics**: 'append' | 'replace' | string: Specifies the semantics used by the Microsoft Graph Bicep extension to process the relationships. The 'append' semantics means that the relationship items in the template are added to the existing list. The 'replace' semantics means that the relationship items in the template will replace all existing items in the Entra resource. The default value (if not set) is 'append' + +## MicrosoftGraphRequestSignatureVerification +### Properties +* **allowedWeakAlgorithms**: 'rsaSha1' | string: Specifies whether this application accepts weak algorithms. The possible values are: rsaSha1, unknownFutureValue. +* **isSignedRequestRequired**: bool: Specifies whether signed authentication requests for this application should be required. + +## MicrosoftGraphRequiredResourceAccess +### Properties +* **resourceAccess**: [MicrosoftGraphResourceAccess](#microsoftgraphresourceaccess)[]: The list of OAuth2.0 permission scopes and app roles that the application requires from the specified resource. +* **resourceAppId**: string: The unique identifier for the resource that the application requires access to. This should be equal to the appId declared on the target resource application. + +## MicrosoftGraphResourceAccess +### Properties +* **id**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"}: The unique identifier of an app role or delegated permission exposed by the resource application. For delegated permissions, this should match the id property of one of the delegated permissions in the oauth2PermissionScopes collection of the resource application's service principal. For app roles (application permissions), this should match the id property of an app role in the appRoles collection of the resource application's service principal. +* **type**: string: Specifies whether the id property references a delegated permission or an app role (application permission). The possible values are: Scope (for delegated permissions) or Role (for app roles). + +## MicrosoftGraphSamlSingleSignOnSettings +### Properties +* **relayState**: string: The relative URI the service provider would redirect to after completion of the single sign-on flow. + +## MicrosoftGraphServicePrincipalLockConfiguration +### Properties +* **allProperties**: bool: Enables locking all sensitive properties. The sensitive properties are keyCredentials, passwordCredentials, and tokenEncryptionKeyId. +* **credentialsWithUsageSign**: bool: Locks the keyCredentials and passwordCredentials properties for modification where credential usage type is Sign. +* **credentialsWithUsageVerify**: bool: Locks the keyCredentials and passwordCredentials properties for modification where credential usage type is Verify. This locks OAuth service principals. +* **isEnabled**: bool: Enables or disables service principal lock configuration. To allow the sensitive properties to be updated, update this property to false to disable the lock on the service principal. +* **tokenEncryptionKeyId**: bool: Locks the tokenEncryptionKeyId property for modification on the service principal. + +## MicrosoftGraphServiceProvisioningError +### Properties +* **createdDateTime**: string: The date and time at which the error occurred. +* **isResolved**: bool: Indicates whether the Error has been attended to. +* **serviceInstance**: string: Qualified service instance (for example, 'SharePoint/Dublin') that published the service error information. + +## MicrosoftGraphSpaApplication +### Properties +* **redirectUris**: string[]: Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. + +## MicrosoftGraphVerifiedPublisher +### Properties +* **addedDateTime**: string: The timestamp when the verified publisher was first added or most recently updated. +* **displayName**: string: The verified publisher name from the app publisher's Microsoft Partner Network (MPN) account. +* **verifiedPublisherId**: string: The ID of the verified publisher from the app publisher's Partner Center account. + +## MicrosoftGraphWebApplication +### Properties +* **homePageUrl**: string: Home page or landing page of the application. +* **implicitGrantSettings**: [MicrosoftGraphImplicitGrantSettings](#microsoftgraphimplicitgrantsettings): Specifies whether this web application can request tokens using the OAuth 2.0 implicit flow. +* **logoutUrl**: string: Specifies the URL that will be used by Microsoft's authorization service to logout a user using front-channel, back-channel or SAML logout protocols. +* **oauth2AllowImplicitFlow**: bool +* **redirectUris**: string[]: Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. +* **redirectUriSettings**: [MicrosoftGraphRedirectUriSettings](#microsoftgraphredirecturisettings)[]: Specifies the index of the URLs where user tokens are sent for sign-in. This is only valid for applications using SAML. + +## MicrosoftGraphWindowsApplication +### Properties +* **packageSid**: string (ReadOnly): The package security identifier that Microsoft has assigned the application. Optional. Read-only. +* **redirectUris**: string[]: Specifies the URLs where user tokens are sent for sign-in or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. Only available for applications that support the PersonalMicrosoftAccount signInAudience. + diff --git a/generated/microsoftgraph/microsoft.graph/v1.0/1.0.1/index.json b/generated/microsoftgraph/microsoft.graph/v1.0/1.0.1/index.json new file mode 100644 index 0000000..a8d074e --- /dev/null +++ b/generated/microsoftgraph/microsoft.graph/v1.0/1.0.1/index.json @@ -0,0 +1,34 @@ +{ + "resources": { + "Microsoft.Graph/groups@v1.0": { + "$ref": "types.json#/16" + }, + "Microsoft.Graph/applications@v1.0": { + "$ref": "types.json#/74" + }, + "Microsoft.Graph/servicePrincipals@v1.0": { + "$ref": "types.json#/92" + }, + "Microsoft.Graph/applications/federatedIdentityCredentials@v1.0": { + "$ref": "types.json#/97" + }, + "Microsoft.Graph/oauth2PermissionGrants@v1.0": { + "$ref": "types.json#/101" + }, + "Microsoft.Graph/appRoleAssignedTo@v1.0": { + "$ref": "types.json#/105" + }, + "Microsoft.Graph/users@v1.0": { + "$ref": "types.json#/110" + } + }, + "resourceFunctions": {}, + "settings": { + "name": "MicrosoftGraph", + "version": "1.0.1", + "isSingleton": false, + "configurationType": { + "$ref": "types.json#/111" + } + } +} \ No newline at end of file diff --git a/generated/microsoftgraph/microsoft.graph/v1.0/1.0.1/index.md b/generated/microsoftgraph/microsoft.graph/v1.0/1.0.1/index.md new file mode 100644 index 0000000..37eed21 --- /dev/null +++ b/generated/microsoftgraph/microsoft.graph/v1.0/1.0.1/index.md @@ -0,0 +1,23 @@ +# Bicep Types +## microsoft.graph +### microsoft.graph/applications +* **Link**: [v1.0](types.md#resource-microsoftgraphapplicationsv10) + +### microsoft.graph/applications/federatedidentitycredentials +* **Link**: [v1.0](types.md#resource-microsoftgraphapplicationsfederatedidentitycredentialsv10) + +### microsoft.graph/approleassignedto +* **Link**: [v1.0](types.md#resource-microsoftgraphapproleassignedtov10) + +### microsoft.graph/groups +* **Link**: [v1.0](types.md#resource-microsoftgraphgroupsv10) + +### microsoft.graph/oauth2permissiongrants +* **Link**: [v1.0](types.md#resource-microsoftgraphoauth2permissiongrantsv10) + +### microsoft.graph/serviceprincipals +* **Link**: [v1.0](types.md#resource-microsoftgraphserviceprincipalsv10) + +### microsoft.graph/users +* **Link**: [v1.0](types.md#resource-microsoftgraphusersv10) + diff --git a/generated/microsoftgraph/microsoft.graph/v1.0/1.0.1/types.json b/generated/microsoftgraph/microsoft.graph/v1.0/1.0.1/types.json new file mode 100644 index 0000000..d837ab2 --- /dev/null +++ b/generated/microsoftgraph/microsoft.graph/v1.0/1.0.1/types.json @@ -0,0 +1,2499 @@ +[ + { + "$type": "StringType" + }, + { + "$type": "StringLiteralType", + "value": "Microsoft.Graph/groups" + }, + { + "$type": "StringLiteralType", + "value": "v1.0" + }, + { + "$type": "ObjectType", + "name": "Microsoft.Graph/groups", + "properties": { + "type": { + "type": { + "$ref": "#/1" + }, + "flags": 10, + "description": "The resource type" + }, + "apiVersion": { + "type": { + "$ref": "#/2" + }, + "flags": 10, + "description": "The resource api version" + }, + "classification": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Describes a classification for the group (such as low, medium, or high business impact)." + }, + "createdDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Timestamp of when the group was created. The value can't be modified and is automatically populated when the group is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Read-only." + }, + "description": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "An optional description for the group." + }, + "displayName": { + "type": { + "$ref": "#/0" + }, + "flags": 1, + "description": "The display name for the group. This property is required when a group is created and can't be cleared during updates. Maximum length is 256 characters." + }, + "expirationDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Timestamp of when the group is set to expire. It's null for security groups, but for Microsoft 365 groups, it represents when the group is set to expire as defined in the groupLifecyclePolicy. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Read-only." + }, + "groupTypes": { + "type": { + "$ref": "#/4" + }, + "flags": 0, + "description": "Specifies the group type and its membership. If the collection contains Unified, the group is a Microsoft 365 group; otherwise, it's either a security group or a distribution group. For details, see groups overview.If the collection includes DynamicMembership, the group has dynamic membership; otherwise, membership is static." + }, + "isAssignableToRole": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "Indicates whether this group can be assigned to a Microsoft Entra role. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group can't be a dynamic group (that is, groupTypes can't contain DynamicMembership). Only callers with at least the Privileged Role Administrator role can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Microsoft Entra role assignmentsUsing this feature requires a Microsoft Entra ID P1 license." + }, + "isManagementRestricted": { + "type": { + "$ref": "#/5" + }, + "flags": 2, + "description": "Indicates whether the group is a member of a restricted management administrative unit. Read-only. To manage a group member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. See [restricted management administrative units](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/admin-units-restricted-management)." + }, + "mail": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The SMTP address for the group, for example, 'serviceadmins@contoso.com'. Read-only." + }, + "mailEnabled": { + "type": { + "$ref": "#/5" + }, + "flags": 1, + "description": "Specifies whether the group is mail-enabled. Required." + }, + "mailNickname": { + "type": { + "$ref": "#/0" + }, + "flags": 1, + "description": "The mail alias for the group, unique for Microsoft 365 groups in the organization. Maximum length is 64 characters. This property can contain only characters in the ASCII character set 0 - 127 except the following characters: @ () / [] ' ; : <> , SPACE. Required." + }, + "membershipRule": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The rule that determines members for this group if the group is a dynamic group (groupTypes contains DynamicMembership). For more information about the syntax of the membership rule, see Membership Rules syntax." + }, + "membershipRuleProcessingState": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Indicates whether the dynamic membership processing is on or paused. Possible values are On or Paused." + }, + "onPremisesDomainName": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Contains the on-premises domain FQDN, also called dnsDomainName synchronized from the on-premises directory. Read-only." + }, + "onPremisesLastSyncDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Indicates the last time at which the group was synced with the on-premises directory. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Read-only." + }, + "onPremisesNetBiosName": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Contains the on-premises netBios name synchronized from the on-premises directory. Read-only." + }, + "onPremisesProvisioningErrors": { + "type": { + "$ref": "#/7" + }, + "flags": 2, + "description": "Errors when using Microsoft synchronization product during provisioning." + }, + "onPremisesSamAccountName": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Contains the on-premises SAM account name synchronized from the on-premises directory. Read-only." + }, + "onPremisesSecurityIdentifier": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Read-only." + }, + "onPremisesSyncEnabled": { + "type": { + "$ref": "#/5" + }, + "flags": 2, + "description": "true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Read-only." + }, + "preferredDataLocation": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The preferred data location for the Microsoft 365 group. By default, the group inherits the group creator's preferred data location. To set this property, the calling app must be granted the Directory.ReadWrite.All permission and the user be assigned at least one of the following Microsoft Entra roles: User Account Administrator Directory Writer Exchange Administrator SharePoint Administrator For more information about this property, see OneDrive Online Multi-Geo. Nullable." + }, + "preferredLanguage": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The preferred language for a Microsoft 365 group. Should follow ISO 639-1 Code; for example, en-US." + }, + "proxyAddresses": { + "type": { + "$ref": "#/8" + }, + "flags": 2, + "description": "Email addresses for the group that direct to the same group mailbox. For example: ['SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com']. The any operator is required to filter expressions on multi-valued properties. Read-only. Not nullable." + }, + "renewedDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Timestamp of when the group was last renewed. This value can't be modified directly and is only updated via the renew service action. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Read-only." + }, + "securityEnabled": { + "type": { + "$ref": "#/5" + }, + "flags": 1, + "description": "Specifies whether the group is a security group. Required." + }, + "securityIdentifier": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Security identifier of the group, used in Windows scenarios. Read-only." + }, + "serviceProvisioningErrors": { + "type": { + "$ref": "#/10" + }, + "flags": 2, + "description": "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object." + }, + "theme": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies a Microsoft 365 group's color theme. Possible values are Teal, Purple, Green, Blue, Pink, Orange, or Red." + }, + "uniqueName": { + "type": { + "$ref": "#/0" + }, + "flags": 25, + "description": "The unique identifier that can be assigned to a group and used as an alternate key. Immutable." + }, + "visibility": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value isn't specified during group creation on Microsoft Graph, a security group is created as Private by default, and the Microsoft 365 group is Public. Groups assignable to roles are always Private. To learn more, see group visibility options. Nullable." + }, + "members": { + "type": { + "$ref": "#/11" + }, + "flags": 0, + "description": "The members of this group, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable." + }, + "owners": { + "type": { + "$ref": "#/11" + }, + "flags": 0, + "description": "The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue." + }, + "deletedDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Date and time when this object was deleted. Always null when the object hasn't been deleted." + }, + "id": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The unique identifier for an entity. Read-only." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "BooleanType" + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphOnPremisesProvisioningError", + "properties": { + "category": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Category of the provisioning error. Note: Currently, there is only one possible value. Possible value: PropertyConflict - indicates a property value is not unique. Other objects contain the same value for the property." + }, + "occurredDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The date and time at which the error occurred." + }, + "propertyCausingError": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Name of the directory property causing the error. Current possible values: UserPrincipalName or ProxyAddress." + }, + "value": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Value of the property causing the error." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/6" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphServiceProvisioningError", + "properties": { + "createdDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The date and time at which the error occurred." + }, + "isResolved": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "Indicates whether the error has been attended to." + }, + "serviceInstance": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Qualified service instance (for example, 'SharePoint/Dublin') that published the service error information." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/9" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphRelationship", + "properties": { + "relationshipSemantics": { + "type": { + "$ref": "#/14" + }, + "flags": 0, + "description": "Specifies the semantics used by the Microsoft Graph Bicep extension to process the relationships. The 'append' semantics means that the relationship items in the template are added to the existing list. The 'replace' semantics means that the relationship items in the template will replace all existing items in the Entra resource. The default value (if not set) is 'append'" + }, + "relationships": { + "type": { + "$ref": "#/15" + }, + "flags": 1, + "description": "The list of object ids to be included in the relationship." + } + } + }, + { + "$type": "StringLiteralType", + "value": "append" + }, + { + "$type": "StringLiteralType", + "value": "replace" + }, + { + "$type": "UnionType", + "elements": [ + { + "$ref": "#/12" + }, + { + "$ref": "#/13" + }, + { + "$ref": "#/0" + } + ] + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ResourceType", + "name": "Microsoft.Graph/groups@v1.0", + "scopeType": 0, + "body": { + "$ref": "#/3" + }, + "flags": 0 + }, + { + "$type": "StringLiteralType", + "value": "Microsoft.Graph/applications" + }, + { + "$type": "StringLiteralType", + "value": "v1.0" + }, + { + "$type": "ObjectType", + "name": "Microsoft.Graph/applications", + "properties": { + "type": { + "type": { + "$ref": "#/17" + }, + "flags": 10, + "description": "The resource type" + }, + "apiVersion": { + "type": { + "$ref": "#/18" + }, + "flags": 10, + "description": "The resource api version" + }, + "addIns": { + "type": { + "$ref": "#/24" + }, + "flags": 0, + "description": "Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams can set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on." + }, + "api": { + "type": { + "$ref": "#/25" + }, + "flags": 0, + "description": "Specifies settings for an application that implements a web API." + }, + "appId": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The unique identifier for the application that is assigned to an application by Microsoft Entra ID. Not nullable. Read-only. Alternate key." + }, + "applicationTemplateId": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Unique identifier of the applicationTemplate. Read-only. null if the app wasn't created from an application template." + }, + "appRoles": { + "type": { + "$ref": "#/35" + }, + "flags": 0, + "description": "The collection of roles defined for the application. With app role assignments, these roles can be assigned to users, groups, or service principals associated with other applications. Not nullable." + }, + "authenticationBehaviors": { + "type": { + "$ref": "#/36" + }, + "flags": 0 + }, + "certification": { + "type": { + "$ref": "#/37" + }, + "flags": 2, + "description": "Specifies the certification status of the application." + }, + "createdDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The date and time the application was registered. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only." + }, + "defaultRedirectUri": { + "type": { + "$ref": "#/0" + }, + "flags": 0 + }, + "description": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Free text field to provide a description of the application object to end users. The maximum allowed size is 1,024 characters." + }, + "disabledByMicrosoftStatus": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement)." + }, + "displayName": { + "type": { + "$ref": "#/0" + }, + "flags": 1, + "description": "The display name for the application. Maximum length is 256 characters." + }, + "groupMembershipClaims": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following valid string values: None, SecurityGroup (for security groups and Microsoft Entra roles), All (this gets all of the security groups, distribution groups, and Microsoft Entra directory roles that the signed-in user is a member of)." + }, + "identifierUris": { + "type": { + "$ref": "#/38" + }, + "flags": 0, + "description": "Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you reference in your API's code, and it must be globally unique across Microsoft Entra ID. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable." + }, + "info": { + "type": { + "$ref": "#/39" + }, + "flags": 0, + "description": "Basic profile information of the application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps." + }, + "isDeviceOnlyAuthSupported": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "Specifies whether this application supports device authentication without a user. The default is false." + }, + "isFallbackPublicClient": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false, which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID can't determine the client application type. For example, the ROPC flow where it's configured without specifying a redirect URI. In those cases, Microsoft Entra ID interprets the application type based on the value of this property." + }, + "keyCredentials": { + "type": { + "$ref": "#/41" + }, + "flags": 0, + "description": "The collection of key credentials associated with the application. Not nullable." + }, + "nativeAuthenticationApisEnabled": { + "type": { + "$ref": "#/44" + }, + "flags": 0, + "description": "Specifies whether the Native Authentication APIs are enabled for the application. The possible values are: none and all. Default is none. For more information, see Native Authentication." + }, + "notes": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Notes relevant for the management of the application." + }, + "optionalClaims": { + "type": { + "$ref": "#/45" + }, + "flags": 0, + "description": "Application developers can configure optional claims in their Microsoft Entra applications to specify the claims that are sent to their application by the Microsoft security token service. For more information, see How to: Provide optional claims to your app." + }, + "parentalControlSettings": { + "type": { + "$ref": "#/51" + }, + "flags": 0, + "description": "Specifies parental control settings for an application." + }, + "passwordCredentials": { + "type": { + "$ref": "#/54" + }, + "flags": 0, + "description": "The collection of password credentials associated with the application. Not nullable." + }, + "publicClient": { + "type": { + "$ref": "#/55" + }, + "flags": 0, + "description": "Specifies settings for installed clients such as desktop or mobile devices." + }, + "publisherDomain": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The verified publisher domain for the application. Read-only. For more information, see How to: Configure an application's publisher domain." + }, + "requestSignatureVerification": { + "type": { + "$ref": "#/57" + }, + "flags": 0, + "description": "Specifies whether this application requires Microsoft Entra ID to verify the signed authentication requests." + }, + "requiredResourceAccess": { + "type": { + "$ref": "#/63" + }, + "flags": 0, + "description": "Specifies the resources that the application needs to access. This property also specifies the set of delegated permissions and application roles that it needs for each of those resources. This configuration of access to the required resources drives the consent experience. No more than 50 resource services (APIs) can be configured. Beginning mid-October 2021, the total number of required permissions must not exceed 400. For more information, see Limits on requested permissions per app. Not nullable." + }, + "samlMetadataUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The URL where the service exposes SAML metadata for federation. This property is valid only for single-tenant applications. Nullable." + }, + "serviceManagementReference": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "References application or service contact information from a Service or Asset Management database. Nullable." + }, + "servicePrincipalLockConfiguration": { + "type": { + "$ref": "#/64" + }, + "flags": 0, + "description": "Specifies whether sensitive properties of a multitenant application should be locked for editing after the application is provisioned in a tenant. Nullable. null by default." + }, + "signInAudience": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the Microsoft accounts that are supported for the current application. The possible values are: AzureADMyOrg (default), AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount, and PersonalMicrosoftAccount. See more in the table. The value of this object also limits the number of permissions an app can request. For more information, see Limits on requested permissions per app. The value for this property has implications on other app object properties. As a result, if you change this property, you might need to change other properties first." + }, + "spa": { + "type": { + "$ref": "#/65" + }, + "flags": 0, + "description": "Specifies settings for a single-page application, including sign out URLs and redirect URIs for authorization codes and access tokens." + }, + "tags": { + "type": { + "$ref": "#/67" + }, + "flags": 0, + "description": "Custom strings that can be used to categorize and identify the application. Not nullable." + }, + "tokenEncryptionKeyId": { + "type": { + "$ref": "#/21" + }, + "flags": 0, + "description": "Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID encrypts all the tokens it emits by using the key this property points to. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user." + }, + "uniqueName": { + "type": { + "$ref": "#/0" + }, + "flags": 25, + "description": "The unique identifier that can be assigned to an application and used as an alternate key. Immutable." + }, + "verifiedPublisher": { + "type": { + "$ref": "#/68" + }, + "flags": 2, + "description": "Specifies the verified publisher of the application. For more information about how publisher verification helps support application security, trustworthiness, and compliance, see Publisher verification." + }, + "web": { + "type": { + "$ref": "#/69" + }, + "flags": 0, + "description": "Specifies settings for a web application." + }, + "owners": { + "type": { + "$ref": "#/11" + }, + "flags": 0, + "description": "Directory objects that are owners of this application. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object." + }, + "deletedDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Date and time when this object was deleted. Always null when the object hasn't been deleted." + }, + "id": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The unique identifier for an entity. Read-only." + }, + "logo": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The main logo for the application. Not nullable." + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphAddIn", + "properties": { + "id": { + "type": { + "$ref": "#/21" + }, + "flags": 0, + "description": "The unique identifier for the addIn object." + }, + "properties": { + "type": { + "$ref": "#/23" + }, + "flags": 0, + "description": "The collection of key-value pairs that define parameters that the consuming service can use or call. You must specify this property when performing a POST or a PATCH operation on the addIns collection. Required." + }, + "type": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The unique name for the functionality exposed by the app." + } + } + }, + { + "$type": "StringType", + "minLength": 36, + "maxLength": 36, + "pattern": "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$" + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphKeyValue", + "properties": { + "key": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Key for the key-value pair." + }, + "value": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Value for the key-value pair." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/22" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/20" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphApiApplication", + "properties": { + "acceptMappedClaims": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "When true, allows an application to use claims mapping without specifying a custom signing key." + }, + "knownClientApplications": { + "type": { + "$ref": "#/26" + }, + "flags": 0, + "description": "Used for bundling consent if you have a solution that contains two parts: a client app and a custom web API app. If you set the appID of the client app to this value, the user only consents once to the client app. Microsoft Entra ID knows that consenting to the client means implicitly consenting to the web API and automatically provisions service principals for both APIs at the same time. Both the client and the web API app must be registered in the same tenant." + }, + "oauth2PermissionScopes": { + "type": { + "$ref": "#/28" + }, + "flags": 0, + "description": "The definition of the delegated permissions exposed by the web API represented by this application registration. These delegated permissions may be requested by a client application, and may be granted by users or administrators during consent. Delegated permissions are sometimes referred to as OAuth 2.0 scopes." + }, + "preAuthorizedApplications": { + "type": { + "$ref": "#/31" + }, + "flags": 0, + "description": "Lists the client applications that are preauthorized with the specified delegated permissions to access this application's APIs. Users aren't required to consent to any preauthorized application (for the permissions specified). However, any other permissions not listed in preAuthorizedApplications (requested through incremental consent for example) will require user consent." + }, + "requestedAccessTokenVersion": { + "type": { + "$ref": "#/32" + }, + "flags": 0, + "description": "Specifies the access token version expected by this resource. This changes the version and format of the JWT produced independent of the endpoint or client used to request the access token. The endpoint used, v1.0 or v2.0, is chosen by the client and only impacts the version of id_tokens. Resources need to explicitly configure requestedAccessTokenVersion to indicate the supported access token format. Possible values for requestedAccessTokenVersion are 1, 2, or null. If the value is null, this defaults to 1, which corresponds to the v1.0 endpoint. If signInAudience on the application is configured as AzureADandPersonalMicrosoftAccount or PersonalMicrosoftAccount, the value for this property must be 2." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/21" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphPermissionScope", + "properties": { + "adminConsentDescription": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "A description of the delegated permissions, intended to be read by an administrator granting the permission on behalf of all users. This text appears in tenant-wide admin consent experiences." + }, + "adminConsentDisplayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The permission's title, intended to be read by an administrator granting the permission on behalf of all users." + }, + "id": { + "type": { + "$ref": "#/21" + }, + "flags": 0, + "description": "Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application." + }, + "isEnabled": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "When you create or update a permission, this property must be set to true (which is the default). To delete a permission, this property must first be set to false. At that point, in a subsequent call, the permission may be removed." + }, + "type": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The possible values are: User and Admin. Specifies whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator consent should always be required. While Microsoft Graph defines the default consent requirement for each permission, the tenant administrator may override the behavior in their organization (by allowing, restricting, or limiting user consent to this delegated permission). For more information, see Configure how users consent to applications." + }, + "userConsentDescription": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "A description of the delegated permissions, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves." + }, + "userConsentDisplayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "A title for the permission, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves." + }, + "value": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the value to include in the scp (scope) claim in access tokens. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , -. / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with .." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/27" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphPreAuthorizedApplication", + "properties": { + "appId": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The unique identifier for the application." + }, + "delegatedPermissionIds": { + "type": { + "$ref": "#/30" + }, + "flags": 0, + "description": "The unique identifier for the oauth2PermissionScopes the application requires." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/29" + } + }, + { + "$type": "IntegerType" + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphAppRole", + "properties": { + "allowedMemberTypes": { + "type": { + "$ref": "#/34" + }, + "flags": 0, + "description": "Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment to other applications' service principals are also known as application permissions. The 'Application' value is only supported for app roles defined on application entities." + }, + "description": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The description for the app role. This is displayed when the app role is being assigned and, if the app role functions as an application permission, during consent experiences." + }, + "displayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Display name for the permission that appears in the app role assignment and consent experiences." + }, + "id": { + "type": { + "$ref": "#/21" + }, + "flags": 0, + "description": "Unique role identifier inside the appRoles collection. When creating a new app role, a new GUID identifier must be provided." + }, + "isEnabled": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "When creating or updating an app role, this must be set to true (which is the default). To delete a role, this must first be set to false. At that point, in a subsequent call, this role may be removed." + }, + "origin": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Specifies if the app role is defined on the application object or on the servicePrincipal entity. Must not be included in any POST or PATCH requests. Read-only." + }, + "value": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , -. / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with .." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/33" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphAuthenticationBehaviors", + "properties": { + "blockAzureADGraphAccess": { + "type": { + "$ref": "#/5" + }, + "flags": 0 + }, + "removeUnverifiedEmailClaim": { + "type": { + "$ref": "#/5" + }, + "flags": 0 + }, + "requireClientServicePrincipal": { + "type": { + "$ref": "#/5" + }, + "flags": 0 + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphCertification", + "properties": { + "certificationDetailsUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "URL that shows certification details for the application." + }, + "certificationExpirationDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The timestamp when the current certification for the application expires." + }, + "isCertifiedByMicrosoft": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "Indicates whether the application is certified by Microsoft." + }, + "isPublisherAttested": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "Indicates whether the application developer or publisher completed Publisher Attestation." + }, + "lastCertificationDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The timestamp when the certification for the application was most recently added or updated." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphInformationalUrl", + "properties": { + "logoUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "CDN URL to the application's logo, Read-only." + }, + "marketingUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Link to the application's marketing page. For example, https://www.contoso.com/app/marketing." + }, + "privacyStatementUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Link to the application's privacy statement. For example, https://www.contoso.com/app/privacy." + }, + "supportUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Link to the application's support page. For example, https://www.contoso.com/app/support." + }, + "termsOfServiceUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Link to the application's terms of service statement. For example, https://www.contoso.com/app/termsofservice." + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphKeyCredential", + "properties": { + "customKeyIdentifier": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "A 40-character binary type that can be used to identify the credential. Optional. When not provided in the payload, defaults to the thumbprint of the certificate." + }, + "displayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The friendly name for the key, with a maximum length of 90 characters. Longer values are accepted but shortened. Optional." + }, + "endDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The date and time at which the credential expires. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z." + }, + "key": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The certificate's raw data in byte array converted to Base64 string. From a .cer certificate, you can read the key using the Convert.ToBase64String() method. For more information, see Get the certificate key." + }, + "keyId": { + "type": { + "$ref": "#/21" + }, + "flags": 0, + "description": "The unique identifier (GUID) for the key." + }, + "startDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The date and time at which the credential becomes valid.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z." + }, + "type": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The type of key credential; for example, Symmetric, AsymmetricX509Cert." + }, + "usage": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "A string that describes the purpose for which the key can be used; for example, Verify." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/40" + } + }, + { + "$type": "StringLiteralType", + "value": "none" + }, + { + "$type": "StringLiteralType", + "value": "all" + }, + { + "$type": "UnionType", + "elements": [ + { + "$ref": "#/42" + }, + { + "$ref": "#/43" + }, + { + "$ref": "#/0" + } + ] + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphOptionalClaims", + "properties": { + "accessToken": { + "type": { + "$ref": "#/48" + }, + "flags": 0, + "description": "The optional claims returned in the JWT access token." + }, + "idToken": { + "type": { + "$ref": "#/49" + }, + "flags": 0, + "description": "The optional claims returned in the JWT ID token." + }, + "saml2Token": { + "type": { + "$ref": "#/50" + }, + "flags": 0, + "description": "The optional claims returned in the SAML token." + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphOptionalClaim", + "properties": { + "additionalProperties": { + "type": { + "$ref": "#/47" + }, + "flags": 0, + "description": "Additional properties of the claim. If a property exists in this collection, it modifies the behavior of the optional claim specified in the name property." + }, + "essential": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "If the value is true, the claim specified by the client is necessary to ensure a smooth authorization experience for the specific task requested by the end user. The default value is false." + }, + "name": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The name of the optional claim." + }, + "source": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The source (directory object) of the claim. There are predefined claims and user-defined claims from extension properties. If the source value is null, the claim is a predefined optional claim. If the source value is user, the value in the name property is the extension property from the user object." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/46" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/46" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/46" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphParentalControlSettings", + "properties": { + "countriesBlockedForMinors": { + "type": { + "$ref": "#/52" + }, + "flags": 0, + "description": "Specifies the two-letter ISO country codes. Access to the application will be blocked for minors from the countries specified in this list." + }, + "legalAgeGroupRule": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the legal age group rule that applies to users of the app. Can be set to one of the following values: ValueDescriptionAllowDefault. Enforces the legal minimum. This means parental consent is required for minors in the European Union and Korea.RequireConsentForPrivacyServicesEnforces the user to specify date of birth to comply with COPPA rules. RequireConsentForMinorsRequires parental consent for ages below 18, regardless of country/region minor rules.RequireConsentForKidsRequires parental consent for ages below 14, regardless of country/region minor rules.BlockMinorsBlocks minors from using the app." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphPasswordCredential", + "properties": { + "displayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Friendly name for the password. Optional." + }, + "endDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The date and time at which the password expires represented using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional." + }, + "hint": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Contains the first three characters of the password. Read-only." + }, + "keyId": { + "type": { + "$ref": "#/21" + }, + "flags": 0, + "description": "The unique identifier for the password." + }, + "secretText": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Read-only; Contains the strong passwords generated by Microsoft Entra ID that are 16-64 characters in length. The generated password value is only returned during the initial POST request to addPassword. There is no way to retrieve this password in the future." + }, + "startDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The date and time at which the password becomes valid. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/53" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphPublicClientApplication", + "properties": { + "redirectUris": { + "type": { + "$ref": "#/56" + }, + "flags": 0, + "description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. For iOS and macOS apps, specify the value following the syntax msauth.{BUNDLEID}://auth, replacing '{BUNDLEID}'. For example, if the bundle ID is com.microsoft.identitysample.MSALiOS, the URI is msauth.com.microsoft.identitysample.MSALiOS://auth." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphRequestSignatureVerification", + "properties": { + "allowedWeakAlgorithms": { + "type": { + "$ref": "#/59" + }, + "flags": 0, + "description": "Specifies which weak algorithms are allowed. The possible values are: rsaSha1, unknownFutureValue." + }, + "isSignedRequestRequired": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "Specifies whether signed authentication requests for this application should be required." + } + } + }, + { + "$type": "StringLiteralType", + "value": "rsaSha1" + }, + { + "$type": "UnionType", + "elements": [ + { + "$ref": "#/58" + }, + { + "$ref": "#/0" + } + ] + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphRequiredResourceAccess", + "properties": { + "resourceAccess": { + "type": { + "$ref": "#/62" + }, + "flags": 0, + "description": "The list of OAuth2.0 permission scopes and app roles that the application requires from the specified resource." + }, + "resourceAppId": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The unique identifier for the resource that the application requires access to. This should be equal to the appId declared on the target resource application." + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphResourceAccess", + "properties": { + "id": { + "type": { + "$ref": "#/21" + }, + "flags": 0, + "description": "The unique identifier of an app role or delegated permission exposed by the resource application. For delegated permissions, this should match the id property of one of the delegated permissions in the oauth2PermissionScopes collection of the resource application's service principal. For app roles (application permissions), this should match the id property of an app role in the appRoles collection of the resource application's service principal." + }, + "type": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies whether the id property references a delegated permission or an app role (application permission). The possible values are: Scope (for delegated permissions) or Role (for app roles)." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/61" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/60" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphServicePrincipalLockConfiguration", + "properties": { + "allProperties": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "Enables locking all sensitive properties. The sensitive properties are keyCredentials, passwordCredentials, and tokenEncryptionKeyId." + }, + "credentialsWithUsageSign": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "Locks the keyCredentials and passwordCredentials properties for modification where credential usage type is Sign." + }, + "credentialsWithUsageVerify": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "Locks the keyCredentials and passwordCredentials properties for modification where credential usage type is Verify. This locks OAuth service principals." + }, + "isEnabled": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "Enables or disables service principal lock configuration. To allow the sensitive properties to be updated, update this property to false to disable the lock on the service principal." + }, + "tokenEncryptionKeyId": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "Locks the tokenEncryptionKeyId property for modification on the service principal." + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphSpaApplication", + "properties": { + "redirectUris": { + "type": { + "$ref": "#/66" + }, + "flags": 0, + "description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphVerifiedPublisher", + "properties": { + "addedDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The timestamp when the verified publisher was first added or most recently updated." + }, + "displayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The verified publisher name from the app publisher's Partner Center account." + }, + "verifiedPublisherId": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The ID of the verified publisher from the app publisher's Partner Center account." + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphWebApplication", + "properties": { + "homePageUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Home page or landing page of the application." + }, + "implicitGrantSettings": { + "type": { + "$ref": "#/70" + }, + "flags": 0, + "description": "Specifies whether this web application can request tokens using the OAuth 2.0 implicit flow." + }, + "logoutUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the URL that is used by Microsoft's authorization service to log out a user using front-channel, back-channel or SAML logout protocols." + }, + "redirectUris": { + "type": { + "$ref": "#/71" + }, + "flags": 0, + "description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent." + }, + "redirectUriSettings": { + "type": { + "$ref": "#/73" + }, + "flags": 0 + } + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphImplicitGrantSettings", + "properties": { + "enableAccessTokenIssuance": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "Specifies whether this web application can request an access token using the OAuth 2.0 implicit flow." + }, + "enableIdTokenIssuance": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "Specifies whether this web application can request an ID token using the OAuth 2.0 implicit flow." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphRedirectUriSettings", + "properties": { + "index": { + "type": { + "$ref": "#/32" + }, + "flags": 0 + }, + "uri": { + "type": { + "$ref": "#/0" + }, + "flags": 0 + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/72" + } + }, + { + "$type": "ResourceType", + "name": "Microsoft.Graph/applications@v1.0", + "scopeType": 0, + "body": { + "$ref": "#/19" + }, + "flags": 0 + }, + { + "$type": "StringLiteralType", + "value": "Microsoft.Graph/servicePrincipals" + }, + { + "$type": "StringLiteralType", + "value": "v1.0" + }, + { + "$type": "ObjectType", + "name": "Microsoft.Graph/servicePrincipals", + "properties": { + "type": { + "type": { + "$ref": "#/75" + }, + "flags": 10, + "description": "The resource type" + }, + "apiVersion": { + "type": { + "$ref": "#/76" + }, + "flags": 10, + "description": "The resource api version" + }, + "accountEnabled": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "true if the service principal account is enabled; otherwise, false. If set to false, then no users are able to sign in to this app, even if they're assigned to it." + }, + "addIns": { + "type": { + "$ref": "#/78" + }, + "flags": 0, + "description": "Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on." + }, + "alternativeNames": { + "type": { + "$ref": "#/79" + }, + "flags": 0, + "description": "Used to retrieve service principals by subscription, identify resource group and full resource IDs for managed identities." + }, + "appDescription": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The description exposed by the associated application." + }, + "appDisplayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The display name exposed by the associated application. Maximum length is 256 characters." + }, + "appId": { + "type": { + "$ref": "#/0" + }, + "flags": 17, + "description": "The unique identifier for the associated application (its appId property). Alternate key." + }, + "applicationTemplateId": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Unique identifier of the applicationTemplate. Read-only. null if the service principal wasn't created from an application template." + }, + "appOwnerOrganizationId": { + "type": { + "$ref": "#/21" + }, + "flags": 2, + "description": "Contains the tenant ID where the application is registered. This is applicable only to service principals backed by applications." + }, + "appRoleAssignmentRequired": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "Specifies whether users or other service principals need to be granted an app role assignment for this service principal before users can sign in or apps can get tokens. The default value is false. Not nullable." + }, + "appRoles": { + "type": { + "$ref": "#/80" + }, + "flags": 0, + "description": "The roles exposed by the application that's linked to this service principal. For more information, see the appRoles property definition on the application entity. Not nullable." + }, + "customSecurityAttributes": { + "type": { + "$ref": "#/81" + }, + "flags": 0, + "description": "An open complex type that holds the value of a custom security attribute that is assigned to a directory object. Nullable. Filter value is case sensitive. To read this property, the calling app must be assigned the CustomSecAttributeAssignment.Read.All permission. To write this property, the calling app must be assigned the CustomSecAttributeAssignment.ReadWrite.All permissions. To read or write this property in delegated scenarios, the admin must be assigned the Attribute Assignment Administrator role." + }, + "description": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Free text field to provide an internal end-user facing description of the service principal. End-user portals such MyApps displays the application description in this field. The maximum allowed size is 1,024 characters." + }, + "disabledByMicrosoftStatus": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement)." + }, + "displayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The display name for the service principal." + }, + "homepage": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Home page or landing page of the application." + }, + "info": { + "type": { + "$ref": "#/39" + }, + "flags": 0, + "description": "Basic profile information of the acquired application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps." + }, + "keyCredentials": { + "type": { + "$ref": "#/82" + }, + "flags": 0, + "description": "The collection of key credentials associated with the service principal. Not nullable." + }, + "loginUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the URL where the service provider redirects the user to Microsoft Entra ID to authenticate. Microsoft Entra ID uses the URL to launch the application from Microsoft 365 or the Microsoft Entra My Apps. When blank, Microsoft Entra ID performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Microsoft Entra My Apps, or the Microsoft Entra SSO URL." + }, + "logoutUrl": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the URL that the Microsoft's authorization service uses to sign out a user using OpenID Connect front-channel, back-channel, or SAML sign out protocols." + }, + "notes": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Free text field to capture information about the service principal, typically used for operational purposes. Maximum allowed size is 1,024 characters." + }, + "notificationEmailAddresses": { + "type": { + "$ref": "#/83" + }, + "flags": 0, + "description": "Specifies the list of email addresses where Microsoft Entra ID sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Microsoft Entra Gallery applications." + }, + "oauth2PermissionScopes": { + "type": { + "$ref": "#/84" + }, + "flags": 0, + "description": "The delegated permissions exposed by the application. For more information, see the oauth2PermissionScopes property on the application entity's api property. Not nullable." + }, + "passwordCredentials": { + "type": { + "$ref": "#/85" + }, + "flags": 0, + "description": "The collection of password credentials associated with the application. Not nullable." + }, + "preferredSingleSignOnMode": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Specifies the single sign-on mode configured for this application. Microsoft Entra ID uses the preferred single sign-on mode to launch the application from Microsoft 365 or the My Apps portal. The supported values are password, saml, notSupported, and oidc. Note: This field might be null for older SAML apps and for OIDC applications where it isn't set automatically." + }, + "preferredTokenSigningKeyThumbprint": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "This property can be used on SAML applications (apps that have preferredSingleSignOnMode set to saml) to control which certificate is used to sign the SAML responses. For applications that aren't SAML, don't write or otherwise rely on this property." + }, + "replyUrls": { + "type": { + "$ref": "#/86" + }, + "flags": 0, + "description": "The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application. Not nullable." + }, + "resourceSpecificApplicationPermissions": { + "type": { + "$ref": "#/88" + }, + "flags": 2, + "description": "The resource-specific application permissions exposed by this application. Currently, resource-specific permissions are only supported for Teams apps accessing to specific chats and teams using Microsoft Graph. Read-only." + }, + "samlSingleSignOnSettings": { + "type": { + "$ref": "#/89" + }, + "flags": 0, + "description": "The collection for settings related to saml single sign-on." + }, + "servicePrincipalNames": { + "type": { + "$ref": "#/90" + }, + "flags": 0, + "description": "Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI that is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable." + }, + "servicePrincipalType": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Identifies whether the service principal represents an application, a managed identity, or a legacy application. This is set by Microsoft Entra ID internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens aren't issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but can't be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. A legacy service principal can have credentials, service principal names, reply URLs, and other properties that are editable by an authorized user, but doesn't have an associated app registration. The appId value doesn't associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.SocialIdp - For internal use." + }, + "signInAudience": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multitenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only." + }, + "tags": { + "type": { + "$ref": "#/91" + }, + "flags": 0, + "description": "Custom strings that can be used to categorize and identify the service principal. Not nullable." + }, + "tokenEncryptionKeyId": { + "type": { + "$ref": "#/21" + }, + "flags": 0, + "description": "Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user." + }, + "verifiedPublisher": { + "type": { + "$ref": "#/68" + }, + "flags": 0, + "description": "Specifies the verified publisher of the application that's linked to this service principal." + }, + "owners": { + "type": { + "$ref": "#/11" + }, + "flags": 0, + "description": "Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object." + }, + "deletedDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Date and time when this object was deleted. Always null when the object hasn't been deleted." + }, + "id": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The unique identifier for an entity. Read-only." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/20" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/33" + } + }, + { + "$type": "AnyType" + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/40" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/27" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/53" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphResourceSpecificPermission", + "properties": { + "description": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "Describes the level of access that the resource-specific permission represents." + }, + "displayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The display name for the resource-specific permission." + }, + "id": { + "type": { + "$ref": "#/21" + }, + "flags": 0, + "description": "The unique identifier for the resource-specific application permission." + }, + "isEnabled": { + "type": { + "$ref": "#/5" + }, + "flags": 0, + "description": "Indicates whether the permission is enabled." + }, + "value": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The value of the permission." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/87" + } + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphSamlSingleSignOnSettings", + "properties": { + "relayState": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The relative URI the service provider would redirect to after completion of the single sign-on flow." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ResourceType", + "name": "Microsoft.Graph/servicePrincipals@v1.0", + "scopeType": 0, + "body": { + "$ref": "#/77" + }, + "flags": 0 + }, + { + "$type": "StringLiteralType", + "value": "Microsoft.Graph/applications/federatedIdentityCredentials" + }, + { + "$type": "StringLiteralType", + "value": "v1.0" + }, + { + "$type": "ObjectType", + "name": "Microsoft.Graph/applications/federatedIdentityCredentials", + "properties": { + "type": { + "type": { + "$ref": "#/93" + }, + "flags": 10, + "description": "The resource type" + }, + "apiVersion": { + "type": { + "$ref": "#/94" + }, + "flags": 10, + "description": "The resource api version" + }, + "audiences": { + "type": { + "$ref": "#/96" + }, + "flags": 1, + "description": "The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Microsoft Entra ID. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Microsoft Entra ID in your external identity provider and has no fixed value across identity providers - you might need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required." + }, + "description": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The unvalidated description of the federated identity credential, provided by the user. It has a limit of 600 characters. Optional." + }, + "issuer": { + "type": { + "$ref": "#/0" + }, + "flags": 1, + "description": "The URL of the external identity provider, which must match the issuer claim of the external token being exchanged. The combination of the values of issuer and subject must be unique within the app. It has a limit of 600 characters. Required." + }, + "name": { + "type": { + "$ref": "#/0" + }, + "flags": 17, + "description": "The unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. The string is immutable after it's created. Alternate key. Required. Not nullable." + }, + "subject": { + "type": { + "$ref": "#/0" + }, + "flags": 1, + "description": "Required. The identifier of the external software workload within the external identity provider. Like the audience value, it has no fixed format; each identity provider uses their own - sometimes a GUID, sometimes a colon delimited identifier, sometimes arbitrary strings. The value here must match the sub claim within the token presented to Microsoft Entra ID. The combination of issuer and subject must be unique within the app. It has a limit of 600 characters." + }, + "id": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The unique identifier for an entity. Read-only." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ResourceType", + "name": "Microsoft.Graph/applications/federatedIdentityCredentials@v1.0", + "scopeType": 0, + "body": { + "$ref": "#/95" + }, + "flags": 0 + }, + { + "$type": "StringLiteralType", + "value": "Microsoft.Graph/oauth2PermissionGrants" + }, + { + "$type": "StringLiteralType", + "value": "v1.0" + }, + { + "$type": "ObjectType", + "name": "Microsoft.Graph/oauth2PermissionGrants", + "properties": { + "type": { + "type": { + "$ref": "#/98" + }, + "flags": 10, + "description": "The resource type" + }, + "apiVersion": { + "type": { + "$ref": "#/99" + }, + "flags": 10, + "description": "The resource api version" + }, + "clientId": { + "type": { + "$ref": "#/0" + }, + "flags": 1, + "description": "The object id (not appId) of the client service principal for the application that's authorized to act on behalf of a signed-in user when accessing an API. Required." + }, + "consentType": { + "type": { + "$ref": "#/0" + }, + "flags": 1, + "description": "Indicates if authorization is granted for the client application to impersonate all users or only a specific user. AllPrincipals indicates authorization to impersonate all users. Principal indicates authorization to impersonate a specific user. Consent on behalf of all users can be granted by an administrator. Nonadmin users might be authorized to consent on behalf of themselves in some cases, for some delegated permissions. Required." + }, + "principalId": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The id of the user on behalf of whom the client is authorized to access the resource, when consentType is Principal. If consentType is AllPrincipals this value is null. Required when consentType is Principal." + }, + "resourceId": { + "type": { + "$ref": "#/0" + }, + "flags": 1, + "description": "The id of the resource service principal to which access is authorized. This identifies the API that the client is authorized to attempt to call on behalf of a signed-in user." + }, + "scope": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "A space-separated list of the claim values for delegated permissions that should be included in access tokens for the resource application (the API). For example, openid User.Read GroupMember.Read.All. Each claim value should match the value field of one of the delegated permissions defined by the API, listed in the oauth2PermissionScopes property of the resource service principal. Must not exceed 3,850 characters in length." + }, + "id": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The unique identifier for an entity. Read-only." + } + } + }, + { + "$type": "ResourceType", + "name": "Microsoft.Graph/oauth2PermissionGrants@v1.0", + "scopeType": 0, + "body": { + "$ref": "#/100" + }, + "flags": 0 + }, + { + "$type": "StringLiteralType", + "value": "Microsoft.Graph/appRoleAssignedTo" + }, + { + "$type": "StringLiteralType", + "value": "v1.0" + }, + { + "$type": "ObjectType", + "name": "Microsoft.Graph/appRoleAssignedTo", + "properties": { + "type": { + "type": { + "$ref": "#/102" + }, + "flags": 10, + "description": "The resource type" + }, + "apiVersion": { + "type": { + "$ref": "#/103" + }, + "flags": 10, + "description": "The resource api version" + }, + "appRoleId": { + "type": { + "$ref": "#/21" + }, + "flags": 1, + "description": "The identifier (id) for the app role that's assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application hasn't declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create." + }, + "createdDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The time when the app role assignment was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only." + }, + "principalDisplayName": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The display name of the user, group, or service principal that was granted the app role assignment. Maximum length is 256 characters. Read-only." + }, + "principalId": { + "type": { + "$ref": "#/21" + }, + "flags": 1, + "description": "The unique identifier (id) for the user, security group, or service principal being granted the app role. Security groups with dynamic memberships are supported. Required on create." + }, + "principalType": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The type of the assigned principal. This can either be User, Group, or ServicePrincipal. Read-only." + }, + "resourceDisplayName": { + "type": { + "$ref": "#/0" + }, + "flags": 0, + "description": "The display name of the resource app's service principal to which the assignment is made. Maximum length is 256 characters." + }, + "resourceId": { + "type": { + "$ref": "#/21" + }, + "flags": 1, + "description": "The unique identifier (id) for the resource service principal for which the assignment is made. Required on create." + }, + "deletedDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Date and time when this object was deleted. Always null when the object hasn't been deleted." + }, + "id": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The unique identifier for an entity. Read-only." + } + } + }, + { + "$type": "ResourceType", + "name": "Microsoft.Graph/appRoleAssignedTo@v1.0", + "scopeType": 0, + "body": { + "$ref": "#/104" + }, + "flags": 0 + }, + { + "$type": "StringLiteralType", + "value": "Microsoft.Graph/users" + }, + { + "$type": "StringLiteralType", + "value": "v1.0" + }, + { + "$type": "ObjectType", + "name": "Microsoft.Graph/users", + "properties": { + "type": { + "type": { + "$ref": "#/106" + }, + "flags": 10, + "description": "The resource type" + }, + "apiVersion": { + "type": { + "$ref": "#/107" + }, + "flags": 10, + "description": "The resource api version" + }, + "businessPhones": { + "type": { + "$ref": "#/109" + }, + "flags": 2, + "description": "The telephone numbers for the user. NOTE: Although it's a string collection, only one number can be set for this property. Read-only for users synced from the on-premises directory." + }, + "displayName": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The name displayed in the address book for the user. This value is usually the combination of the user's first name, middle initial, and family name. This property is required when a user is created and it can't be cleared during updates. Maximum length is 256 characters." + }, + "givenName": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The given name (first name) of the user. Maximum length is 64 characters." + }, + "jobTitle": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The user's job title. Maximum length is 128 characters." + }, + "mail": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The SMTP address for the user, for example, jeff@contoso.com. Changes to this property update the user's proxyAddresses collection to include the value as an SMTP address. This property can't contain accent characters. NOTE: We don't recommend updating this property for Azure AD B2C user profiles. Use the otherMails property instead." + }, + "mobilePhone": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The primary cellular telephone number for the user. Read-only for users synced from the on-premises directory. Maximum length is 64 characters." + }, + "officeLocation": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The office location in the user's place of business." + }, + "preferredLanguage": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The preferred language for the user. The preferred language format is based on RFC 4646. The name is a combination of an ISO 639 two-letter lowercase culture code associated with the language, and an ISO 3166 two-letter uppercase subculture code associated with the country or region. Example: 'en-US', or 'es-ES'." + }, + "surname": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The user's surname (family name or last name). Maximum length is 64 characters." + }, + "userPrincipalName": { + "type": { + "$ref": "#/0" + }, + "flags": 25, + "description": "The user principal name (UPN) of the user. The UPN is an Internet-style sign-in name for the user based on the Internet standard RFC 822. By convention, this value should map to the user's email name. The general format is alias@domain, where the domain must be present in the tenant's collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization.NOTE: This property can't contain accent characters. Only the following characters are allowed A - Z, a - z, 0 - 9, '. - _ ! # ^ ~. For the complete list of allowed characters, see username policies." + }, + "deletedDateTime": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "Date and time when this object was deleted. Always null when the object hasn't been deleted." + }, + "id": { + "type": { + "$ref": "#/0" + }, + "flags": 2, + "description": "The unique identifier for an entity. Read-only." + } + } + }, + { + "$type": "ArrayType", + "itemType": { + "$ref": "#/0" + } + }, + { + "$type": "ResourceType", + "name": "Microsoft.Graph/users@v1.0", + "scopeType": 0, + "body": { + "$ref": "#/108" + }, + "flags": 1 + }, + { + "$type": "ObjectType", + "name": "MicrosoftGraphBicepExtensionConfig", + "properties": { + "relationshipSemantics": { + "type": { + "$ref": "#/14" + }, + "flags": 0, + "description": "Specifies the semantics used by the Microsoft Graph Bicep extension to process the relationships. The 'append' semantics means that the relationship items in the template are added to the existing list. The 'replace' semantics means that the relationship items in the template will replace all existing items in the Entra resource. The default value (if not set) is 'append'" + } + } + } +] \ No newline at end of file diff --git a/generated/microsoftgraph/microsoft.graph/v1.0/1.0.1/types.md b/generated/microsoftgraph/microsoft.graph/v1.0/1.0.1/types.md new file mode 100644 index 0000000..df07849 --- /dev/null +++ b/generated/microsoftgraph/microsoft.graph/v1.0/1.0.1/types.md @@ -0,0 +1,379 @@ +# Microsoft.Graph @ v1.0 + +## Resource Microsoft.Graph/applications@v1.0 +* **Valid Scope(s)**: Unknown +### Properties +* **addIns**: [MicrosoftGraphAddIn](#microsoftgraphaddin)[]: Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams can set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on. +* **api**: [MicrosoftGraphApiApplication](#microsoftgraphapiapplication): Specifies settings for an application that implements a web API. +* **apiVersion**: 'v1.0' (ReadOnly, DeployTimeConstant): The resource api version +* **appId**: string (ReadOnly): The unique identifier for the application that is assigned to an application by Microsoft Entra ID. Not nullable. Read-only. Alternate key. +* **applicationTemplateId**: string (ReadOnly): Unique identifier of the applicationTemplate. Read-only. null if the app wasn't created from an application template. +* **appRoles**: [MicrosoftGraphAppRole](#microsoftgraphapprole)[]: The collection of roles defined for the application. With app role assignments, these roles can be assigned to users, groups, or service principals associated with other applications. Not nullable. +* **authenticationBehaviors**: [MicrosoftGraphAuthenticationBehaviors](#microsoftgraphauthenticationbehaviors) +* **certification**: [MicrosoftGraphCertification](#microsoftgraphcertification) (ReadOnly): Specifies the certification status of the application. +* **createdDateTime**: string (ReadOnly): The date and time the application was registered. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +* **defaultRedirectUri**: string +* **deletedDateTime**: string (ReadOnly): Date and time when this object was deleted. Always null when the object hasn't been deleted. +* **description**: string: Free text field to provide a description of the application object to end users. The maximum allowed size is 1,024 characters. +* **disabledByMicrosoftStatus**: string (ReadOnly): Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement). +* **displayName**: string (Required): The display name for the application. Maximum length is 256 characters. +* **groupMembershipClaims**: string: Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following valid string values: None, SecurityGroup (for security groups and Microsoft Entra roles), All (this gets all of the security groups, distribution groups, and Microsoft Entra directory roles that the signed-in user is a member of). +* **id**: string (ReadOnly): The unique identifier for an entity. Read-only. +* **identifierUris**: string[]: Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you reference in your API's code, and it must be globally unique across Microsoft Entra ID. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable. +* **info**: [MicrosoftGraphInformationalUrl](#microsoftgraphinformationalurl): Basic profile information of the application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps. +* **isDeviceOnlyAuthSupported**: bool: Specifies whether this application supports device authentication without a user. The default is false. +* **isFallbackPublicClient**: bool: Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false, which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID can't determine the client application type. For example, the ROPC flow where it's configured without specifying a redirect URI. In those cases, Microsoft Entra ID interprets the application type based on the value of this property. +* **keyCredentials**: [MicrosoftGraphKeyCredential](#microsoftgraphkeycredential)[]: The collection of key credentials associated with the application. Not nullable. +* **logo**: string: The main logo for the application. Not nullable. +* **nativeAuthenticationApisEnabled**: 'all' | 'none' | string: Specifies whether the Native Authentication APIs are enabled for the application. The possible values are: none and all. Default is none. For more information, see Native Authentication. +* **notes**: string: Notes relevant for the management of the application. +* **optionalClaims**: [MicrosoftGraphOptionalClaims](#microsoftgraphoptionalclaims): Application developers can configure optional claims in their Microsoft Entra applications to specify the claims that are sent to their application by the Microsoft security token service. For more information, see How to: Provide optional claims to your app. +* **owners**: [MicrosoftGraphRelationship](#microsoftgraphrelationship): Directory objects that are owners of this application. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. +* **parentalControlSettings**: [MicrosoftGraphParentalControlSettings](#microsoftgraphparentalcontrolsettings): Specifies parental control settings for an application. +* **passwordCredentials**: [MicrosoftGraphPasswordCredential](#microsoftgraphpasswordcredential)[]: The collection of password credentials associated with the application. Not nullable. +* **publicClient**: [MicrosoftGraphPublicClientApplication](#microsoftgraphpublicclientapplication): Specifies settings for installed clients such as desktop or mobile devices. +* **publisherDomain**: string (ReadOnly): The verified publisher domain for the application. Read-only. For more information, see How to: Configure an application's publisher domain. +* **requestSignatureVerification**: [MicrosoftGraphRequestSignatureVerification](#microsoftgraphrequestsignatureverification): Specifies whether this application requires Microsoft Entra ID to verify the signed authentication requests. +* **requiredResourceAccess**: [MicrosoftGraphRequiredResourceAccess](#microsoftgraphrequiredresourceaccess)[]: Specifies the resources that the application needs to access. This property also specifies the set of delegated permissions and application roles that it needs for each of those resources. This configuration of access to the required resources drives the consent experience. No more than 50 resource services (APIs) can be configured. Beginning mid-October 2021, the total number of required permissions must not exceed 400. For more information, see Limits on requested permissions per app. Not nullable. +* **samlMetadataUrl**: string: The URL where the service exposes SAML metadata for federation. This property is valid only for single-tenant applications. Nullable. +* **serviceManagementReference**: string: References application or service contact information from a Service or Asset Management database. Nullable. +* **servicePrincipalLockConfiguration**: [MicrosoftGraphServicePrincipalLockConfiguration](#microsoftgraphserviceprincipallockconfiguration): Specifies whether sensitive properties of a multitenant application should be locked for editing after the application is provisioned in a tenant. Nullable. null by default. +* **signInAudience**: string: Specifies the Microsoft accounts that are supported for the current application. The possible values are: AzureADMyOrg (default), AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount, and PersonalMicrosoftAccount. See more in the table. The value of this object also limits the number of permissions an app can request. For more information, see Limits on requested permissions per app. The value for this property has implications on other app object properties. As a result, if you change this property, you might need to change other properties first. +* **spa**: [MicrosoftGraphSpaApplication](#microsoftgraphspaapplication): Specifies settings for a single-page application, including sign out URLs and redirect URIs for authorization codes and access tokens. +* **tags**: string[]: Custom strings that can be used to categorize and identify the application. Not nullable. +* **tokenEncryptionKeyId**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"}: Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID encrypts all the tokens it emits by using the key this property points to. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user. +* **type**: 'Microsoft.Graph/applications' (ReadOnly, DeployTimeConstant): The resource type +* **uniqueName**: string (Required, DeployTimeConstant, Identifier): The unique identifier that can be assigned to an application and used as an alternate key. Immutable. +* **verifiedPublisher**: [MicrosoftGraphVerifiedPublisher](#microsoftgraphverifiedpublisher) (ReadOnly): Specifies the verified publisher of the application. For more information about how publisher verification helps support application security, trustworthiness, and compliance, see Publisher verification. +* **web**: [MicrosoftGraphWebApplication](#microsoftgraphwebapplication): Specifies settings for a web application. + +## Resource Microsoft.Graph/applications/federatedIdentityCredentials@v1.0 +* **Valid Scope(s)**: Unknown +### Properties +* **apiVersion**: 'v1.0' (ReadOnly, DeployTimeConstant): The resource api version +* **audiences**: string[] (Required): The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Microsoft Entra ID. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Microsoft Entra ID in your external identity provider and has no fixed value across identity providers - you might need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required. +* **description**: string: The unvalidated description of the federated identity credential, provided by the user. It has a limit of 600 characters. Optional. +* **id**: string (ReadOnly): The unique identifier for an entity. Read-only. +* **issuer**: string (Required): The URL of the external identity provider, which must match the issuer claim of the external token being exchanged. The combination of the values of issuer and subject must be unique within the app. It has a limit of 600 characters. Required. +* **name**: string (Required, Identifier): The unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. The string is immutable after it's created. Alternate key. Required. Not nullable. +* **subject**: string (Required): Required. The identifier of the external software workload within the external identity provider. Like the audience value, it has no fixed format; each identity provider uses their own - sometimes a GUID, sometimes a colon delimited identifier, sometimes arbitrary strings. The value here must match the sub claim within the token presented to Microsoft Entra ID. The combination of issuer and subject must be unique within the app. It has a limit of 600 characters. +* **type**: 'Microsoft.Graph/applications/federatedIdentityCredentials' (ReadOnly, DeployTimeConstant): The resource type + +## Resource Microsoft.Graph/appRoleAssignedTo@v1.0 +* **Valid Scope(s)**: Unknown +### Properties +* **apiVersion**: 'v1.0' (ReadOnly, DeployTimeConstant): The resource api version +* **appRoleId**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"} (Required): The identifier (id) for the app role that's assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application hasn't declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create. +* **createdDateTime**: string (ReadOnly): The time when the app role assignment was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +* **deletedDateTime**: string (ReadOnly): Date and time when this object was deleted. Always null when the object hasn't been deleted. +* **id**: string (ReadOnly): The unique identifier for an entity. Read-only. +* **principalDisplayName**: string (ReadOnly): The display name of the user, group, or service principal that was granted the app role assignment. Maximum length is 256 characters. Read-only. +* **principalId**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"} (Required): The unique identifier (id) for the user, security group, or service principal being granted the app role. Security groups with dynamic memberships are supported. Required on create. +* **principalType**: string (ReadOnly): The type of the assigned principal. This can either be User, Group, or ServicePrincipal. Read-only. +* **resourceDisplayName**: string: The display name of the resource app's service principal to which the assignment is made. Maximum length is 256 characters. +* **resourceId**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"} (Required): The unique identifier (id) for the resource service principal for which the assignment is made. Required on create. +* **type**: 'Microsoft.Graph/appRoleAssignedTo' (ReadOnly, DeployTimeConstant): The resource type + +## Resource Microsoft.Graph/groups@v1.0 +* **Valid Scope(s)**: Unknown +### Properties +* **apiVersion**: 'v1.0' (ReadOnly, DeployTimeConstant): The resource api version +* **classification**: string: Describes a classification for the group (such as low, medium, or high business impact). +* **createdDateTime**: string (ReadOnly): Timestamp of when the group was created. The value can't be modified and is automatically populated when the group is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +* **deletedDateTime**: string (ReadOnly): Date and time when this object was deleted. Always null when the object hasn't been deleted. +* **description**: string: An optional description for the group. +* **displayName**: string (Required): The display name for the group. This property is required when a group is created and can't be cleared during updates. Maximum length is 256 characters. +* **expirationDateTime**: string (ReadOnly): Timestamp of when the group is set to expire. It's null for security groups, but for Microsoft 365 groups, it represents when the group is set to expire as defined in the groupLifecyclePolicy. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +* **groupTypes**: string[]: Specifies the group type and its membership. If the collection contains Unified, the group is a Microsoft 365 group; otherwise, it's either a security group or a distribution group. For details, see groups overview.If the collection includes DynamicMembership, the group has dynamic membership; otherwise, membership is static. +* **id**: string (ReadOnly): The unique identifier for an entity. Read-only. +* **isAssignableToRole**: bool: Indicates whether this group can be assigned to a Microsoft Entra role. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group can't be a dynamic group (that is, groupTypes can't contain DynamicMembership). Only callers with at least the Privileged Role Administrator role can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Microsoft Entra role assignmentsUsing this feature requires a Microsoft Entra ID P1 license. +* **isManagementRestricted**: bool (ReadOnly): Indicates whether the group is a member of a restricted management administrative unit. Read-only. To manage a group member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. See [restricted management administrative units](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/admin-units-restricted-management). +* **mail**: string (ReadOnly): The SMTP address for the group, for example, 'serviceadmins@contoso.com'. Read-only. +* **mailEnabled**: bool (Required): Specifies whether the group is mail-enabled. Required. +* **mailNickname**: string (Required): The mail alias for the group, unique for Microsoft 365 groups in the organization. Maximum length is 64 characters. This property can contain only characters in the ASCII character set 0 - 127 except the following characters: @ () / [] ' ; : <> , SPACE. Required. +* **members**: [MicrosoftGraphRelationship](#microsoftgraphrelationship): The members of this group, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable. +* **membershipRule**: string: The rule that determines members for this group if the group is a dynamic group (groupTypes contains DynamicMembership). For more information about the syntax of the membership rule, see Membership Rules syntax. +* **membershipRuleProcessingState**: string: Indicates whether the dynamic membership processing is on or paused. Possible values are On or Paused. +* **onPremisesDomainName**: string (ReadOnly): Contains the on-premises domain FQDN, also called dnsDomainName synchronized from the on-premises directory. Read-only. +* **onPremisesLastSyncDateTime**: string (ReadOnly): Indicates the last time at which the group was synced with the on-premises directory. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +* **onPremisesNetBiosName**: string (ReadOnly): Contains the on-premises netBios name synchronized from the on-premises directory. Read-only. +* **onPremisesProvisioningErrors**: [MicrosoftGraphOnPremisesProvisioningError](#microsoftgraphonpremisesprovisioningerror)[] (ReadOnly): Errors when using Microsoft synchronization product during provisioning. +* **onPremisesSamAccountName**: string (ReadOnly): Contains the on-premises SAM account name synchronized from the on-premises directory. Read-only. +* **onPremisesSecurityIdentifier**: string (ReadOnly): Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Read-only. +* **onPremisesSyncEnabled**: bool (ReadOnly): true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Read-only. +* **owners**: [MicrosoftGraphRelationship](#microsoftgraphrelationship): The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. +* **preferredDataLocation**: string: The preferred data location for the Microsoft 365 group. By default, the group inherits the group creator's preferred data location. To set this property, the calling app must be granted the Directory.ReadWrite.All permission and the user be assigned at least one of the following Microsoft Entra roles: User Account Administrator Directory Writer Exchange Administrator SharePoint Administrator For more information about this property, see OneDrive Online Multi-Geo. Nullable. +* **preferredLanguage**: string: The preferred language for a Microsoft 365 group. Should follow ISO 639-1 Code; for example, en-US. +* **proxyAddresses**: string[] (ReadOnly): Email addresses for the group that direct to the same group mailbox. For example: ['SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com']. The any operator is required to filter expressions on multi-valued properties. Read-only. Not nullable. +* **renewedDateTime**: string (ReadOnly): Timestamp of when the group was last renewed. This value can't be modified directly and is only updated via the renew service action. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Read-only. +* **securityEnabled**: bool (Required): Specifies whether the group is a security group. Required. +* **securityIdentifier**: string (ReadOnly): Security identifier of the group, used in Windows scenarios. Read-only. +* **serviceProvisioningErrors**: [MicrosoftGraphServiceProvisioningError](#microsoftgraphserviceprovisioningerror)[] (ReadOnly): Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object. +* **theme**: string: Specifies a Microsoft 365 group's color theme. Possible values are Teal, Purple, Green, Blue, Pink, Orange, or Red. +* **type**: 'Microsoft.Graph/groups' (ReadOnly, DeployTimeConstant): The resource type +* **uniqueName**: string (Required, DeployTimeConstant, Identifier): The unique identifier that can be assigned to a group and used as an alternate key. Immutable. +* **visibility**: string: Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value isn't specified during group creation on Microsoft Graph, a security group is created as Private by default, and the Microsoft 365 group is Public. Groups assignable to roles are always Private. To learn more, see group visibility options. Nullable. + +## Resource Microsoft.Graph/oauth2PermissionGrants@v1.0 +* **Valid Scope(s)**: Unknown +### Properties +* **apiVersion**: 'v1.0' (ReadOnly, DeployTimeConstant): The resource api version +* **clientId**: string (Required): The object id (not appId) of the client service principal for the application that's authorized to act on behalf of a signed-in user when accessing an API. Required. +* **consentType**: string (Required): Indicates if authorization is granted for the client application to impersonate all users or only a specific user. AllPrincipals indicates authorization to impersonate all users. Principal indicates authorization to impersonate a specific user. Consent on behalf of all users can be granted by an administrator. Nonadmin users might be authorized to consent on behalf of themselves in some cases, for some delegated permissions. Required. +* **id**: string (ReadOnly): The unique identifier for an entity. Read-only. +* **principalId**: string: The id of the user on behalf of whom the client is authorized to access the resource, when consentType is Principal. If consentType is AllPrincipals this value is null. Required when consentType is Principal. +* **resourceId**: string (Required): The id of the resource service principal to which access is authorized. This identifies the API that the client is authorized to attempt to call on behalf of a signed-in user. +* **scope**: string: A space-separated list of the claim values for delegated permissions that should be included in access tokens for the resource application (the API). For example, openid User.Read GroupMember.Read.All. Each claim value should match the value field of one of the delegated permissions defined by the API, listed in the oauth2PermissionScopes property of the resource service principal. Must not exceed 3,850 characters in length. +* **type**: 'Microsoft.Graph/oauth2PermissionGrants' (ReadOnly, DeployTimeConstant): The resource type + +## Resource Microsoft.Graph/servicePrincipals@v1.0 +* **Valid Scope(s)**: Unknown +### Properties +* **accountEnabled**: bool: true if the service principal account is enabled; otherwise, false. If set to false, then no users are able to sign in to this app, even if they're assigned to it. +* **addIns**: [MicrosoftGraphAddIn](#microsoftgraphaddin)[]: Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on. +* **alternativeNames**: string[]: Used to retrieve service principals by subscription, identify resource group and full resource IDs for managed identities. +* **apiVersion**: 'v1.0' (ReadOnly, DeployTimeConstant): The resource api version +* **appDescription**: string: The description exposed by the associated application. +* **appDisplayName**: string: The display name exposed by the associated application. Maximum length is 256 characters. +* **appId**: string (Required, Identifier): The unique identifier for the associated application (its appId property). Alternate key. +* **applicationTemplateId**: string (ReadOnly): Unique identifier of the applicationTemplate. Read-only. null if the service principal wasn't created from an application template. +* **appOwnerOrganizationId**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"} (ReadOnly): Contains the tenant ID where the application is registered. This is applicable only to service principals backed by applications. +* **appRoleAssignmentRequired**: bool: Specifies whether users or other service principals need to be granted an app role assignment for this service principal before users can sign in or apps can get tokens. The default value is false. Not nullable. +* **appRoles**: [MicrosoftGraphAppRole](#microsoftgraphapprole)[]: The roles exposed by the application that's linked to this service principal. For more information, see the appRoles property definition on the application entity. Not nullable. +* **customSecurityAttributes**: any: An open complex type that holds the value of a custom security attribute that is assigned to a directory object. Nullable. Filter value is case sensitive. To read this property, the calling app must be assigned the CustomSecAttributeAssignment.Read.All permission. To write this property, the calling app must be assigned the CustomSecAttributeAssignment.ReadWrite.All permissions. To read or write this property in delegated scenarios, the admin must be assigned the Attribute Assignment Administrator role. +* **deletedDateTime**: string (ReadOnly): Date and time when this object was deleted. Always null when the object hasn't been deleted. +* **description**: string: Free text field to provide an internal end-user facing description of the service principal. End-user portals such MyApps displays the application description in this field. The maximum allowed size is 1,024 characters. +* **disabledByMicrosoftStatus**: string (ReadOnly): Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement). +* **displayName**: string: The display name for the service principal. +* **homepage**: string: Home page or landing page of the application. +* **id**: string (ReadOnly): The unique identifier for an entity. Read-only. +* **info**: [MicrosoftGraphInformationalUrl](#microsoftgraphinformationalurl): Basic profile information of the acquired application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps. +* **keyCredentials**: [MicrosoftGraphKeyCredential](#microsoftgraphkeycredential)[]: The collection of key credentials associated with the service principal. Not nullable. +* **loginUrl**: string: Specifies the URL where the service provider redirects the user to Microsoft Entra ID to authenticate. Microsoft Entra ID uses the URL to launch the application from Microsoft 365 or the Microsoft Entra My Apps. When blank, Microsoft Entra ID performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Microsoft Entra My Apps, or the Microsoft Entra SSO URL. +* **logoutUrl**: string: Specifies the URL that the Microsoft's authorization service uses to sign out a user using OpenID Connect front-channel, back-channel, or SAML sign out protocols. +* **notes**: string: Free text field to capture information about the service principal, typically used for operational purposes. Maximum allowed size is 1,024 characters. +* **notificationEmailAddresses**: string[]: Specifies the list of email addresses where Microsoft Entra ID sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Microsoft Entra Gallery applications. +* **oauth2PermissionScopes**: [MicrosoftGraphPermissionScope](#microsoftgraphpermissionscope)[]: The delegated permissions exposed by the application. For more information, see the oauth2PermissionScopes property on the application entity's api property. Not nullable. +* **owners**: [MicrosoftGraphRelationship](#microsoftgraphrelationship): Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. +* **passwordCredentials**: [MicrosoftGraphPasswordCredential](#microsoftgraphpasswordcredential)[]: The collection of password credentials associated with the application. Not nullable. +* **preferredSingleSignOnMode**: string: Specifies the single sign-on mode configured for this application. Microsoft Entra ID uses the preferred single sign-on mode to launch the application from Microsoft 365 or the My Apps portal. The supported values are password, saml, notSupported, and oidc. Note: This field might be null for older SAML apps and for OIDC applications where it isn't set automatically. +* **preferredTokenSigningKeyThumbprint**: string: This property can be used on SAML applications (apps that have preferredSingleSignOnMode set to saml) to control which certificate is used to sign the SAML responses. For applications that aren't SAML, don't write or otherwise rely on this property. +* **replyUrls**: string[]: The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application. Not nullable. +* **resourceSpecificApplicationPermissions**: [MicrosoftGraphResourceSpecificPermission](#microsoftgraphresourcespecificpermission)[] (ReadOnly): The resource-specific application permissions exposed by this application. Currently, resource-specific permissions are only supported for Teams apps accessing to specific chats and teams using Microsoft Graph. Read-only. +* **samlSingleSignOnSettings**: [MicrosoftGraphSamlSingleSignOnSettings](#microsoftgraphsamlsinglesignonsettings): The collection for settings related to saml single sign-on. +* **servicePrincipalNames**: string[]: Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI that is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable. +* **servicePrincipalType**: string: Identifies whether the service principal represents an application, a managed identity, or a legacy application. This is set by Microsoft Entra ID internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens aren't issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but can't be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. A legacy service principal can have credentials, service principal names, reply URLs, and other properties that are editable by an authorized user, but doesn't have an associated app registration. The appId value doesn't associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.SocialIdp - For internal use. +* **signInAudience**: string (ReadOnly): Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multitenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only. +* **tags**: string[]: Custom strings that can be used to categorize and identify the service principal. Not nullable. +* **tokenEncryptionKeyId**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"}: Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user. +* **type**: 'Microsoft.Graph/servicePrincipals' (ReadOnly, DeployTimeConstant): The resource type +* **verifiedPublisher**: [MicrosoftGraphVerifiedPublisher](#microsoftgraphverifiedpublisher): Specifies the verified publisher of the application that's linked to this service principal. + +## Resource Microsoft.Graph/users@v1.0 (ReadOnly) +* **Valid Scope(s)**: Unknown +### Properties +* **apiVersion**: 'v1.0' (ReadOnly, DeployTimeConstant): The resource api version +* **businessPhones**: string[] (ReadOnly): The telephone numbers for the user. NOTE: Although it's a string collection, only one number can be set for this property. Read-only for users synced from the on-premises directory. +* **deletedDateTime**: string (ReadOnly): Date and time when this object was deleted. Always null when the object hasn't been deleted. +* **displayName**: string (ReadOnly): The name displayed in the address book for the user. This value is usually the combination of the user's first name, middle initial, and family name. This property is required when a user is created and it can't be cleared during updates. Maximum length is 256 characters. +* **givenName**: string (ReadOnly): The given name (first name) of the user. Maximum length is 64 characters. +* **id**: string (ReadOnly): The unique identifier for an entity. Read-only. +* **jobTitle**: string (ReadOnly): The user's job title. Maximum length is 128 characters. +* **mail**: string (ReadOnly): The SMTP address for the user, for example, jeff@contoso.com. Changes to this property update the user's proxyAddresses collection to include the value as an SMTP address. This property can't contain accent characters. NOTE: We don't recommend updating this property for Azure AD B2C user profiles. Use the otherMails property instead. +* **mobilePhone**: string (ReadOnly): The primary cellular telephone number for the user. Read-only for users synced from the on-premises directory. Maximum length is 64 characters. +* **officeLocation**: string (ReadOnly): The office location in the user's place of business. +* **preferredLanguage**: string (ReadOnly): The preferred language for the user. The preferred language format is based on RFC 4646. The name is a combination of an ISO 639 two-letter lowercase culture code associated with the language, and an ISO 3166 two-letter uppercase subculture code associated with the country or region. Example: 'en-US', or 'es-ES'. +* **surname**: string (ReadOnly): The user's surname (family name or last name). Maximum length is 64 characters. +* **type**: 'Microsoft.Graph/users' (ReadOnly, DeployTimeConstant): The resource type +* **userPrincipalName**: string (Required, DeployTimeConstant, Identifier): The user principal name (UPN) of the user. The UPN is an Internet-style sign-in name for the user based on the Internet standard RFC 822. By convention, this value should map to the user's email name. The general format is alias@domain, where the domain must be present in the tenant's collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization.NOTE: This property can't contain accent characters. Only the following characters are allowed A - Z, a - z, 0 - 9, '. - _ ! # ^ ~. For the complete list of allowed characters, see username policies. + +## MicrosoftGraphAddIn +### Properties +* **id**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"}: The unique identifier for the addIn object. +* **properties**: [MicrosoftGraphKeyValue](#microsoftgraphkeyvalue)[]: The collection of key-value pairs that define parameters that the consuming service can use or call. You must specify this property when performing a POST or a PATCH operation on the addIns collection. Required. +* **type**: string: The unique name for the functionality exposed by the app. + +## MicrosoftGraphApiApplication +### Properties +* **acceptMappedClaims**: bool: When true, allows an application to use claims mapping without specifying a custom signing key. +* **knownClientApplications**: (string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"})[]: Used for bundling consent if you have a solution that contains two parts: a client app and a custom web API app. If you set the appID of the client app to this value, the user only consents once to the client app. Microsoft Entra ID knows that consenting to the client means implicitly consenting to the web API and automatically provisions service principals for both APIs at the same time. Both the client and the web API app must be registered in the same tenant. +* **oauth2PermissionScopes**: [MicrosoftGraphPermissionScope](#microsoftgraphpermissionscope)[]: The definition of the delegated permissions exposed by the web API represented by this application registration. These delegated permissions may be requested by a client application, and may be granted by users or administrators during consent. Delegated permissions are sometimes referred to as OAuth 2.0 scopes. +* **preAuthorizedApplications**: [MicrosoftGraphPreAuthorizedApplication](#microsoftgraphpreauthorizedapplication)[]: Lists the client applications that are preauthorized with the specified delegated permissions to access this application's APIs. Users aren't required to consent to any preauthorized application (for the permissions specified). However, any other permissions not listed in preAuthorizedApplications (requested through incremental consent for example) will require user consent. +* **requestedAccessTokenVersion**: int: Specifies the access token version expected by this resource. This changes the version and format of the JWT produced independent of the endpoint or client used to request the access token. The endpoint used, v1.0 or v2.0, is chosen by the client and only impacts the version of id_tokens. Resources need to explicitly configure requestedAccessTokenVersion to indicate the supported access token format. Possible values for requestedAccessTokenVersion are 1, 2, or null. If the value is null, this defaults to 1, which corresponds to the v1.0 endpoint. If signInAudience on the application is configured as AzureADandPersonalMicrosoftAccount or PersonalMicrosoftAccount, the value for this property must be 2. + +## MicrosoftGraphAppRole +### Properties +* **allowedMemberTypes**: string[]: Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment to other applications' service principals are also known as application permissions. The 'Application' value is only supported for app roles defined on application entities. +* **description**: string: The description for the app role. This is displayed when the app role is being assigned and, if the app role functions as an application permission, during consent experiences. +* **displayName**: string: Display name for the permission that appears in the app role assignment and consent experiences. +* **id**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"}: Unique role identifier inside the appRoles collection. When creating a new app role, a new GUID identifier must be provided. +* **isEnabled**: bool: When creating or updating an app role, this must be set to true (which is the default). To delete a role, this must first be set to false. At that point, in a subsequent call, this role may be removed. +* **origin**: string (ReadOnly): Specifies if the app role is defined on the application object or on the servicePrincipal entity. Must not be included in any POST or PATCH requests. Read-only. +* **value**: string: Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , -. / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with .. + +## MicrosoftGraphAuthenticationBehaviors +### Properties +* **blockAzureADGraphAccess**: bool +* **removeUnverifiedEmailClaim**: bool +* **requireClientServicePrincipal**: bool + +## MicrosoftGraphCertification +### Properties +* **certificationDetailsUrl**: string: URL that shows certification details for the application. +* **certificationExpirationDateTime**: string: The timestamp when the current certification for the application expires. +* **isCertifiedByMicrosoft**: bool: Indicates whether the application is certified by Microsoft. +* **isPublisherAttested**: bool: Indicates whether the application developer or publisher completed Publisher Attestation. +* **lastCertificationDateTime**: string: The timestamp when the certification for the application was most recently added or updated. + +## MicrosoftGraphImplicitGrantSettings +### Properties +* **enableAccessTokenIssuance**: bool: Specifies whether this web application can request an access token using the OAuth 2.0 implicit flow. +* **enableIdTokenIssuance**: bool: Specifies whether this web application can request an ID token using the OAuth 2.0 implicit flow. + +## MicrosoftGraphInformationalUrl +### Properties +* **logoUrl**: string (ReadOnly): CDN URL to the application's logo, Read-only. +* **marketingUrl**: string: Link to the application's marketing page. For example, https://www.contoso.com/app/marketing. +* **privacyStatementUrl**: string: Link to the application's privacy statement. For example, https://www.contoso.com/app/privacy. +* **supportUrl**: string: Link to the application's support page. For example, https://www.contoso.com/app/support. +* **termsOfServiceUrl**: string: Link to the application's terms of service statement. For example, https://www.contoso.com/app/termsofservice. + +## MicrosoftGraphKeyCredential +### Properties +* **customKeyIdentifier**: string: A 40-character binary type that can be used to identify the credential. Optional. When not provided in the payload, defaults to the thumbprint of the certificate. +* **displayName**: string: The friendly name for the key, with a maximum length of 90 characters. Longer values are accepted but shortened. Optional. +* **endDateTime**: string: The date and time at which the credential expires. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. +* **key**: string: The certificate's raw data in byte array converted to Base64 string. From a .cer certificate, you can read the key using the Convert.ToBase64String() method. For more information, see Get the certificate key. +* **keyId**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"}: The unique identifier (GUID) for the key. +* **startDateTime**: string: The date and time at which the credential becomes valid.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. +* **type**: string: The type of key credential; for example, Symmetric, AsymmetricX509Cert. +* **usage**: string: A string that describes the purpose for which the key can be used; for example, Verify. + +## MicrosoftGraphKeyValue +### Properties +* **key**: string: Key for the key-value pair. +* **value**: string: Value for the key-value pair. + +## MicrosoftGraphOnPremisesProvisioningError +### Properties +* **category**: string: Category of the provisioning error. Note: Currently, there is only one possible value. Possible value: PropertyConflict - indicates a property value is not unique. Other objects contain the same value for the property. +* **occurredDateTime**: string: The date and time at which the error occurred. +* **propertyCausingError**: string: Name of the directory property causing the error. Current possible values: UserPrincipalName or ProxyAddress. +* **value**: string: Value of the property causing the error. + +## MicrosoftGraphOptionalClaim +### Properties +* **additionalProperties**: string[]: Additional properties of the claim. If a property exists in this collection, it modifies the behavior of the optional claim specified in the name property. +* **essential**: bool: If the value is true, the claim specified by the client is necessary to ensure a smooth authorization experience for the specific task requested by the end user. The default value is false. +* **name**: string: The name of the optional claim. +* **source**: string: The source (directory object) of the claim. There are predefined claims and user-defined claims from extension properties. If the source value is null, the claim is a predefined optional claim. If the source value is user, the value in the name property is the extension property from the user object. + +## MicrosoftGraphOptionalClaims +### Properties +* **accessToken**: [MicrosoftGraphOptionalClaim](#microsoftgraphoptionalclaim)[]: The optional claims returned in the JWT access token. +* **idToken**: [MicrosoftGraphOptionalClaim](#microsoftgraphoptionalclaim)[]: The optional claims returned in the JWT ID token. +* **saml2Token**: [MicrosoftGraphOptionalClaim](#microsoftgraphoptionalclaim)[]: The optional claims returned in the SAML token. + +## MicrosoftGraphParentalControlSettings +### Properties +* **countriesBlockedForMinors**: string[]: Specifies the two-letter ISO country codes. Access to the application will be blocked for minors from the countries specified in this list. +* **legalAgeGroupRule**: string: Specifies the legal age group rule that applies to users of the app. Can be set to one of the following values: ValueDescriptionAllowDefault. Enforces the legal minimum. This means parental consent is required for minors in the European Union and Korea.RequireConsentForPrivacyServicesEnforces the user to specify date of birth to comply with COPPA rules. RequireConsentForMinorsRequires parental consent for ages below 18, regardless of country/region minor rules.RequireConsentForKidsRequires parental consent for ages below 14, regardless of country/region minor rules.BlockMinorsBlocks minors from using the app. + +## MicrosoftGraphPasswordCredential +### Properties +* **displayName**: string: Friendly name for the password. Optional. +* **endDateTime**: string: The date and time at which the password expires represented using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional. +* **hint**: string (ReadOnly): Contains the first three characters of the password. Read-only. +* **keyId**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"}: The unique identifier for the password. +* **secretText**: string (ReadOnly): Read-only; Contains the strong passwords generated by Microsoft Entra ID that are 16-64 characters in length. The generated password value is only returned during the initial POST request to addPassword. There is no way to retrieve this password in the future. +* **startDateTime**: string: The date and time at which the password becomes valid. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional. + +## MicrosoftGraphPermissionScope +### Properties +* **adminConsentDescription**: string: A description of the delegated permissions, intended to be read by an administrator granting the permission on behalf of all users. This text appears in tenant-wide admin consent experiences. +* **adminConsentDisplayName**: string: The permission's title, intended to be read by an administrator granting the permission on behalf of all users. +* **id**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"}: Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application. +* **isEnabled**: bool: When you create or update a permission, this property must be set to true (which is the default). To delete a permission, this property must first be set to false. At that point, in a subsequent call, the permission may be removed. +* **type**: string: The possible values are: User and Admin. Specifies whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator consent should always be required. While Microsoft Graph defines the default consent requirement for each permission, the tenant administrator may override the behavior in their organization (by allowing, restricting, or limiting user consent to this delegated permission). For more information, see Configure how users consent to applications. +* **userConsentDescription**: string: A description of the delegated permissions, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves. +* **userConsentDisplayName**: string: A title for the permission, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves. +* **value**: string: Specifies the value to include in the scp (scope) claim in access tokens. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , -. / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with .. + +## MicrosoftGraphPreAuthorizedApplication +### Properties +* **appId**: string: The unique identifier for the application. +* **delegatedPermissionIds**: string[]: The unique identifier for the oauth2PermissionScopes the application requires. + +## MicrosoftGraphPublicClientApplication +### Properties +* **redirectUris**: string[]: Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. For iOS and macOS apps, specify the value following the syntax msauth.{BUNDLEID}://auth, replacing '{BUNDLEID}'. For example, if the bundle ID is com.microsoft.identitysample.MSALiOS, the URI is msauth.com.microsoft.identitysample.MSALiOS://auth. + +## MicrosoftGraphRedirectUriSettings +### Properties +* **index**: int +* **uri**: string + +## MicrosoftGraphRelationship +### Properties +* **relationships**: string[] (Required): The list of object ids to be included in the relationship. +* **relationshipSemantics**: 'append' | 'replace' | string: Specifies the semantics used by the Microsoft Graph Bicep extension to process the relationships. The 'append' semantics means that the relationship items in the template are added to the existing list. The 'replace' semantics means that the relationship items in the template will replace all existing items in the Entra resource. The default value (if not set) is 'append' + +## MicrosoftGraphRequestSignatureVerification +### Properties +* **allowedWeakAlgorithms**: 'rsaSha1' | string: Specifies which weak algorithms are allowed. The possible values are: rsaSha1, unknownFutureValue. +* **isSignedRequestRequired**: bool: Specifies whether signed authentication requests for this application should be required. + +## MicrosoftGraphRequiredResourceAccess +### Properties +* **resourceAccess**: [MicrosoftGraphResourceAccess](#microsoftgraphresourceaccess)[]: The list of OAuth2.0 permission scopes and app roles that the application requires from the specified resource. +* **resourceAppId**: string: The unique identifier for the resource that the application requires access to. This should be equal to the appId declared on the target resource application. + +## MicrosoftGraphResourceAccess +### Properties +* **id**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"}: The unique identifier of an app role or delegated permission exposed by the resource application. For delegated permissions, this should match the id property of one of the delegated permissions in the oauth2PermissionScopes collection of the resource application's service principal. For app roles (application permissions), this should match the id property of an app role in the appRoles collection of the resource application's service principal. +* **type**: string: Specifies whether the id property references a delegated permission or an app role (application permission). The possible values are: Scope (for delegated permissions) or Role (for app roles). + +## MicrosoftGraphResourceSpecificPermission +### Properties +* **description**: string: Describes the level of access that the resource-specific permission represents. +* **displayName**: string: The display name for the resource-specific permission. +* **id**: string {minLength: 36, maxLength: 36, pattern: "^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$"}: The unique identifier for the resource-specific application permission. +* **isEnabled**: bool: Indicates whether the permission is enabled. +* **value**: string: The value of the permission. + +## MicrosoftGraphSamlSingleSignOnSettings +### Properties +* **relayState**: string: The relative URI the service provider would redirect to after completion of the single sign-on flow. + +## MicrosoftGraphServicePrincipalLockConfiguration +### Properties +* **allProperties**: bool: Enables locking all sensitive properties. The sensitive properties are keyCredentials, passwordCredentials, and tokenEncryptionKeyId. +* **credentialsWithUsageSign**: bool: Locks the keyCredentials and passwordCredentials properties for modification where credential usage type is Sign. +* **credentialsWithUsageVerify**: bool: Locks the keyCredentials and passwordCredentials properties for modification where credential usage type is Verify. This locks OAuth service principals. +* **isEnabled**: bool: Enables or disables service principal lock configuration. To allow the sensitive properties to be updated, update this property to false to disable the lock on the service principal. +* **tokenEncryptionKeyId**: bool: Locks the tokenEncryptionKeyId property for modification on the service principal. + +## MicrosoftGraphServiceProvisioningError +### Properties +* **createdDateTime**: string: The date and time at which the error occurred. +* **isResolved**: bool: Indicates whether the error has been attended to. +* **serviceInstance**: string: Qualified service instance (for example, 'SharePoint/Dublin') that published the service error information. + +## MicrosoftGraphSpaApplication +### Properties +* **redirectUris**: string[]: Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. + +## MicrosoftGraphVerifiedPublisher +### Properties +* **addedDateTime**: string: The timestamp when the verified publisher was first added or most recently updated. +* **displayName**: string: The verified publisher name from the app publisher's Partner Center account. +* **verifiedPublisherId**: string: The ID of the verified publisher from the app publisher's Partner Center account. + +## MicrosoftGraphWebApplication +### Properties +* **homePageUrl**: string: Home page or landing page of the application. +* **implicitGrantSettings**: [MicrosoftGraphImplicitGrantSettings](#microsoftgraphimplicitgrantsettings): Specifies whether this web application can request tokens using the OAuth 2.0 implicit flow. +* **logoutUrl**: string: Specifies the URL that is used by Microsoft's authorization service to log out a user using front-channel, back-channel or SAML logout protocols. +* **redirectUris**: string[]: Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. +* **redirectUriSettings**: [MicrosoftGraphRedirectUriSettings](#microsoftgraphredirecturisettings)[] + diff --git a/src/Microsoft.Graph.Bicep.Types.UnitTests/MicrosoftGraphTypeLoaderTests.cs b/src/Microsoft.Graph.Bicep.Types.UnitTests/MicrosoftGraphTypeLoaderTests.cs index 4f7aa08..b45e541 100644 --- a/src/Microsoft.Graph.Bicep.Types.UnitTests/MicrosoftGraphTypeLoaderTests.cs +++ b/src/Microsoft.Graph.Bicep.Types.UnitTests/MicrosoftGraphTypeLoaderTests.cs @@ -4,6 +4,7 @@ using FluentAssertions; using System.Linq; using System.Collections.Generic; +using System.IO; using Azure.Bicep.Types.Concrete; namespace Microsoft.Graph.Bicep.Types.UnitTests @@ -11,6 +12,19 @@ namespace Microsoft.Graph.Bicep.Types.UnitTests [TestClass] public class MicrosoftGraphTypeLoaderTests { + private class VersionedTypeLoader : MicrosoftGraphTypeLoader + { + private readonly string apiVersion; + + public VersionedTypeLoader(string apiVersion) + { + this.apiVersion = apiVersion; + } + + protected override Stream GetContentStreamAtPath(string path) + => base.GetContentStreamAtPath($"microsoftgraph/microsoft.graph/{apiVersion}/1.0.1/{path}"); + } + private IEnumerable minTypes = new List { "Microsoft.Graph/applications@beta", @@ -137,6 +151,47 @@ public void MSGraphTypeLoader_type_keys_are_insensitively_unique() { functionsByApiVersion.Keys.Select(x => x.ToLowerInvariant()).Should().OnlyHaveUniqueItems(); } + + } + + [DataTestMethod] + [DataRow("beta")] + [DataRow("v1.0")] + public void MSGraphTypeLoader_patch_preserves_reads_and_conditional_writes(string apiVersion) + { + var loader = new VersionedTypeLoader(apiVersion); + var index = loader.LoadTypeIndex(); + var readOnlyProperties = new Dictionary + { + ["groups"] = new[] { "isManagementRestricted", "serviceProvisioningErrors" }, + ["applications"] = new[] { "disabledByMicrosoftStatus", "verifiedPublisher" }, + ["servicePrincipals"] = new[] { "disabledByMicrosoftStatus" }, + }; + + foreach (var (resourceName, propertyNames) in readOnlyProperties) + { + var resource = loader.LoadResourceType(index.Resources[$"Microsoft.Graph/{resourceName}@{apiVersion}"]); + var body = resource.Body.Type.Should().BeOfType().Subject; + foreach (var propertyName in propertyNames) + { + var property = body.Properties[propertyName]; + property.Flags.Should().HaveFlag(ObjectTypePropertyFlags.ReadOnly); + property.Flags.Should().NotHaveFlag(ObjectTypePropertyFlags.WriteOnly); + property.Type.Type.Should().NotBeNull(); + } + } + + var servicePrincipal = loader.LoadResourceType(index.Resources[$"Microsoft.Graph/servicePrincipals@{apiVersion}"]); + var servicePrincipalBody = servicePrincipal.Body.Type.Should().BeOfType().Subject; + foreach (var propertyName in new[] { "addIns", "appRoles", "homepage", "logoutUrl", "replyUrls", "servicePrincipalNames" }) + { + servicePrincipalBody.Properties[propertyName].Flags.Should().NotHaveFlag(ObjectTypePropertyFlags.ReadOnly); + } + + var group = loader.LoadResourceType(index.Resources[$"Microsoft.Graph/groups@{apiVersion}"]); + var groupBody = group.Body.Type.Should().BeOfType().Subject; + groupBody.Properties["isManagementRestricted"].Description.Should().Contain( + "[restricted management administrative units](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/admin-units-restricted-management)"); } } } diff --git a/src/extensionConfig/src/extensionConfig.json b/src/extensionConfig/src/extensionConfig.json index 3ff75d2..763e24f 100644 --- a/src/extensionConfig/src/extensionConfig.json +++ b/src/extensionConfig/src/extensionConfig.json @@ -1,10 +1,10 @@ { "beta": { "name": "MicrosoftGraphBeta", - "version": "1.0.0" + "version": "1.0.1" }, "v1.0": { "name": "MicrosoftGraph", - "version": "1.0.0" + "version": "1.0.1" } } \ No newline at end of file diff --git a/src/generator/src/cmd/generate.ts b/src/generator/src/cmd/generate.ts index c28f7a0..f1e5f99 100644 --- a/src/generator/src/cmd/generate.ts +++ b/src/generator/src/cmd/generate.ts @@ -299,9 +299,9 @@ async function buildTypeIndex(logger: ILogger, baseDir: string, apiVersion: ApiV }; const indexContent = await buildIndex(typeFiles, (log) => logOut(logger, log), typeSettings); - await writeFile(`${extensionBaseDir}/types.json`, normalizeJsonPath(writeTypesJson(contentJson))); - await writeFile(`${extensionBaseDir}/index.json`, normalizeJsonPath(writeIndexJson(indexContent))); - await writeFile(`${extensionBaseDir}/index.md`, normalizeJsonPath(writeIndexMarkdown(indexContent))); + await writeFile(`${extensionBaseDir}/types.json`, writeTypesJson(contentJson)); + await writeFile(`${extensionBaseDir}/index.json`, writeIndexJson(indexContent)); + await writeFile(`${extensionBaseDir}/index.md`, writeIndexMarkdown(indexContent)); } function shouldIncludeFilePath(filePath: string) { diff --git a/src/swagger-generation/README.md b/src/swagger-generation/README.md index 5fa7c2d..8c3875c 100644 --- a/src/swagger-generation/README.md +++ b/src/swagger-generation/README.md @@ -36,6 +36,7 @@ The configuration file is `config-.yml`. The following settings are a - `NavigationProperties` (optional): A list of navigation properties which will follow the behavior specified above. All values must be valid navigation properties of the entity type. - `RequiredOnWrite` (optional): A list of properties that are required when writing the entity type. All values must be valid properties of the entity type. - `ReadOnly` (optional): A list of properties that are read-only. All values must be valid properties of the entity type. + - `PropertyDescriptions` (optional): A map from structural property names to replacement descriptions. Use versioned, evidence-backed overrides when metadata is missing or incorrect. Markdown links and formatting are preserved verbatim. Unknown or excluded property names fail validation. This changes documentation, not mutability or allowed values. ### Output diff --git a/src/swagger-generation/configs/beta/1.0.1.yml b/src/swagger-generation/configs/beta/1.0.1.yml new file mode 100644 index 0000000..ee4642d --- /dev/null +++ b/src/swagger-generation/configs/beta/1.0.1.yml @@ -0,0 +1,257 @@ +MetadataFilePath: clean_beta_metadata/cleanMetadataWithDescriptionsAndAnnotationsbeta.xml +ExtensionVersion: 1.0.1 +EntityTypes: + - Name: microsoft.graph.user + RootUri: /users + IsReadonlyResource: true + IgnoredProperties: + - aboutMe + - accountEnabled + - ageGroup + - assignedLicenses + - assignedPlans + - authorizationInfo + - birthday + - city + - cloudLicensing + - cloudRealtimeCommunicationInfo + - companyName + - consentProvidedForMinor + - country + - createdDateTime + - creationType + - customSecurityAttributes + - deletedDateTime + - department + - deviceEnrollmentLimit + - deviceKeys + - employeeHireDate + - employeeId + - employeeLeaveDateTime + - employeeOrgData + - employeeType + - externalUserState + - externalUserStateChangeDateTime + - faxNumber + - hireDate + - identities + - imAddresses + - infoCatalogs + - interests + - isLicenseReconciliationNeeded + - isManagementRestricted + - isResourceAccount + - lastPasswordChangeDateTime + - legalAgeGroupClassification + - licenseAssignmentStates + - mailboxSettings + - mailNickname + - mySite + - onPremisesDistinguishedName + - onPremisesDomainName + - onPremisesExtensionAttributes + - onPremisesImmutableId + - onPremisesLastSyncDateTime + - onPremisesProvisioningErrors + - onPremisesSamAccountName + - onPremisesSecurityIdentifier + - onPremisesSipInfo + - onPremisesSyncEnabled + - onPremisesUserPrincipalName + - otherMails + - passwordPolicies + - passwordProfile + - pastProjects + - postalCode + - preferredDataLocation + - preferredName + - print + - provisionedPlans + - proxyAddresses + - refreshTokensValidFromDateTime + - responsibilities + - schools + - securityIdentifier + - serviceProvisioningErrors + - showInAddressList + - signInActivity + - signInSessionsValidFromDateTime + - skills + - state + - streetAddress + - usageLocation + - userType + - Name: microsoft.graph.group + RootUri: /groups + Upsertable: true + IgnoredProperties: + - accessType + - allowExternalSenders + - assignedLabels + - assignedLicenses + - autoSubscribeNewMembers + - hasMembersWithLicenseErrors + - hideFromAddressLists + - hideFromOutlookClients + - isArchived + - isFavorite + - isSubscribedByMail + - licenseProcessingState + - membershipRuleProcessingStatus + - unseenConversationsCount + - unseenCount + - unseenMessagesCount + NavigationProperty: + - members + - owners + Relationships: + NeedsBatch: false + BulkLimit: 20 + Properties: + - members + - owners + RequiredOnWrite: + - displayName + - mailEnabled + - mailNickname + - securityEnabled + - uniqueName + ReadOnly: + - createdByAppId + - createdDateTime + - expirationDateTime + - isManagementRestricted + - mail + - onPremisesDomainName + - onPremisesLastSyncDateTime + - onPremisesNetBiosName + - onPremisesProvisioningErrors + - onPremisesSamAccountName + - onPremisesSecurityIdentifier + - onPremisesSyncEnabled + - proxyAddresses + - renewedDateTime + - securityIdentifier + - serviceProvisioningErrors + PropertyDescriptions: + isManagementRestricted: >- + Indicates whether the group is a member of a restricted management administrative unit. + Read-only. To manage a group member of a restricted management administrative unit, + the administrator or calling app must be assigned a Microsoft Entra role at the scope + of the restricted management administrative unit. + See [restricted management administrative units](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/admin-units-restricted-management). + - Name: microsoft.graph.application + RootUri: /applications + Upsertable: true + IgnoredProperties: + - onPremisesPublishing + - oauth2RequirePostResponse + RequiredOnWrite: + - displayName + - uniqueName + ReadOnly: + - appId + - certification + - createdDateTime + - disabledByMicrosoftStatus + - publisherDomain + - verifiedPublisher + PropertyDescriptions: + identifierUris: >- + Also known as App ID URI, this value is set when an application is used as a resource app. + The identifierUris acts as the prefix for the scopes you reference in your API's code, + and it must be globally unique across Microsoft Entra ID. + For more information on valid identifierUris patterns and best practices, + see Microsoft Entra application registration security best practices. Not nullable. + Relationships: + NeedsBatch: true + BulkLimit: 20 + Properties: + - owners + - Name: microsoft.graph.servicePrincipal + RootUri: /servicePrincipals + Upsertable: true + IgnoredProperties: + - customSecurityAttributes + - errorUrl + - passwordSingleSignOnSettings + RequiredOnWrite: + - appId + ReadOnly: + - applicationTemplateId + - appOwnerOrganizationId + - disabledByMicrosoftStatus + - signInAudience + Relationships: + NeedsBatch: true + BulkLimit: 20 + Properties: + - owners + - Name: microsoft.graph.federatedIdentityCredential + RootUri: /applications/federatedIdentityCredentials + Upsertable: true + ContainerEntitySet: applications + RequiredOnWrite: + - audiences + - issuer + - name + - Name: microsoft.graph.oAuth2PermissionGrant + RootUri: /oauth2PermissionGrants + Upsertable: false + Updatable: true + IgnoredProperties: + - expiryTime + - startTime + RequiredOnWrite: + - clientId + - consentType + - resourceId + FilterProperty: + - clientId + - consentType + - resourceId + CompositeKey: + - clientId + - consentType + - resourceId + - Name: microsoft.graph.appRoleAssignment + RootUri: /appRoleAssignedTo + Upsertable: false + Updatable: false + ContainerEntitySet: servicePrincipals + ContainerKeyProperty: resourceId + RequiredOnWrite: + - appRoleId + - principalId + - resourceId + ReadOnly: + - creationTimestamp + - principalDisplayName + - principalType + CompositeKey: + - appRoleId + - principalId + - Name: microsoft.graph.appRole + ReadOnly: + - origin + - Name: microsoft.graph.informationalUrl + ReadOnly: + - logoUrl + - Name: microsoft.graph.passwordCredential + IgnoredProperties: + - customKeyIdentifier + ReadOnly: + - hint + - secretText + - Name: microsoft.graph.windowsApplication + ReadOnly: + - packageSid + - Name: microsoft.graph.permissionScope + IgnoredProperties: + - origin + - Name: microsoft.graph.directoryObject + ReadOnly: + - deletedDateTime + - Name: microsoft.graph.entity + ReadOnly: + - id diff --git a/src/swagger-generation/configs/v1.0/1.0.1.yml b/src/swagger-generation/configs/v1.0/1.0.1.yml new file mode 100644 index 0000000..86f7d2f --- /dev/null +++ b/src/swagger-generation/configs/v1.0/1.0.1.yml @@ -0,0 +1,238 @@ +MetadataFilePath: clean_v10_metadata/cleanMetadataWithDescriptionsAndAnnotationsv1.0.xml +ExtensionVersion: 1.0.1 +EntityTypes: + - Name: microsoft.graph.user + RootUri: /users + IsReadonlyResource: true + IgnoredProperties: + - aboutMe + - accountEnabled + - ageGroup + - assignedLicenses + - assignedPlans + - authorizationInfo + - birthday + - city + - companyName + - consentProvidedForMinor + - country + - createdDateTime + - creationType + - customSecurityAttributes + - deletedDateTime + - department + - deviceEnrollmentLimit + - employeeHireDate + - employeeId + - employeeLeaveDateTime + - employeeOrgData + - employeeType + - externalUserState + - externalUserStateChangeDateTime + - faxNumber + - hireDate + - identities + - imAddresses + - interests + - isLicenseReconciliationNeeded + - isManagementRestricted + - isResourceAccount + - lastPasswordChangeDateTime + - legalAgeGroupClassification + - licenseAssignmentStates + - mailboxSettings + - mailNickname + - mySite + - onPremisesDistinguishedName + - onPremisesDomainName + - onPremisesExtensionAttributes + - onPremisesImmutableId + - onPremisesLastSyncDateTime + - onPremisesProvisioningErrors + - onPremisesSamAccountName + - onPremisesSecurityIdentifier + - onPremisesSyncEnabled + - onPremisesUserPrincipalName + - otherMails + - passwordPolicies + - passwordProfile + - pastProjects + - postalCode + - preferredDataLocation + - preferredName + - print + - provisionedPlans + - proxyAddresses + - refreshTokensValidFromDateTime + - responsibilities + - schools + - securityIdentifier + - serviceProvisioningErrors + - showInAddressList + - signInActivity + - signInSessionsValidFromDateTime + - skills + - state + - streetAddress + - usageLocation + - userType + - Name: microsoft.graph.group + RootUri: /groups + Upsertable: true + IgnoredProperties: + - allowExternalSenders + - assignedLabels + - assignedLicenses + - autoSubscribeNewMembers + - hasMembersWithLicenseErrors + - hideFromAddressLists + - hideFromOutlookClients + - isArchived + - isSubscribedByMail + - licenseProcessingState + - unseenCount + NavigationProperty: + - members + - owners + Relationships: + NeedsBatch: false + BulkLimit: 20 + Properties: + - members + - owners + RequiredOnWrite: + - displayName + - mailEnabled + - mailNickname + - securityEnabled + - uniqueName + ReadOnly: + - createdDateTime + - expirationDateTime + - isManagementRestricted + - mail + - onPremisesDomainName + - onPremisesLastSyncDateTime + - onPremisesNetBiosName + - onPremisesProvisioningErrors + - onPremisesSamAccountName + - onPremisesSecurityIdentifier + - onPremisesSyncEnabled + - proxyAddresses + - renewedDateTime + - securityIdentifier + - serviceProvisioningErrors + PropertyDescriptions: + isManagementRestricted: >- + Indicates whether the group is a member of a restricted management administrative unit. + Read-only. To manage a group member of a restricted management administrative unit, + the administrator or calling app must be assigned a Microsoft Entra role at the scope + of the restricted management administrative unit. + See [restricted management administrative units](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/admin-units-restricted-management). + - Name: microsoft.graph.application + RootUri: /applications + Upsertable: true + IgnoredProperties: + - oauth2RequirePostResponse + RequiredOnWrite: + - displayName + - uniqueName + ReadOnly: + - appId + - applicationTemplateId + - certification + - createdDateTime + - disabledByMicrosoftStatus + - publisherDomain + - verifiedPublisher + PropertyDescriptions: + identifierUris: >- + Also known as App ID URI, this value is set when an application is used as a resource app. + The identifierUris acts as the prefix for the scopes you reference in your API's code, + and it must be globally unique across Microsoft Entra ID. + For more information on valid identifierUris patterns and best practices, + see Microsoft Entra application registration security best practices. Not nullable. + Relationships: + NeedsBatch: true + BulkLimit: 20 + Properties: + - owners + - Name: microsoft.graph.servicePrincipal + RootUri: /servicePrincipals + Upsertable: true + RequiredOnWrite: + - appId + ReadOnly: + - applicationTemplateId + - appOwnerOrganizationId + - disabledByMicrosoftStatus + - resourceSpecificApplicationPermissions + - signInAudience + Relationships: + NeedsBatch: true + BulkLimit: 20 + Properties: + - owners + - Name: microsoft.graph.federatedIdentityCredential + RootUri: /applications/federatedIdentityCredentials + Upsertable: true + ContainerEntitySet: applications + RequiredOnWrite: + - audiences + - issuer + - name + - subject + - Name: microsoft.graph.oAuth2PermissionGrant + RootUri: /oauth2PermissionGrants + Upsertable: false + Updatable: true + RequiredOnWrite: + - clientId + - consentType + - resourceId + FilterProperty: + - clientId + - consentType + - resourceId + CompositeKey: + - clientId + - consentType + - resourceId + - Name: microsoft.graph.appRoleAssignment + RootUri: /appRoleAssignedTo + Upsertable: false + Updatable: false + ContainerEntitySet: servicePrincipals + ContainerKeyProperty: resourceId + RequiredOnWrite: + - appRoleId + - principalId + - resourceId + ReadOnly: + - createdDateTime + - principalDisplayName + - principalType + CompositeKey: + - appRoleId + - principalId + - Name: microsoft.graph.appRole + ReadOnly: + - origin + - Name: microsoft.graph.informationalUrl + ReadOnly: + - logoUrl + - Name: microsoft.graph.passwordCredential + IgnoredProperties: + - customKeyIdentifier + ReadOnly: + - hint + - secretText + - Name: microsoft.graph.permissionScope + IgnoredProperties: + - origin + - Name: microsoft.graph.directoryObject + ReadOnly: + - deletedDateTime + - Name: microsoft.graph.entity + ReadOnly: + - id diff --git a/src/swagger-generation/output/metadata.json b/src/swagger-generation/output/metadata.json index f7e2e41..26072f1 100644 --- a/src/swagger-generation/output/metadata.json +++ b/src/swagger-generation/output/metadata.json @@ -942,5 +942,283 @@ } } } + }, + "1.0.1": { + "users": { + "beta": { + "isIdempotent": false, + "isReadonly": true, + "updatable": false, + "alternateKey": "userPrincipalName", + "isContainment": false, + "orchestrationProperties": { + "save": [], + "get": [] + } + }, + "v1.0": { + "isIdempotent": false, + "isReadonly": true, + "updatable": false, + "alternateKey": "userPrincipalName", + "isContainment": false, + "orchestrationProperties": { + "save": [], + "get": [] + } + } + }, + "groups": { + "beta": { + "isIdempotent": true, + "updatable": true, + "alternateKey": "uniqueName", + "isContainment": false, + "navigationProperties": [ + "members", + "owners" + ], + "relationshipMetadata": { + "needsBatch": false, + "bulkLimit": 20, + "properties": [ + { + "name": "members", + "type": "directoryObjects" + }, + { + "name": "owners", + "type": "directoryObjects" + } + ] + }, + "orchestrationProperties": { + "save": [], + "get": [] + } + }, + "v1.0": { + "isIdempotent": true, + "updatable": true, + "alternateKey": "uniqueName", + "isContainment": false, + "navigationProperties": [ + "members", + "owners" + ], + "relationshipMetadata": { + "needsBatch": false, + "bulkLimit": 20, + "properties": [ + { + "name": "members", + "type": "directoryObjects" + }, + { + "name": "owners", + "type": "directoryObjects" + } + ] + }, + "orchestrationProperties": { + "save": [], + "get": [] + } + } + }, + "applications": { + "beta": { + "isIdempotent": true, + "updatable": true, + "alternateKey": "uniqueName", + "isContainment": false, + "relationshipMetadata": { + "needsBatch": true, + "bulkLimit": 20, + "properties": [ + { + "name": "owners", + "type": "directoryObjects" + } + ] + }, + "orchestrationProperties": { + "save": [ + { + "name": "logo", + "orchestrationType": "binaryStream", + "urlPattern": "/logo", + "httpMethod": "PUT" + } + ], + "get": [] + } + }, + "v1.0": { + "isIdempotent": true, + "updatable": true, + "alternateKey": "uniqueName", + "isContainment": false, + "relationshipMetadata": { + "needsBatch": true, + "bulkLimit": 20, + "properties": [ + { + "name": "owners", + "type": "directoryObjects" + } + ] + }, + "orchestrationProperties": { + "save": [ + { + "name": "logo", + "orchestrationType": "binaryStream", + "urlPattern": "/logo", + "httpMethod": "PUT" + } + ], + "get": [] + } + } + }, + "servicePrincipals": { + "beta": { + "isIdempotent": true, + "updatable": true, + "alternateKey": "appId", + "isContainment": false, + "relationshipMetadata": { + "needsBatch": true, + "bulkLimit": 20, + "properties": [ + { + "name": "owners", + "type": "directoryObjects" + } + ] + }, + "orchestrationProperties": { + "save": [], + "get": [] + } + }, + "v1.0": { + "isIdempotent": true, + "updatable": true, + "alternateKey": "appId", + "isContainment": false, + "relationshipMetadata": { + "needsBatch": true, + "bulkLimit": 20, + "properties": [ + { + "name": "owners", + "type": "directoryObjects" + } + ] + }, + "orchestrationProperties": { + "save": [], + "get": [] + } + } + }, + "applications/federatedIdentityCredentials": { + "beta": { + "isIdempotent": true, + "updatable": true, + "alternateKey": "name", + "isContainment": true, + "containerEntitySet": "applications", + "orchestrationProperties": { + "save": [], + "get": [] + } + }, + "v1.0": { + "isIdempotent": true, + "updatable": true, + "alternateKey": "name", + "isContainment": true, + "containerEntitySet": "applications", + "orchestrationProperties": { + "save": [], + "get": [] + } + } + }, + "oauth2PermissionGrants": { + "beta": { + "isIdempotent": false, + "updatable": true, + "isContainment": false, + "temporaryFilterKeys": [ + "clientId", + "consentType", + "resourceId" + ], + "compositeKeyProperties": [ + "clientId", + "consentType", + "resourceId" + ], + "orchestrationProperties": { + "save": [], + "get": [] + } + }, + "v1.0": { + "isIdempotent": false, + "updatable": true, + "isContainment": false, + "temporaryFilterKeys": [ + "clientId", + "consentType", + "resourceId" + ], + "compositeKeyProperties": [ + "clientId", + "consentType", + "resourceId" + ], + "orchestrationProperties": { + "save": [], + "get": [] + } + } + }, + "appRoleAssignedTo": { + "beta": { + "isIdempotent": false, + "updatable": false, + "isContainment": true, + "containerEntitySet": "servicePrincipals", + "keyProperty": "resourceId", + "compositeKeyProperties": [ + "appRoleId", + "principalId" + ], + "orchestrationProperties": { + "save": [], + "get": [] + } + }, + "v1.0": { + "isIdempotent": false, + "updatable": false, + "isContainment": true, + "containerEntitySet": "servicePrincipals", + "keyProperty": "resourceId", + "compositeKeyProperties": [ + "appRoleId", + "principalId" + ], + "orchestrationProperties": { + "save": [], + "get": [] + } + } + } } } \ No newline at end of file diff --git a/src/swagger-generation/output/microsoftgraph-beta-1.0.1.json b/src/swagger-generation/output/microsoftgraph-beta-1.0.1.json new file mode 100644 index 0000000..2e24d1f --- /dev/null +++ b/src/swagger-generation/output/microsoftgraph-beta-1.0.1.json @@ -0,0 +1,2043 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft Graph", + "version": "beta" + }, + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "definitions": { + "microsoft.graph.relationshipSemantics": { + "type": "string", + "enum": [ + "append", + "replace" + ] + }, + "microsoft.graph.relationship": { + "type": "object", + "properties": { + "relationshipSemantics": { + "$ref": "#/definitions/microsoft.graph.relationshipSemantics", + "description": "Specifies the semantics used by the Microsoft Graph Bicep extension to process the relationships. The 'append' semantics means that the relationship items in the template are added to the existing list. The 'replace' semantics means that the relationship items in the template will replace all existing items in the Entra resource. The default value (if not set) is 'append'" + }, + "relationships": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The list of object ids to be included in the relationship." + } + }, + "required": [ + "relationships" + ] + }, + "microsoft.graph.user": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "businessPhones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The telephone numbers for the user. Only one number can be set for this property. Read-only for users synced from on-premises directory.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "The name displayed in the address book for the user. This value is usually the combination of the user's first name, middle initial, and last name. This property is required when a user is created, and it cannot be cleared during updates. Maximum length is 256 characters.", + "readOnly": false + }, + "givenName": { + "type": "string", + "description": "The given name (first name) of the user. Maximum length is 64 characters.", + "readOnly": false + }, + "jobTitle": { + "type": "string", + "description": "The user's job title. Maximum length is 128 characters.", + "readOnly": false + }, + "mail": { + "type": "string", + "description": "The SMTP address for the user, for example, admin@contoso.com. Changes to this property also update the user's proxyAddresses collection to include the value as an SMTP address. This property can't contain accent characters. NOTE: We don't recommend updating this property for Azure AD B2C user profiles. Use the otherMails property instead.", + "readOnly": false + }, + "mobilePhone": { + "type": "string", + "description": "The primary cellular telephone number for the user. Read-only for users synced from the on-premises directory.", + "readOnly": false + }, + "officeLocation": { + "type": "string", + "description": "The office location in the user's place of business. Maximum length is 128 characters.", + "readOnly": false + }, + "preferredLanguage": { + "type": "string", + "description": "The preferred language for the user. The preferred language format is based on RFC 4646. The name combines an ISO 639 two-letter lowercase culture code associated with the language and an ISO 3166 two-letter uppercase subculture code associated with the country or region. Example: 'en-US', or 'es-ES'.", + "readOnly": false + }, + "surname": { + "type": "string", + "description": "The user's surname (family name or last name). Maximum length is 64 characters.", + "readOnly": false + }, + "userPrincipalName": { + "type": "string", + "description": "The user principal name (UPN) of the user. The UPN is an Internet-style sign-in name for the user based on the Internet standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where the domain must be present in the tenant's verified domain collection. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization.NOTE: This property can't contain accent characters. Only the following characters are allowed A - Z, a - z, 0 - 9, '. - _ ! # ^ ~. For the complete list of allowed characters, see username policies.", + "readOnly": false, + "x-ms-graph-key": true, + "x-constant-key": true + } + }, + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.group": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "classification": { + "type": "string", + "description": "Describes a classification for the group (such as low, medium or high business impact).", + "readOnly": false + }, + "cloudLicensing": { + "$ref": "#/definitions/microsoft.graph.cloudLicensing.groupCloudLicensing", + "description": "The relationships of a group to cloud licensing resources.", + "readOnly": false + }, + "createdByAppId": { + "type": "string", + "description": "App ID of the app used to create the group. Can be null for some groups. Read-only.", + "readOnly": true + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "Timestamp of when the group was created. The value can't be modified and is automatically populated when the group is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "description": { + "type": "string", + "description": "An optional description for the group.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "The display name for the group. Required. Maximum length is 256 characters.", + "readOnly": false + }, + "expirationDateTime": { + "type": "string", + "format": "date-time", + "description": "Timestamp of when the group is set to expire. It is null for security groups, but for Microsoft 365 groups, it represents when the group is set to expire as defined in the groupLifecyclePolicy. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "groupTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the group type and its membership. If the collection contains Unified, the group is a Microsoft 365 group; otherwise, it's either a security group or a distribution group. For details, see groups overview.If the collection includes DynamicMembership, the group has dynamic membership; otherwise, membership is static.", + "readOnly": false + }, + "infoCatalogs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Identifies the info segments assigned to the group.", + "readOnly": false + }, + "isAssignableToRole": { + "type": "boolean", + "description": "Indicates whether this group can be assigned to a Microsoft Entra role. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group cannot be a dynamic group (that is, groupTypes can't contain DynamicMembership). Only callers with at least the Privileged Role Administrator role can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Microsoft Entra role assignmentsUsing this feature requires a Microsoft Entra ID P1 license.", + "readOnly": false + }, + "isManagementRestricted": { + "type": "boolean", + "description": "Indicates whether the group is a member of a restricted management administrative unit. Read-only. To manage a group member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. See [restricted management administrative units](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/admin-units-restricted-management).", + "readOnly": true + }, + "mail": { + "type": "string", + "description": "The SMTP address for the group, for example, 'serviceadmins@contoso.com'. Read-only.", + "readOnly": true + }, + "mailEnabled": { + "type": "boolean", + "description": "Specifies whether the group is mail-enabled. Required.", + "readOnly": false + }, + "mailNickname": { + "type": "string", + "description": "The mail alias for the group, unique for Microsoft 365 groups in the organization. Maximum length is 64 characters. This property can contain only characters in the ASCII character set 0 - 127 except the following: @ () / [] ' ; : <> , SPACE.", + "readOnly": false + }, + "membershipRule": { + "type": "string", + "description": "The rule that determines members for this group if the group is a dynamic group (groupTypes contains DynamicMembership). For more information about the syntax of the membership rule, see Membership Rules syntax.", + "readOnly": false + }, + "membershipRuleProcessingState": { + "type": "string", + "description": "Indicates whether the dynamic membership processing is on or paused. Possible values are On or Paused.", + "readOnly": false + }, + "onPremisesDomainName": { + "type": "string", + "description": "Contains the on-premises domain FQDN, also called dnsDomainName synchronized from the on-premises directory. Read-only.", + "readOnly": true + }, + "onPremisesLastSyncDateTime": { + "type": "string", + "format": "date-time", + "description": "Indicates the last time at which the group was synced with the on-premises directory.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "onPremisesNetBiosName": { + "type": "string", + "description": "Contains the on-premises netBios name synchronized from the on-premises directory. Read-only.", + "readOnly": true + }, + "onPremisesProvisioningErrors": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.onPremisesProvisioningError" + }, + "description": "Errors when using Microsoft synchronization product during provisioning.", + "readOnly": true + }, + "onPremisesSamAccountName": { + "type": "string", + "description": "Contains the on-premises SAM account name synchronized from the on-premises directory. Read-only.", + "readOnly": true + }, + "onPremisesSecurityIdentifier": { + "type": "string", + "description": "Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Read-only.", + "readOnly": true + }, + "onPremisesSyncEnabled": { + "type": "boolean", + "description": "true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Read-only.", + "readOnly": true + }, + "organizationId": { + "type": "string", + "description": "", + "readOnly": false + }, + "preferredDataLocation": { + "type": "string", + "description": "The preferred data location for the Microsoft 365 group. By default, the group inherits the group creator's preferred data location. To set this property, the calling app must be granted the Directory.ReadWrite.All permission and the user be assigned at least one of the following Microsoft Entra roles: User Account Administrator Directory Writer Exchange Administrator SharePoint Administrator For more information about this property, see OneDrive Online Multi-Geo and Create a Microsoft 365 group with a specific PDL. Nullable.", + "readOnly": false + }, + "preferredLanguage": { + "type": "string", + "description": "The preferred language for a Microsoft 365 group. Should follow ISO 639-1 Code; for example, en-US.", + "readOnly": false + }, + "proxyAddresses": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Email addresses for the group that direct to the same group mailbox. For example: ['SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com']. The any operator is required for filter expressions on multi-valued properties. Read-only. Not nullable.", + "readOnly": true + }, + "renewedDateTime": { + "type": "string", + "format": "date-time", + "description": "Timestamp of when the group was last renewed. This cannot be modified directly and is only updated via the renew service action. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "resourceBehaviorOptions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the group behaviors that can be set for a Microsoft 365 group during creation. This property can be set only as part of creation (POST). For the list of possible values, see Microsoft 365 group behaviors and provisioning options.", + "readOnly": false + }, + "resourceProvisioningOptions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the group resources that are associated with the Microsoft 365 group. The possible value is Team. For more information, see Microsoft 365 group behaviors and provisioning options.", + "readOnly": false + }, + "securityEnabled": { + "type": "boolean", + "description": "Specifies whether the group is a security group.", + "readOnly": false + }, + "securityIdentifier": { + "type": "string", + "description": "Security identifier of the group, used in Windows scenarios. Read-only.", + "readOnly": true + }, + "serviceProvisioningErrors": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.serviceProvisioningError" + }, + "description": "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object.", + "readOnly": true + }, + "theme": { + "type": "string", + "description": "Specifies a Microsoft 365 group's color theme. Possible values are Teal, Purple, Green, Blue, Pink, Orange or Red.", + "readOnly": false + }, + "uniqueName": { + "type": "string", + "description": "The unique identifier that can be assigned to a group and used as an alternate key. Immutable.", + "readOnly": false, + "x-ms-graph-key": true, + "x-constant-key": true + }, + "visibility": { + "type": "string", + "description": "Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value isn't specified during group creation on Microsoft Graph, a security group is created as Private by default, and Microsoft 365 group is Public. Groups assignable to roles are always Private. To learn more, see group visibility options. Nullable.", + "readOnly": false + }, + "writebackConfiguration": { + "$ref": "#/definitions/microsoft.graph.groupWritebackConfiguration", + "description": "Specifies whether or not a group is configured to write back group object properties to on-premises Active Directory. These properties are used when group writeback is configured in the Microsoft Entra Connect sync client.", + "readOnly": false + }, + "members": { + "$ref": "#/definitions/microsoft.graph.relationship", + "description": "Direct group members, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable." + }, + "owners": { + "$ref": "#/definitions/microsoft.graph.relationship", + "description": "The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue." + } + }, + "required": [ + "displayName", + "mailEnabled", + "mailNickname", + "securityEnabled", + "uniqueName" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.application": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "api": { + "$ref": "#/definitions/microsoft.graph.apiApplication", + "description": "Specifies settings for an application that implements a web API.", + "readOnly": false + }, + "appId": { + "type": "string", + "description": "The unique identifier for the application that is assigned by Microsoft Entra ID. Not nullable. Read-only. Alternate key.", + "readOnly": true + }, + "appRoles": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.appRole" + }, + "description": "The collection of roles defined for the application. With app role assignments, these roles can be assigned to users, groups, or service principals associated with other applications. Not nullable.", + "readOnly": false + }, + "authenticationBehaviors": { + "$ref": "#/definitions/microsoft.graph.authenticationBehaviors", + "description": "The collection of breaking change behaviors related to token issuance that are configured for the application. Authentication behaviors are unset by default (null) and must be explicitly enabled or disabled. Nullable. For more information about authentication behaviors, see Manage application authenticationBehaviors to avoid unverified use of email claims for user identification or authorization.", + "readOnly": false + }, + "certification": { + "$ref": "#/definitions/microsoft.graph.certification", + "description": "Specifies the certification status of the application.", + "readOnly": true + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time the application was registered. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "defaultRedirectUri": { + "type": "string", + "description": "The default redirect URI. If specified and there's no explicit redirect URI in the sign-in request for SAML and OIDC flows, Microsoft Entra ID sends the token to this redirect URI. Microsoft Entra ID also sends the token to this default URI in SAML IdP-initiated single sign-on. The value must match one of the configured redirect URIs for the application.", + "readOnly": false + }, + "description": { + "type": "string", + "description": "Free text field to provide a description of the application object to end users. The maximum allowed size is 1,024 characters.", + "readOnly": false + }, + "disabledByMicrosoftStatus": { + "type": "string", + "description": "Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons may include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement).", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "The display name for the application. Maximum length is 256 characters.", + "readOnly": false + }, + "groupMembershipClaims": { + "type": "string", + "description": "Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following string values: None, SecurityGroup (for security groups and Microsoft Entra roles), All (this gets all security groups, distribution groups, and Microsoft Entra directory roles that the signed-in user is a member of).", + "readOnly": false + }, + "identifierUris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you reference in your API's code, and it must be globally unique across Microsoft Entra ID. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable.", + "readOnly": false + }, + "info": { + "$ref": "#/definitions/microsoft.graph.informationalUrl", + "description": "Basic profile information of the application, such as it's marketing, support, terms of service, and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more information, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps.", + "readOnly": false + }, + "isDeviceOnlyAuthSupported": { + "type": "boolean", + "description": "Specifies whether this application supports device authentication without a user. The default is false.", + "readOnly": false + }, + "isFallbackPublicClient": { + "type": "boolean", + "description": "Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false, which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID can't determine the client application type. For example, the ROPC flow where the application is configured without specifying a redirect URI. In those cases Microsoft Entra ID interprets the application type based on the value of this property.", + "readOnly": false + }, + "keyCredentials": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.keyCredential" + }, + "description": "The collection of key credentials associated with the application. Not nullable.", + "readOnly": false + }, + "logo": { + "type": "string", + "format": "base64url", + "description": "The main logo for the application. Not nullable.", + "readOnly": false + }, + "nativeAuthenticationApisEnabled": { + "$ref": "#/definitions/microsoft.graph.nativeAuthenticationApisEnabled", + "description": "Specifies whether the Native Authentication APIs are enabled for the application. The possible values are: noneand all. Default is none. For more information, see Native Authentication.", + "readOnly": false + }, + "notes": { + "type": "string", + "description": "Notes relevant for the management of the application.", + "readOnly": false + }, + "optionalClaims": { + "$ref": "#/definitions/microsoft.graph.optionalClaims", + "description": "Application developers can configure optional claims in their Microsoft Entra applications to specify the claims that are sent to their application by the Microsoft security token service. For more information, see How to: Provide optional claims to your app.", + "readOnly": false + }, + "parentalControlSettings": { + "$ref": "#/definitions/microsoft.graph.parentalControlSettings", + "description": "Specifies parental control settings for an application.", + "readOnly": false + }, + "passwordCredentials": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.passwordCredential" + }, + "description": "The collection of password credentials associated with the application. Not nullable.", + "readOnly": false + }, + "publicClient": { + "$ref": "#/definitions/microsoft.graph.publicClientApplication", + "description": "Specifies settings for installed clients such as desktop or mobile devices.", + "readOnly": false + }, + "publisherDomain": { + "type": "string", + "description": "The verified publisher domain for the application. Read-only.", + "readOnly": true + }, + "requestSignatureVerification": { + "$ref": "#/definitions/microsoft.graph.requestSignatureVerification", + "description": "Specifies whether this application requires Microsoft Entra ID to verify the signed authentication requests.", + "readOnly": false + }, + "requiredResourceAccess": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.requiredResourceAccess" + }, + "description": "Specifies the resources that the application needs to access. This property also specifies the set of delegated permissions and application roles that it needs for each of those resources. This configuration of access to the required resources drives the consent experience. No more than 50 resource services (APIs) can be configured. Beginning mid-October 2021, the total number of required permissions must not exceed 400. For more information, see Limits on requested permissions per app. Not nullable.", + "readOnly": false + }, + "samlMetadataUrl": { + "type": "string", + "description": "The URL where the service exposes SAML metadata for federation. This property is valid only for single-tenant applications. Nullable.", + "readOnly": false + }, + "serviceManagementReference": { + "type": "string", + "description": "References application or service contact information from a Service or Asset Management database. Nullable.", + "readOnly": false + }, + "servicePrincipalLockConfiguration": { + "$ref": "#/definitions/microsoft.graph.servicePrincipalLockConfiguration", + "description": "Specifies whether sensitive properties of a multitenant application should be locked for editing after the application is provisioned in a tenant. Nullable. null by default.", + "readOnly": false + }, + "signInAudience": { + "type": "string", + "description": "Specifies the Microsoft accounts that are supported for the current application. The possible values are: AzureADMyOrg (default), AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount, and PersonalMicrosoftAccount. See more in the table. The value of this object also limits the number of permissions an app can request. For more information, see Limits on requested permissions per app. The value for this property has implications on other app object properties. As a result, if you change this property, you may need to change other properties first.", + "readOnly": false + }, + "spa": { + "$ref": "#/definitions/microsoft.graph.spaApplication", + "description": "Specifies settings for a single-page application, including sign out URLs and redirect URIs for authorization codes and access tokens.", + "readOnly": false + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Custom strings that can be used to categorize and identify the application. Not nullable.", + "readOnly": false + }, + "tokenEncryptionKeyId": { + "type": "string", + "format": "uuid", + "description": "Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID encrypts all the tokens it emits by using the key this property points to. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user.", + "readOnly": false + }, + "uniqueName": { + "type": "string", + "description": "The unique identifier that can be assigned to an application and used as an alternate key. Immutable.", + "readOnly": false, + "x-ms-graph-key": true, + "x-constant-key": true + }, + "verifiedPublisher": { + "$ref": "#/definitions/microsoft.graph.verifiedPublisher", + "description": "Specifies the verified publisher of the application. For more information about how publisher verification helps support application security, trustworthiness, and compliance, see Publisher verification.", + "readOnly": true + }, + "web": { + "$ref": "#/definitions/microsoft.graph.webApplication", + "description": "Specifies settings for a web application.", + "readOnly": false + }, + "windows": { + "$ref": "#/definitions/microsoft.graph.windowsApplication", + "description": "Specifies settings for apps running Microsoft Windows and published in the Microsoft Store or Xbox games store.", + "readOnly": false + }, + "owners": { + "$ref": "#/definitions/microsoft.graph.relationship", + "description": "Directory objects that are owners of this application. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable." + } + }, + "required": [ + "displayName", + "uniqueName" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.servicePrincipal": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "accountEnabled": { + "type": "boolean", + "description": "true if the service principal account is enabled; otherwise, false. If set to false, then no users are able to sign in to this app, even if they're assigned to it.", + "readOnly": false + }, + "addIns": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.addIn" + }, + "description": "Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on.", + "readOnly": false + }, + "alternativeNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Used to retrieve service principals by subscription, identify resource group and full resource IDs for managed identities.", + "readOnly": false + }, + "appDescription": { + "type": "string", + "description": "The description exposed by the associated application.", + "readOnly": false + }, + "appDisplayName": { + "type": "string", + "description": "The display name exposed by the associated application. Maximum length is 256 characters.", + "readOnly": false + }, + "appId": { + "type": "string", + "description": "The unique identifier for the associated application (its appId property). Alternate key.", + "readOnly": false, + "x-ms-graph-key": true + }, + "applicationTemplateId": { + "type": "string", + "description": "Unique identifier of the applicationTemplate. Read-only. null if the app wasn't created from an application template.", + "readOnly": true + }, + "appOwnerOrganizationId": { + "type": "string", + "format": "uuid", + "description": "Contains the tenant ID where the application is registered. This is applicable only to service principals backed by applications.", + "readOnly": true + }, + "appRoleAssignmentRequired": { + "type": "boolean", + "description": "Specifies whether users or other service principals need to be granted an app role assignment for this service principal before users can sign in or apps can get tokens. The default value is false. Not nullable.", + "readOnly": false + }, + "appRoles": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.appRole" + }, + "description": "The roles exposed by the application, which this service principal represents. For more information, see the appRoles property definition on the application entity. Not nullable.", + "readOnly": false + }, + "description": { + "type": "string", + "description": "Free text field to provide an internal end-user facing description of the service principal. End-user portals such MyApps displays the application description in this field. The maximum allowed size is 1,024 characters.", + "readOnly": false + }, + "disabledByMicrosoftStatus": { + "type": "string", + "description": "Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons may include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement).", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "The display name for the service principal.", + "readOnly": false + }, + "homepage": { + "type": "string", + "description": "Home page or landing page of the application.", + "readOnly": false + }, + "info": { + "$ref": "#/definitions/microsoft.graph.informationalUrl", + "description": "Basic profile information of the acquired application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps.", + "readOnly": false + }, + "keyCredentials": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.keyCredential" + }, + "description": "The collection of key credentials associated with the service principal. Not nullable.", + "readOnly": false + }, + "loginUrl": { + "type": "string", + "description": "Specifies the URL where the service provider redirects the user to Microsoft Entra ID to authenticate. Microsoft Entra ID uses the URL to launch the application from Microsoft 365 or the Microsoft Entra My Apps. When blank, Microsoft Entra ID performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Microsoft Entra My Apps, or the Microsoft Entra SSO URL.", + "readOnly": false + }, + "logoutUrl": { + "type": "string", + "description": "Specifies the URL that the Microsoft's authorization service uses to sign out a user using OpenId Connect front-channel, back-channel, or SAML sign out protocols.", + "readOnly": false + }, + "notes": { + "type": "string", + "description": "Free text field to capture information about the service principal, typically used for operational purposes. Maximum allowed size is 1,024 characters.", + "readOnly": false + }, + "notificationEmailAddresses": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the list of email addresses where Microsoft Entra ID sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Microsoft Entra Gallery applications.", + "readOnly": false + }, + "passwordCredentials": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.passwordCredential" + }, + "description": "The collection of password credentials associated with the service principal. Not nullable.", + "readOnly": false + }, + "preferredSingleSignOnMode": { + "type": "string", + "description": "Specifies the single sign-on mode configured for this application. Microsoft Entra ID uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Microsoft Entra My Apps. The supported values are password, saml, notSupported, and oidc. Note: This field might be null for older SAML apps and for OIDC applications where it isn't set automatically.", + "readOnly": false + }, + "preferredTokenSigningKeyEndDateTime": { + "type": "string", + "format": "date-time", + "description": "Specifies the expiration date of the keyCredential used for token signing, marked by preferredTokenSigningKeyThumbprint. Updating this attribute isn't currently supported. For details, see ServicePrincipal property differences.", + "readOnly": false + }, + "preferredTokenSigningKeyThumbprint": { + "type": "string", + "description": "This property can be used on SAML applications (apps that have preferredSingleSignOnMode set to saml) to control which certificate is used to sign the SAML responses. For applications that aren't SAML, don't write or otherwise rely on this property.", + "readOnly": false + }, + "publishedPermissionScopes": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.permissionScope" + }, + "description": "The delegated permissions exposed by the application. For more information, see the oauth2PermissionScopes property on the application entity's api property. Not nullable. Note: This property is named oauth2PermissionScopes in v1.0.", + "readOnly": false + }, + "publisherName": { + "type": "string", + "description": "The name of the Microsoft Entra tenant that published the application.", + "readOnly": false + }, + "replyUrls": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application. Not nullable.", + "readOnly": false + }, + "samlMetadataUrl": { + "type": "string", + "description": "The url where the service exposes SAML metadata for federation.", + "readOnly": false + }, + "samlSingleSignOnSettings": { + "$ref": "#/definitions/microsoft.graph.samlSingleSignOnSettings", + "description": "The collection for settings related to saml single sign-on.", + "readOnly": false + }, + "servicePrincipalNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Contains the list of identifiersUris, copied over from the associated application. More values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI that is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable.", + "readOnly": false + }, + "servicePrincipalType": { + "type": "string", + "description": "Identifies if the service principal represents an application or a managed identity. This is set by Microsoft Entra ID internally. For a service principal that represents an application this is set as Application. For a service principal that represents a managed identity this is set as ManagedIdentity. The SocialIdp type is for internal use.", + "readOnly": false + }, + "signInAudience": { + "type": "string", + "description": "Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multitenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only.", + "readOnly": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Custom strings that can be used to categorize and identify the service principal. Not nullable.", + "readOnly": false + }, + "tokenEncryptionKeyId": { + "type": "string", + "format": "uuid", + "description": "Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user.", + "readOnly": false + }, + "verifiedPublisher": { + "$ref": "#/definitions/microsoft.graph.verifiedPublisher", + "description": "Specifies the verified publisher of the application that's linked to this service principal.", + "readOnly": false + }, + "owners": { + "$ref": "#/definitions/microsoft.graph.relationship", + "description": "Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object." + } + }, + "required": [ + "appId" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.federatedIdentityCredential": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.entity" + }, + { + "type": "object", + "properties": { + "audiences": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Microsoft Entra ID. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Microsoft Entra ID in your external identity provider and has no fixed value across identity providers - you may need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required.", + "readOnly": false + }, + "claimsMatchingExpression": { + "$ref": "#/definitions/microsoft.graph.federatedIdentityExpression", + "description": "Nullable. Defaults to null if not set. Enables the use of claims matching expressions against specified claims. If claimsMatchingExpression is defined, subject must be null. For the list of supported expression syntax and claims, visit the Flexible FIC reference.", + "readOnly": false + }, + "description": { + "type": "string", + "description": "The un-validated, user-provided description of the federated identity credential. It has a limit of 600 characters. Optional.", + "readOnly": false + }, + "issuer": { + "type": "string", + "description": "The URL of the external identity provider and must match the issuer claim of the external token being exchanged. The combination of the values of issuer and subject must be unique on the app. It has a limit of 600 characters. Required.", + "readOnly": false + }, + "name": { + "type": "string", + "description": "The unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. It is immutable once created. Alternate key. Required. Not nullable.", + "readOnly": false, + "x-ms-graph-key": true + }, + "subject": { + "type": "string", + "description": "Nullable. Defaults to null if not set. The identifier of the external software workload within the external identity provider. Like the audience value, it has no fixed format, as each identity provider uses their own - sometimes a GUID, sometimes a colon delimited identifier, sometimes arbitrary strings. The value here must match the sub claim within the token presented to Microsoft Entra ID. The combination of issuer and subject must be unique on the app. It has a limit of 600 characters. If subject is defined, claimsMatchingExpression must be null.", + "readOnly": false + } + }, + "required": [ + "audiences", + "issuer", + "name" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.oAuth2PermissionGrant": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.entity" + }, + { + "type": "object", + "properties": { + "clientId": { + "type": "string", + "description": "The object id (not appId) of the client service principal for the application that is authorized to act on behalf of a signed-in user when accessing an API. Required.", + "readOnly": false + }, + "consentType": { + "type": "string", + "description": "Indicates whether authorization is granted for the client application to impersonate all users or only a specific user. AllPrincipals indicates authorization to impersonate all users. Principal indicates authorization to impersonate a specific user. Consent on behalf of all users can be granted by an administrator. Nonadmin users may be authorized to consent on behalf of themselves in some cases, for some delegated permissions. Required.", + "readOnly": false + }, + "principalId": { + "type": "string", + "description": "The id of the user on behalf of whom the client is authorized to access the resource, when consentType is Principal. If consentType is AllPrincipals this value is null. Required when consentType is Principal.", + "readOnly": false + }, + "resourceId": { + "type": "string", + "description": "The id of the resource service principal to which access is authorized. This identifies the API that the client is authorized to attempt to call on behalf of a signed-in user.", + "readOnly": false + }, + "scope": { + "type": "string", + "description": "A space-separated list of the claim values for delegated permissions that should be included in access tokens for the resource application (the API). For example, openid User.Read GroupMember.Read.All. Each claim value should match the value field of one of the delegated permissions defined by the API, listed in the publishedPermissionScopes property of the resource service principal. Must not exceed 3850 characters in length.", + "readOnly": false + } + }, + "required": [ + "clientId", + "consentType", + "resourceId" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.appRoleAssignment": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "appRoleId": { + "type": "string", + "format": "uuid", + "description": "The identifier (id) for the app role that is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application hasn't declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create.", + "readOnly": false + }, + "creationTimestamp": { + "type": "string", + "format": "date-time", + "description": "The time when the app role assignment was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "principalDisplayName": { + "type": "string", + "description": "The display name of the user, group, or service principal that was granted the app role assignment. Maximum length is 256 characters. Read-only.", + "readOnly": true + }, + "principalId": { + "type": "string", + "format": "uuid", + "description": "The unique identifier (id) for the user, security group, or service principal being granted the app role. Security groups with dynamic memberships are supported. Required on create.", + "readOnly": false + }, + "principalType": { + "type": "string", + "description": "The type of the assigned principal. This can either be User, Group, or ServicePrincipal. Read-only.", + "readOnly": true + }, + "resourceDisplayName": { + "type": "string", + "description": "The display name of the resource app's service principal to which the assignment is made. Maximum length is 256 characters.", + "readOnly": false + }, + "resourceId": { + "type": "string", + "format": "uuid", + "description": "The unique identifier (id) for the resource service principal for which the assignment is made. Required on create.", + "readOnly": false + } + }, + "required": [ + "appRoleId", + "principalId", + "resourceId" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.appRole": { + "type": "object", + "properties": { + "allowedMemberTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment to other applications' service principals are also known as application permissions. The 'Application' value is only supported for app roles defined on application entities.", + "readOnly": false + }, + "description": { + "type": "string", + "description": "The description for the app role. This is displayed when the app role is being assigned and, if the app role functions as an application permission, during consent experiences.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "Display name for the permission that appears in the app role assignment and consent experiences.", + "readOnly": false + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Unique role identifier inside the appRoles collection. You must specify a new GUID identifier when you create a new app role.", + "readOnly": false + }, + "isEnabled": { + "type": "boolean", + "description": "When you create or updating an app role, this value must be true. To delete a role, this must first be set to false. At that point, in a subsequent call, this role might be removed. Default value is true.", + "readOnly": false + }, + "origin": { + "type": "string", + "description": "Specifies if the app role is defined on the application object or on the servicePrincipal entity. Must not be included in any POST or PATCH requests. Read-only.", + "readOnly": true + }, + "value": { + "type": "string", + "description": "Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , -. / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z, and a-z. Any other character, including the space character, aren't allowed. May not begin with ..", + "readOnly": false + } + } + }, + "microsoft.graph.informationalUrl": { + "type": "object", + "properties": { + "logoUrl": { + "type": "string", + "description": "CDN URL to the application's logo, Read-only.", + "readOnly": true + }, + "marketingUrl": { + "type": "string", + "description": "Link to the application's marketing page. For example, https://www.contoso.com/app/marketing.", + "readOnly": false + }, + "privacyStatementUrl": { + "type": "string", + "description": "Link to the application's privacy statement. For example, https://www.contoso.com/app/privacy.", + "readOnly": false + }, + "supportUrl": { + "type": "string", + "description": "Link to the application's support page. For example, https://www.contoso.com/app/support.", + "readOnly": false + }, + "termsOfServiceUrl": { + "type": "string", + "description": "Link to the application's terms of service statement. For example, https://www.contoso.com/app/termsofservice.", + "readOnly": false + } + } + }, + "microsoft.graph.passwordCredential": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Friendly name for the password. Optional.", + "readOnly": false + }, + "endDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the password expires represented using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional.", + "readOnly": false + }, + "hint": { + "type": "string", + "description": "Contains the first three characters of the password. Read-only.", + "readOnly": true + }, + "keyId": { + "type": "string", + "format": "uuid", + "description": "The unique identifier for the password.", + "readOnly": false + }, + "secretText": { + "type": "string", + "description": "Read-only; Contains the strong passwords generated by Microsoft Entra ID that are 16-64 characters in length. The generated password value is only returned during the initial POST request to addPassword. There is no way to retrieve this password in the future.", + "readOnly": true + }, + "startDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the password becomes valid. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional.", + "readOnly": false + } + } + }, + "microsoft.graph.windowsApplication": { + "type": "object", + "properties": { + "packageSid": { + "type": "string", + "description": "The package security identifier that Microsoft has assigned the application. Optional. Read-only.", + "readOnly": true + }, + "redirectUris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the URLs where user tokens are sent for sign-in or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. Only available for applications that support the PersonalMicrosoftAccount signInAudience.", + "readOnly": false + } + } + }, + "microsoft.graph.permissionScope": { + "type": "object", + "properties": { + "adminConsentDescription": { + "type": "string", + "description": "A description of the delegated permissions, intended to be read by an administrator granting the permission on behalf of all users. This text appears in tenant-wide admin consent experiences.", + "readOnly": false + }, + "adminConsentDisplayName": { + "type": "string", + "description": "The permission's title, intended to be read by an administrator granting the permission on behalf of all users.", + "readOnly": false + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application.", + "readOnly": false + }, + "isEnabled": { + "type": "boolean", + "description": "When you create or update a permission, this property must be set to true (which is the default). To delete a permission, this property must first be set to false. At that point, in a subsequent call, the permission may be removed.", + "readOnly": false + }, + "type": { + "type": "string", + "description": "The possible values are: User and Admin. Specifies whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator consent should always be required. While Microsoft Graph defines the default consent requirement for each permission, the tenant administrator may override the behavior in their organization (by allowing, restricting, or limiting user consent to this delegated permission). For more information, see Configure how users consent to applications.", + "readOnly": false + }, + "userConsentDescription": { + "type": "string", + "description": "A description of the delegated permissions, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves.", + "readOnly": false + }, + "userConsentDisplayName": { + "type": "string", + "description": "A title for the permission, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves.", + "readOnly": false + }, + "value": { + "type": "string", + "description": "Specifies the value to include in the scp (scope) claim in access tokens. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , -. / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with ..", + "readOnly": false + } + } + }, + "microsoft.graph.directoryObject": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.entity" + }, + { + "type": "object", + "properties": { + "deletedDateTime": { + "type": "string", + "format": "date-time", + "description": "Date and time when this object was deleted. Always null when the object hasn't been deleted.", + "readOnly": true + } + } + } + ] + }, + "microsoft.graph.entity": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The unique identifier for an entity. Read-only.", + "readOnly": true + } + } + }, + "microsoft.graph.cloudLicensing.groupCloudLicensing": { + "type": "object", + "properties": {} + }, + "microsoft.graph.onPremisesProvisioningError": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Category of the provisioning error. Note: Currently, there is only one possible value. Possible value: PropertyConflict - indicates a property value is not unique. Other objects contain the same value for the property.", + "readOnly": false + }, + "occurredDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the error occurred.", + "readOnly": false + }, + "propertyCausingError": { + "type": "string", + "description": "Name of the directory property causing the error. Current possible values: UserPrincipalName or ProxyAddress.", + "readOnly": false + }, + "value": { + "type": "string", + "description": "Value of the property causing the error.", + "readOnly": false + } + } + }, + "microsoft.graph.serviceProvisioningError": { + "type": "object", + "properties": { + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the error occurred.", + "readOnly": false + }, + "isResolved": { + "type": "boolean", + "description": "Indicates whether the Error has been attended to.", + "readOnly": false + }, + "serviceInstance": { + "type": "string", + "description": "Qualified service instance (for example, 'SharePoint/Dublin') that published the service error information.", + "readOnly": false + } + } + }, + "microsoft.graph.groupWritebackConfiguration": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.writebackConfiguration" + }, + { + "type": "object", + "properties": { + "onPremisesGroupType": { + "type": "string", + "description": "Indicates the target on-premises group type the cloud object is written back as. Nullable. The possible values are: universalDistributionGroup, universalSecurityGroup, universalMailEnabledSecurityGroup.If the cloud group is a unified (Microsoft 365) group, this property can be one of the following: universalDistributionGroup, universalSecurityGroup, universalMailEnabledSecurityGroup. Microsoft Entra security groups can be written back as universalSecurityGroup. If isEnabled or the NewUnifiedGroupWritebackDefault group setting is true but this property isn't explicitly configured: Microsoft 365 groups are written back as universalDistributionGroup by defaultSecurity groups are written back as universalSecurityGroup by default.", + "readOnly": false + } + } + } + ] + }, + "microsoft.graph.apiApplication": { + "type": "object", + "properties": { + "acceptMappedClaims": { + "type": "boolean", + "description": "When true, allows an application to use claims mapping without specifying a custom signing key.", + "readOnly": false + }, + "knownClientApplications": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + }, + "description": "Used for bundling consent if you have a solution that contains two parts: a client app and a custom web API app. If you set the appID of the client app to this value, the user only consents once to the client app. Microsoft Entra ID knows that consenting to the client means implicitly consenting to the web API and automatically provisions service principals for both APIs at the same time. Both the client and the web API app must be registered in the same tenant.", + "readOnly": false + }, + "oauth2PermissionScopes": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.permissionScope" + }, + "description": "The definition of the delegated permissions exposed by the web API represented by this application registration. These delegated permissions may be requested by a client application, and may be granted by users or administrators during consent. Delegated permissions are sometimes referred to as OAuth 2.0 scopes.", + "readOnly": false + }, + "preAuthorizedApplications": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.preAuthorizedApplication" + }, + "description": "Lists the client applications that are preauthorized with the specified delegated permissions to access this application's APIs. Users aren't required to consent to any preauthorized application (for the permissions specified). However, any other permissions not listed in preAuthorizedApplications (requested through incremental consent for example) will require user consent.", + "readOnly": false + }, + "requestedAccessTokenVersion": { + "type": "integer", + "format": "int32", + "description": "Specifies the access token version expected by this resource. This changes the version and format of the JWT produced independent of the endpoint or client used to request the access token. The endpoint used, v1.0 or v2.0, is chosen by the client and only impacts the version of id_tokens. Resources need to explicitly configure requestedAccessTokenVersion to indicate the supported access token format. Possible values for requestedAccessTokenVersion are 1, 2, or null. If the value is null, this defaults to 1, which corresponds to the v1.0 endpoint. If signInAudience on the application is configured as AzureADandPersonalMicrosoftAccount or PersonalMicrosoftAccount, the value for this property must be 2.", + "readOnly": false + } + } + }, + "microsoft.graph.authenticationBehaviors": { + "type": "object", + "properties": { + "blockAzureADGraphAccess": { + "type": "boolean", + "description": "If false, allows the app to have extended access to Azure AD Graph until June 30, 2025 when Azure AD Graph is fully retired. For more information on Azure AD retirement updates, see June 2024 update on Azure AD Graph API retirement.", + "readOnly": false + }, + "removeUnverifiedEmailClaim": { + "type": "boolean", + "description": "If true, removes the email claim from tokens sent to an application when the email address's domain can't be verified.", + "readOnly": false + }, + "requireClientServicePrincipal": { + "type": "boolean", + "description": "If true, requires multitenant applications to have a service principal in the resource tenant as part of authorization checks before they're granted access tokens. This property is only modifiable for multitenant resource applications that rely on access from clients without a service principal and had this behavior as set to false by Microsoft. Tenant administrators should respond to security advisories sent through Azure Health Service events and the Microsoft 365 message center.", + "readOnly": false + } + } + }, + "microsoft.graph.certification": { + "type": "object", + "properties": { + "certificationDetailsUrl": { + "type": "string", + "description": "URL that shows certification details for the application.", + "readOnly": false + }, + "certificationExpirationDateTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp when the current certification for the application expires.", + "readOnly": false + }, + "isCertifiedByMicrosoft": { + "type": "boolean", + "description": "Indicates whether the application is certified by Microsoft.", + "readOnly": false + }, + "isPublisherAttested": { + "type": "boolean", + "description": "Indicates whether the application developer or publisher completed Publisher Attestation.", + "readOnly": false + }, + "lastCertificationDateTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp when the certification for the application was most recently added or updated.", + "readOnly": false + } + } + }, + "microsoft.graph.keyCredential": { + "type": "object", + "properties": { + "customKeyIdentifier": { + "type": "string", + "format": "base64url", + "description": "A 40-character binary type that can be used to identify the credential. Optional. When not provided in the payload, defaults to the thumbprint of the certificate.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "The friendly name for the key, with a maximum length of 90 characters. Longer values are accepted but shortened. Optional.", + "readOnly": false + }, + "endDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the credential expires. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.", + "readOnly": false + }, + "key": { + "type": "string", + "format": "base64url", + "description": "Value for the key credential. Should be a Base64 encoded value. From a .cer certificate, you can read the key using the Convert.ToBase64String() method. For more information, see Get the certificate key.", + "readOnly": false + }, + "keyId": { + "type": "string", + "format": "uuid", + "description": "The unique identifier for the key.", + "readOnly": false + }, + "startDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the credential becomes valid.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.", + "readOnly": false + }, + "type": { + "type": "string", + "description": "The type of key credential; for example, Symmetric, AsymmetricX509Cert, or X509CertAndPassword.", + "readOnly": false + }, + "usage": { + "type": "string", + "description": "A string that describes the purpose for which the key can be used; for example, None​, Verify​, PairwiseIdentifier​, Delegation​, Decrypt​, Encrypt​, HashedIdentifier​, SelfSignedTls, or Sign. If usage is Sign​, the type should be X509CertAndPassword​, and the passwordCredentials​ for signing should be defined.", + "readOnly": false + } + } + }, + "microsoft.graph.optionalClaims": { + "type": "object", + "properties": { + "accessToken": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.optionalClaim" + }, + "description": "The optional claims returned in the JWT access token.", + "readOnly": false + }, + "idToken": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.optionalClaim" + }, + "description": "The optional claims returned in the JWT ID token.", + "readOnly": false + }, + "saml2Token": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.optionalClaim" + }, + "description": "The optional claims returned in the SAML token.", + "readOnly": false + } + } + }, + "microsoft.graph.parentalControlSettings": { + "type": "object", + "properties": { + "countriesBlockedForMinors": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the two-letter ISO country codes. Access to the application will be blocked for minors from the countries specified in this list.", + "readOnly": false + }, + "legalAgeGroupRule": { + "type": "string", + "description": "Specifies the legal age group rule that applies to users of the app. Can be set to one of the following values: ValueDescriptionAllowDefault. Enforces the legal minimum. This means parental consent is required for minors in the European Union and Korea.RequireConsentForPrivacyServicesEnforces the user to specify date of birth to comply with COPPA rules. RequireConsentForMinorsRequires parental consent for ages below 18, regardless of country/region minor rules.RequireConsentForKidsRequires parental consent for ages below 14, regardless of country/region minor rules.BlockMinorsBlocks minors from using the app.", + "readOnly": false + } + } + }, + "microsoft.graph.publicClientApplication": { + "type": "object", + "properties": { + "redirectUris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. For iOS and macOS apps, specify the value following the syntax msauth.{BUNDLEID}://auth, replacing '{BUNDLEID}'. For example, if the bundle ID is com.microsoft.identitysample.MSALiOS, the URI is msauth.com.microsoft.identitysample.MSALiOS://auth.", + "readOnly": false + } + } + }, + "microsoft.graph.requestSignatureVerification": { + "type": "object", + "properties": { + "allowedWeakAlgorithms": { + "$ref": "#/definitions/microsoft.graph.weakAlgorithms", + "description": "Specifies whether this application accepts weak algorithms. The possible values are: rsaSha1, unknownFutureValue.", + "readOnly": false + }, + "isSignedRequestRequired": { + "type": "boolean", + "description": "Specifies whether signed authentication requests for this application should be required.", + "readOnly": false + } + } + }, + "microsoft.graph.requiredResourceAccess": { + "type": "object", + "properties": { + "resourceAccess": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.resourceAccess" + }, + "description": "The list of OAuth2.0 permission scopes and app roles that the application requires from the specified resource.", + "readOnly": false + }, + "resourceAppId": { + "type": "string", + "description": "The unique identifier for the resource that the application requires access to. This should be equal to the appId declared on the target resource application.", + "readOnly": false + } + } + }, + "microsoft.graph.servicePrincipalLockConfiguration": { + "type": "object", + "properties": { + "allProperties": { + "type": "boolean", + "description": "Enables locking all sensitive properties. The sensitive properties are keyCredentials, passwordCredentials, and tokenEncryptionKeyId.", + "readOnly": false + }, + "credentialsWithUsageSign": { + "type": "boolean", + "description": "Locks the keyCredentials and passwordCredentials properties for modification where credential usage type is Sign.", + "readOnly": false + }, + "credentialsWithUsageVerify": { + "type": "boolean", + "description": "Locks the keyCredentials and passwordCredentials properties for modification where credential usage type is Verify. This locks OAuth service principals.", + "readOnly": false + }, + "isEnabled": { + "type": "boolean", + "description": "Enables or disables service principal lock configuration. To allow the sensitive properties to be updated, update this property to false to disable the lock on the service principal.", + "readOnly": false + }, + "tokenEncryptionKeyId": { + "type": "boolean", + "description": "Locks the tokenEncryptionKeyId property for modification on the service principal.", + "readOnly": false + } + } + }, + "microsoft.graph.spaApplication": { + "type": "object", + "properties": { + "redirectUris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent.", + "readOnly": false + } + } + }, + "microsoft.graph.verifiedPublisher": { + "type": "object", + "properties": { + "addedDateTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp when the verified publisher was first added or most recently updated.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "The verified publisher name from the app publisher's Microsoft Partner Network (MPN) account.", + "readOnly": false + }, + "verifiedPublisherId": { + "type": "string", + "description": "The ID of the verified publisher from the app publisher's Partner Center account.", + "readOnly": false + } + } + }, + "microsoft.graph.webApplication": { + "type": "object", + "properties": { + "homePageUrl": { + "type": "string", + "description": "Home page or landing page of the application.", + "readOnly": false + }, + "implicitGrantSettings": { + "$ref": "#/definitions/microsoft.graph.implicitGrantSettings", + "description": "Specifies whether this web application can request tokens using the OAuth 2.0 implicit flow.", + "readOnly": false + }, + "logoutUrl": { + "type": "string", + "description": "Specifies the URL that will be used by Microsoft's authorization service to logout a user using front-channel, back-channel or SAML logout protocols.", + "readOnly": false + }, + "oauth2AllowImplicitFlow": { + "type": "boolean", + "description": "", + "readOnly": false + }, + "redirectUris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent.", + "readOnly": false + }, + "redirectUriSettings": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.redirectUriSettings" + }, + "description": "Specifies the index of the URLs where user tokens are sent for sign-in. This is only valid for applications using SAML.", + "readOnly": false + } + } + }, + "microsoft.graph.addIn": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The unique identifier for the addIn object.", + "readOnly": false + }, + "properties": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.keyValue" + }, + "description": "The collection of key-value pairs that define parameters that the consuming service can use or call. You must specify this property when performing a POST or a PATCH operation on the addIns collection. Required.", + "readOnly": false + }, + "type": { + "type": "string", + "description": "The unique name for the functionality exposed by the app.", + "readOnly": false + } + } + }, + "microsoft.graph.samlSingleSignOnSettings": { + "type": "object", + "properties": { + "relayState": { + "type": "string", + "description": "The relative URI the service provider would redirect to after completion of the single sign-on flow.", + "readOnly": false + } + } + }, + "microsoft.graph.federatedIdentityExpression": { + "type": "object", + "properties": { + "languageVersion": { + "type": "integer", + "format": "int32", + "description": "Indicated the language version to be used. Should always be set to 1. Required.", + "readOnly": false + }, + "value": { + "type": "string", + "description": "Indicates the configured expression. Required.", + "readOnly": false + } + } + }, + "microsoft.graph.writebackConfiguration": { + "type": "object", + "properties": { + "isEnabled": { + "type": "boolean", + "description": "Indicates whether writeback of cloud groups to on-premise Active Directory is enabled. Default value is true for Microsoft 365 groups and false for security groups.", + "readOnly": false + } + } + }, + "microsoft.graph.preAuthorizedApplication": { + "type": "object", + "properties": { + "appId": { + "type": "string", + "description": "The unique identifier for the client application.", + "readOnly": false + }, + "permissionIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The unique identifier for the scopes the client application is granted.", + "readOnly": false + } + } + }, + "microsoft.graph.optionalClaim": { + "type": "object", + "properties": { + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Additional properties of the claim. If a property exists in this collection, it modifies the behavior of the optional claim specified in the name property.", + "readOnly": false + }, + "essential": { + "type": "boolean", + "description": "If the value is true, the claim specified by the client is necessary to ensure a smooth authorization experience for the specific task requested by the end user. The default value is false.", + "readOnly": false + }, + "name": { + "type": "string", + "description": "The name of the optional claim.", + "readOnly": false + }, + "source": { + "type": "string", + "description": "The source (directory object) of the claim. There are predefined claims and user-defined claims from extension properties. If the source value is null, the claim is a predefined optional claim. If the source value is user, the value in the name property is the extension property from the user object.", + "readOnly": false + } + } + }, + "microsoft.graph.resourceAccess": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The unique identifier of an app role or delegated permission exposed by the resource application. For delegated permissions, this should match the id property of one of the delegated permissions in the oauth2PermissionScopes collection of the resource application's service principal. For app roles (application permissions), this should match the id property of an app role in the appRoles collection of the resource application's service principal.", + "readOnly": false + }, + "type": { + "type": "string", + "description": "Specifies whether the id property references a delegated permission or an app role (application permission). The possible values are: Scope (for delegated permissions) or Role (for app roles).", + "readOnly": false + } + } + }, + "microsoft.graph.implicitGrantSettings": { + "type": "object", + "properties": { + "enableAccessTokenIssuance": { + "type": "boolean", + "description": "Specifies whether this web application can request an access token using the OAuth 2.0 implicit flow.", + "readOnly": false + }, + "enableIdTokenIssuance": { + "type": "boolean", + "description": "Specifies whether this web application can request an ID token using the OAuth 2.0 implicit flow.", + "readOnly": false + } + } + }, + "microsoft.graph.redirectUriSettings": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int32", + "description": "Identifies the specific URI within the redirectURIs collection in SAML SSO flows. Defaults to null. The index is unique across all the redirectUris for the application.", + "readOnly": false + }, + "uri": { + "type": "string", + "description": "Specifies the URI that tokens are sent to.", + "readOnly": false + } + } + }, + "microsoft.graph.keyValue": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Key.", + "readOnly": false + }, + "value": { + "type": "string", + "description": "Value.", + "readOnly": false + } + } + }, + "microsoft.graph.nativeAuthenticationApisEnabled": { + "type": "string", + "enum": [ + "none", + "all" + ] + }, + "microsoft.graph.weakAlgorithms": { + "type": "string", + "enum": [ + "rsaSha1" + ] + } + }, + "paths": { + "/{rootScope}/providers/Microsoft.Graph/users/{userId}": { + "get": { + "tags": [ + "users" + ], + "description": "Get a user", + "operationId": "users_get", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the user", + "name": "userId", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "user get successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.user" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/groups/{groupId}": { + "put": { + "tags": [ + "groups" + ], + "description": "Create or update a group", + "operationId": "groups_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the group", + "name": "groupId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "group", + "description": "The group to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.group" + } + } + ], + "responses": { + "200": { + "description": "group created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.group" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/applications/{applicationId}": { + "put": { + "tags": [ + "applications" + ], + "description": "Create or update a application", + "operationId": "applications_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the application", + "name": "applicationId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "application", + "description": "The application to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.application" + } + } + ], + "responses": { + "200": { + "description": "application created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.application" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/servicePrincipals/{servicePrincipalId}": { + "put": { + "tags": [ + "servicePrincipals" + ], + "description": "Create or update a servicePrincipal", + "operationId": "servicePrincipals_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the servicePrincipal", + "name": "servicePrincipalId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "servicePrincipal", + "description": "The servicePrincipal to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.servicePrincipal" + } + } + ], + "responses": { + "200": { + "description": "servicePrincipal created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.servicePrincipal" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/applications/{applicationsId}/federatedIdentityCredentials/{federatedIdentityCredentialId}": { + "put": { + "tags": [ + "federatedIdentityCredentials" + ], + "description": "Create or update a federatedIdentityCredential", + "operationId": "federatedIdentityCredentials_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the federatedIdentityCredential", + "name": "federatedIdentityCredentialId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "federatedIdentityCredential", + "description": "The federatedIdentityCredential to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.federatedIdentityCredential" + } + }, + { + "in": "path", + "description": "The id of the applications", + "name": "applicationsId", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "federatedIdentityCredential created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.federatedIdentityCredential" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/oauth2PermissionGrants/{oAuth2PermissionGrantId}": { + "put": { + "tags": [ + "oauth2PermissionGrants" + ], + "description": "Create or update a oAuth2PermissionGrant", + "operationId": "oauth2PermissionGrants_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the oAuth2PermissionGrant", + "name": "oAuth2PermissionGrantId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "oAuth2PermissionGrant", + "description": "The oAuth2PermissionGrant to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.oAuth2PermissionGrant" + } + } + ], + "responses": { + "200": { + "description": "oAuth2PermissionGrant created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.oAuth2PermissionGrant" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/appRoleAssignedTo/{appRoleAssignmentId}": { + "put": { + "tags": [ + "appRoleAssignedTo" + ], + "description": "Create or update a appRoleAssignment", + "operationId": "appRoleAssignedTo_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the appRoleAssignment", + "name": "appRoleAssignmentId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "appRoleAssignment", + "description": "The appRoleAssignment to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.appRoleAssignment" + } + } + ], + "responses": { + "200": { + "description": "appRoleAssignment created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.appRoleAssignment" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/swagger-generation/output/microsoftgraph-v1.0-1.0.1.json b/src/swagger-generation/output/microsoftgraph-v1.0-1.0.1.json new file mode 100644 index 0000000..406107c --- /dev/null +++ b/src/swagger-generation/output/microsoftgraph-v1.0-1.0.1.json @@ -0,0 +1,1965 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft Graph", + "version": "v1.0" + }, + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "definitions": { + "microsoft.graph.relationshipSemantics": { + "type": "string", + "enum": [ + "append", + "replace" + ] + }, + "microsoft.graph.relationship": { + "type": "object", + "properties": { + "relationshipSemantics": { + "$ref": "#/definitions/microsoft.graph.relationshipSemantics", + "description": "Specifies the semantics used by the Microsoft Graph Bicep extension to process the relationships. The 'append' semantics means that the relationship items in the template are added to the existing list. The 'replace' semantics means that the relationship items in the template will replace all existing items in the Entra resource. The default value (if not set) is 'append'" + }, + "relationships": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The list of object ids to be included in the relationship." + } + }, + "required": [ + "relationships" + ] + }, + "microsoft.graph.user": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "businessPhones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The telephone numbers for the user. NOTE: Although it's a string collection, only one number can be set for this property. Read-only for users synced from the on-premises directory.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "The name displayed in the address book for the user. This value is usually the combination of the user's first name, middle initial, and family name. This property is required when a user is created and it can't be cleared during updates. Maximum length is 256 characters.", + "readOnly": false + }, + "givenName": { + "type": "string", + "description": "The given name (first name) of the user. Maximum length is 64 characters.", + "readOnly": false + }, + "jobTitle": { + "type": "string", + "description": "The user's job title. Maximum length is 128 characters.", + "readOnly": false + }, + "mail": { + "type": "string", + "description": "The SMTP address for the user, for example, jeff@contoso.com. Changes to this property update the user's proxyAddresses collection to include the value as an SMTP address. This property can't contain accent characters. NOTE: We don't recommend updating this property for Azure AD B2C user profiles. Use the otherMails property instead.", + "readOnly": false + }, + "mobilePhone": { + "type": "string", + "description": "The primary cellular telephone number for the user. Read-only for users synced from the on-premises directory. Maximum length is 64 characters.", + "readOnly": false + }, + "officeLocation": { + "type": "string", + "description": "The office location in the user's place of business.", + "readOnly": false + }, + "preferredLanguage": { + "type": "string", + "description": "The preferred language for the user. The preferred language format is based on RFC 4646. The name is a combination of an ISO 639 two-letter lowercase culture code associated with the language, and an ISO 3166 two-letter uppercase subculture code associated with the country or region. Example: 'en-US', or 'es-ES'.", + "readOnly": false + }, + "surname": { + "type": "string", + "description": "The user's surname (family name or last name). Maximum length is 64 characters.", + "readOnly": false + }, + "userPrincipalName": { + "type": "string", + "description": "The user principal name (UPN) of the user. The UPN is an Internet-style sign-in name for the user based on the Internet standard RFC 822. By convention, this value should map to the user's email name. The general format is alias@domain, where the domain must be present in the tenant's collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization.NOTE: This property can't contain accent characters. Only the following characters are allowed A - Z, a - z, 0 - 9, '. - _ ! # ^ ~. For the complete list of allowed characters, see username policies.", + "readOnly": false, + "x-ms-graph-key": true, + "x-constant-key": true + } + }, + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.group": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "classification": { + "type": "string", + "description": "Describes a classification for the group (such as low, medium, or high business impact).", + "readOnly": false + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "Timestamp of when the group was created. The value can't be modified and is automatically populated when the group is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "description": { + "type": "string", + "description": "An optional description for the group.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "The display name for the group. This property is required when a group is created and can't be cleared during updates. Maximum length is 256 characters.", + "readOnly": false + }, + "expirationDateTime": { + "type": "string", + "format": "date-time", + "description": "Timestamp of when the group is set to expire. It's null for security groups, but for Microsoft 365 groups, it represents when the group is set to expire as defined in the groupLifecyclePolicy. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "groupTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the group type and its membership. If the collection contains Unified, the group is a Microsoft 365 group; otherwise, it's either a security group or a distribution group. For details, see groups overview.If the collection includes DynamicMembership, the group has dynamic membership; otherwise, membership is static.", + "readOnly": false + }, + "isAssignableToRole": { + "type": "boolean", + "description": "Indicates whether this group can be assigned to a Microsoft Entra role. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group can't be a dynamic group (that is, groupTypes can't contain DynamicMembership). Only callers with at least the Privileged Role Administrator role can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Microsoft Entra role assignmentsUsing this feature requires a Microsoft Entra ID P1 license.", + "readOnly": false + }, + "isManagementRestricted": { + "type": "boolean", + "description": "Indicates whether the group is a member of a restricted management administrative unit. Read-only. To manage a group member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. See [restricted management administrative units](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/admin-units-restricted-management).", + "readOnly": true + }, + "mail": { + "type": "string", + "description": "The SMTP address for the group, for example, 'serviceadmins@contoso.com'. Read-only.", + "readOnly": true + }, + "mailEnabled": { + "type": "boolean", + "description": "Specifies whether the group is mail-enabled. Required.", + "readOnly": false + }, + "mailNickname": { + "type": "string", + "description": "The mail alias for the group, unique for Microsoft 365 groups in the organization. Maximum length is 64 characters. This property can contain only characters in the ASCII character set 0 - 127 except the following characters: @ () / [] ' ; : <> , SPACE. Required.", + "readOnly": false + }, + "membershipRule": { + "type": "string", + "description": "The rule that determines members for this group if the group is a dynamic group (groupTypes contains DynamicMembership). For more information about the syntax of the membership rule, see Membership Rules syntax.", + "readOnly": false + }, + "membershipRuleProcessingState": { + "type": "string", + "description": "Indicates whether the dynamic membership processing is on or paused. Possible values are On or Paused.", + "readOnly": false + }, + "onPremisesDomainName": { + "type": "string", + "description": "Contains the on-premises domain FQDN, also called dnsDomainName synchronized from the on-premises directory. Read-only.", + "readOnly": true + }, + "onPremisesLastSyncDateTime": { + "type": "string", + "format": "date-time", + "description": "Indicates the last time at which the group was synced with the on-premises directory. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "onPremisesNetBiosName": { + "type": "string", + "description": "Contains the on-premises netBios name synchronized from the on-premises directory. Read-only.", + "readOnly": true + }, + "onPremisesProvisioningErrors": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.onPremisesProvisioningError" + }, + "description": "Errors when using Microsoft synchronization product during provisioning.", + "readOnly": true + }, + "onPremisesSamAccountName": { + "type": "string", + "description": "Contains the on-premises SAM account name synchronized from the on-premises directory. Read-only.", + "readOnly": true + }, + "onPremisesSecurityIdentifier": { + "type": "string", + "description": "Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Read-only.", + "readOnly": true + }, + "onPremisesSyncEnabled": { + "type": "boolean", + "description": "true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Read-only.", + "readOnly": true + }, + "preferredDataLocation": { + "type": "string", + "description": "The preferred data location for the Microsoft 365 group. By default, the group inherits the group creator's preferred data location. To set this property, the calling app must be granted the Directory.ReadWrite.All permission and the user be assigned at least one of the following Microsoft Entra roles: User Account Administrator Directory Writer Exchange Administrator SharePoint Administrator For more information about this property, see OneDrive Online Multi-Geo. Nullable.", + "readOnly": false + }, + "preferredLanguage": { + "type": "string", + "description": "The preferred language for a Microsoft 365 group. Should follow ISO 639-1 Code; for example, en-US.", + "readOnly": false + }, + "proxyAddresses": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Email addresses for the group that direct to the same group mailbox. For example: ['SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com']. The any operator is required to filter expressions on multi-valued properties. Read-only. Not nullable.", + "readOnly": true + }, + "renewedDateTime": { + "type": "string", + "format": "date-time", + "description": "Timestamp of when the group was last renewed. This value can't be modified directly and is only updated via the renew service action. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "securityEnabled": { + "type": "boolean", + "description": "Specifies whether the group is a security group. Required.", + "readOnly": false + }, + "securityIdentifier": { + "type": "string", + "description": "Security identifier of the group, used in Windows scenarios. Read-only.", + "readOnly": true + }, + "serviceProvisioningErrors": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.serviceProvisioningError" + }, + "description": "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object.", + "readOnly": true + }, + "theme": { + "type": "string", + "description": "Specifies a Microsoft 365 group's color theme. Possible values are Teal, Purple, Green, Blue, Pink, Orange, or Red.", + "readOnly": false + }, + "uniqueName": { + "type": "string", + "description": "The unique identifier that can be assigned to a group and used as an alternate key. Immutable.", + "readOnly": false, + "x-ms-graph-key": true, + "x-constant-key": true + }, + "visibility": { + "type": "string", + "description": "Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value isn't specified during group creation on Microsoft Graph, a security group is created as Private by default, and the Microsoft 365 group is Public. Groups assignable to roles are always Private. To learn more, see group visibility options. Nullable.", + "readOnly": false + }, + "members": { + "$ref": "#/definitions/microsoft.graph.relationship", + "description": "The members of this group, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable." + }, + "owners": { + "$ref": "#/definitions/microsoft.graph.relationship", + "description": "The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue." + } + }, + "required": [ + "displayName", + "mailEnabled", + "mailNickname", + "securityEnabled", + "uniqueName" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.application": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "addIns": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.addIn" + }, + "description": "Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams can set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on.", + "readOnly": false + }, + "api": { + "$ref": "#/definitions/microsoft.graph.apiApplication", + "description": "Specifies settings for an application that implements a web API.", + "readOnly": false + }, + "appId": { + "type": "string", + "description": "The unique identifier for the application that is assigned to an application by Microsoft Entra ID. Not nullable. Read-only. Alternate key.", + "readOnly": true + }, + "applicationTemplateId": { + "type": "string", + "description": "Unique identifier of the applicationTemplate. Read-only. null if the app wasn't created from an application template.", + "readOnly": true + }, + "appRoles": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.appRole" + }, + "description": "The collection of roles defined for the application. With app role assignments, these roles can be assigned to users, groups, or service principals associated with other applications. Not nullable.", + "readOnly": false + }, + "authenticationBehaviors": { + "$ref": "#/definitions/microsoft.graph.authenticationBehaviors", + "description": "", + "readOnly": false + }, + "certification": { + "$ref": "#/definitions/microsoft.graph.certification", + "description": "Specifies the certification status of the application.", + "readOnly": true + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time the application was registered. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "defaultRedirectUri": { + "type": "string", + "description": "", + "readOnly": false + }, + "description": { + "type": "string", + "description": "Free text field to provide a description of the application object to end users. The maximum allowed size is 1,024 characters.", + "readOnly": false + }, + "disabledByMicrosoftStatus": { + "type": "string", + "description": "Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement).", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "The display name for the application. Maximum length is 256 characters.", + "readOnly": false + }, + "groupMembershipClaims": { + "type": "string", + "description": "Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following valid string values: None, SecurityGroup (for security groups and Microsoft Entra roles), All (this gets all of the security groups, distribution groups, and Microsoft Entra directory roles that the signed-in user is a member of).", + "readOnly": false + }, + "identifierUris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you reference in your API's code, and it must be globally unique across Microsoft Entra ID. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable.", + "readOnly": false + }, + "info": { + "$ref": "#/definitions/microsoft.graph.informationalUrl", + "description": "Basic profile information of the application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps.", + "readOnly": false + }, + "isDeviceOnlyAuthSupported": { + "type": "boolean", + "description": "Specifies whether this application supports device authentication without a user. The default is false.", + "readOnly": false + }, + "isFallbackPublicClient": { + "type": "boolean", + "description": "Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false, which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID can't determine the client application type. For example, the ROPC flow where it's configured without specifying a redirect URI. In those cases, Microsoft Entra ID interprets the application type based on the value of this property.", + "readOnly": false + }, + "keyCredentials": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.keyCredential" + }, + "description": "The collection of key credentials associated with the application. Not nullable.", + "readOnly": false + }, + "logo": { + "type": "string", + "format": "base64url", + "description": "The main logo for the application. Not nullable.", + "readOnly": false + }, + "nativeAuthenticationApisEnabled": { + "$ref": "#/definitions/microsoft.graph.nativeAuthenticationApisEnabled", + "description": "Specifies whether the Native Authentication APIs are enabled for the application. The possible values are: none and all. Default is none. For more information, see Native Authentication.", + "readOnly": false + }, + "notes": { + "type": "string", + "description": "Notes relevant for the management of the application.", + "readOnly": false + }, + "optionalClaims": { + "$ref": "#/definitions/microsoft.graph.optionalClaims", + "description": "Application developers can configure optional claims in their Microsoft Entra applications to specify the claims that are sent to their application by the Microsoft security token service. For more information, see How to: Provide optional claims to your app.", + "readOnly": false + }, + "parentalControlSettings": { + "$ref": "#/definitions/microsoft.graph.parentalControlSettings", + "description": "Specifies parental control settings for an application.", + "readOnly": false + }, + "passwordCredentials": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.passwordCredential" + }, + "description": "The collection of password credentials associated with the application. Not nullable.", + "readOnly": false + }, + "publicClient": { + "$ref": "#/definitions/microsoft.graph.publicClientApplication", + "description": "Specifies settings for installed clients such as desktop or mobile devices.", + "readOnly": false + }, + "publisherDomain": { + "type": "string", + "description": "The verified publisher domain for the application. Read-only. For more information, see How to: Configure an application's publisher domain.", + "readOnly": true + }, + "requestSignatureVerification": { + "$ref": "#/definitions/microsoft.graph.requestSignatureVerification", + "description": "Specifies whether this application requires Microsoft Entra ID to verify the signed authentication requests.", + "readOnly": false + }, + "requiredResourceAccess": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.requiredResourceAccess" + }, + "description": "Specifies the resources that the application needs to access. This property also specifies the set of delegated permissions and application roles that it needs for each of those resources. This configuration of access to the required resources drives the consent experience. No more than 50 resource services (APIs) can be configured. Beginning mid-October 2021, the total number of required permissions must not exceed 400. For more information, see Limits on requested permissions per app. Not nullable.", + "readOnly": false + }, + "samlMetadataUrl": { + "type": "string", + "description": "The URL where the service exposes SAML metadata for federation. This property is valid only for single-tenant applications. Nullable.", + "readOnly": false + }, + "serviceManagementReference": { + "type": "string", + "description": "References application or service contact information from a Service or Asset Management database. Nullable.", + "readOnly": false + }, + "servicePrincipalLockConfiguration": { + "$ref": "#/definitions/microsoft.graph.servicePrincipalLockConfiguration", + "description": "Specifies whether sensitive properties of a multitenant application should be locked for editing after the application is provisioned in a tenant. Nullable. null by default.", + "readOnly": false + }, + "signInAudience": { + "type": "string", + "description": "Specifies the Microsoft accounts that are supported for the current application. The possible values are: AzureADMyOrg (default), AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount, and PersonalMicrosoftAccount. See more in the table. The value of this object also limits the number of permissions an app can request. For more information, see Limits on requested permissions per app. The value for this property has implications on other app object properties. As a result, if you change this property, you might need to change other properties first.", + "readOnly": false + }, + "spa": { + "$ref": "#/definitions/microsoft.graph.spaApplication", + "description": "Specifies settings for a single-page application, including sign out URLs and redirect URIs for authorization codes and access tokens.", + "readOnly": false + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Custom strings that can be used to categorize and identify the application. Not nullable.", + "readOnly": false + }, + "tokenEncryptionKeyId": { + "type": "string", + "format": "uuid", + "description": "Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID encrypts all the tokens it emits by using the key this property points to. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user.", + "readOnly": false + }, + "uniqueName": { + "type": "string", + "description": "The unique identifier that can be assigned to an application and used as an alternate key. Immutable.", + "readOnly": false, + "x-ms-graph-key": true, + "x-constant-key": true + }, + "verifiedPublisher": { + "$ref": "#/definitions/microsoft.graph.verifiedPublisher", + "description": "Specifies the verified publisher of the application. For more information about how publisher verification helps support application security, trustworthiness, and compliance, see Publisher verification.", + "readOnly": true + }, + "web": { + "$ref": "#/definitions/microsoft.graph.webApplication", + "description": "Specifies settings for a web application.", + "readOnly": false + }, + "owners": { + "$ref": "#/definitions/microsoft.graph.relationship", + "description": "Directory objects that are owners of this application. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object." + } + }, + "required": [ + "displayName", + "uniqueName" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.servicePrincipal": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "accountEnabled": { + "type": "boolean", + "description": "true if the service principal account is enabled; otherwise, false. If set to false, then no users are able to sign in to this app, even if they're assigned to it.", + "readOnly": false + }, + "addIns": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.addIn" + }, + "description": "Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on.", + "readOnly": false + }, + "alternativeNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Used to retrieve service principals by subscription, identify resource group and full resource IDs for managed identities.", + "readOnly": false + }, + "appDescription": { + "type": "string", + "description": "The description exposed by the associated application.", + "readOnly": false + }, + "appDisplayName": { + "type": "string", + "description": "The display name exposed by the associated application. Maximum length is 256 characters.", + "readOnly": false + }, + "appId": { + "type": "string", + "description": "The unique identifier for the associated application (its appId property). Alternate key.", + "readOnly": false, + "x-ms-graph-key": true + }, + "applicationTemplateId": { + "type": "string", + "description": "Unique identifier of the applicationTemplate. Read-only. null if the service principal wasn't created from an application template.", + "readOnly": true + }, + "appOwnerOrganizationId": { + "type": "string", + "format": "uuid", + "description": "Contains the tenant ID where the application is registered. This is applicable only to service principals backed by applications.", + "readOnly": true + }, + "appRoleAssignmentRequired": { + "type": "boolean", + "description": "Specifies whether users or other service principals need to be granted an app role assignment for this service principal before users can sign in or apps can get tokens. The default value is false. Not nullable.", + "readOnly": false + }, + "appRoles": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.appRole" + }, + "description": "The roles exposed by the application that's linked to this service principal. For more information, see the appRoles property definition on the application entity. Not nullable.", + "readOnly": false + }, + "customSecurityAttributes": { + "$ref": "#/definitions/microsoft.graph.customSecurityAttributeValue", + "description": "An open complex type that holds the value of a custom security attribute that is assigned to a directory object. Nullable. Filter value is case sensitive. To read this property, the calling app must be assigned the CustomSecAttributeAssignment.Read.All permission. To write this property, the calling app must be assigned the CustomSecAttributeAssignment.ReadWrite.All permissions. To read or write this property in delegated scenarios, the admin must be assigned the Attribute Assignment Administrator role.", + "readOnly": false + }, + "description": { + "type": "string", + "description": "Free text field to provide an internal end-user facing description of the service principal. End-user portals such MyApps displays the application description in this field. The maximum allowed size is 1,024 characters.", + "readOnly": false + }, + "disabledByMicrosoftStatus": { + "type": "string", + "description": "Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement).", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "The display name for the service principal.", + "readOnly": false + }, + "homepage": { + "type": "string", + "description": "Home page or landing page of the application.", + "readOnly": false + }, + "info": { + "$ref": "#/definitions/microsoft.graph.informationalUrl", + "description": "Basic profile information of the acquired application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps.", + "readOnly": false + }, + "keyCredentials": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.keyCredential" + }, + "description": "The collection of key credentials associated with the service principal. Not nullable.", + "readOnly": false + }, + "loginUrl": { + "type": "string", + "description": "Specifies the URL where the service provider redirects the user to Microsoft Entra ID to authenticate. Microsoft Entra ID uses the URL to launch the application from Microsoft 365 or the Microsoft Entra My Apps. When blank, Microsoft Entra ID performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Microsoft Entra My Apps, or the Microsoft Entra SSO URL.", + "readOnly": false + }, + "logoutUrl": { + "type": "string", + "description": "Specifies the URL that the Microsoft's authorization service uses to sign out a user using OpenID Connect front-channel, back-channel, or SAML sign out protocols.", + "readOnly": false + }, + "notes": { + "type": "string", + "description": "Free text field to capture information about the service principal, typically used for operational purposes. Maximum allowed size is 1,024 characters.", + "readOnly": false + }, + "notificationEmailAddresses": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the list of email addresses where Microsoft Entra ID sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Microsoft Entra Gallery applications.", + "readOnly": false + }, + "oauth2PermissionScopes": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.permissionScope" + }, + "description": "The delegated permissions exposed by the application. For more information, see the oauth2PermissionScopes property on the application entity's api property. Not nullable.", + "readOnly": false + }, + "passwordCredentials": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.passwordCredential" + }, + "description": "The collection of password credentials associated with the application. Not nullable.", + "readOnly": false + }, + "preferredSingleSignOnMode": { + "type": "string", + "description": "Specifies the single sign-on mode configured for this application. Microsoft Entra ID uses the preferred single sign-on mode to launch the application from Microsoft 365 or the My Apps portal. The supported values are password, saml, notSupported, and oidc. Note: This field might be null for older SAML apps and for OIDC applications where it isn't set automatically.", + "readOnly": false + }, + "preferredTokenSigningKeyThumbprint": { + "type": "string", + "description": "This property can be used on SAML applications (apps that have preferredSingleSignOnMode set to saml) to control which certificate is used to sign the SAML responses. For applications that aren't SAML, don't write or otherwise rely on this property.", + "readOnly": false + }, + "replyUrls": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application. Not nullable.", + "readOnly": false + }, + "resourceSpecificApplicationPermissions": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.resourceSpecificPermission" + }, + "description": "The resource-specific application permissions exposed by this application. Currently, resource-specific permissions are only supported for Teams apps accessing to specific chats and teams using Microsoft Graph. Read-only.", + "readOnly": true + }, + "samlSingleSignOnSettings": { + "$ref": "#/definitions/microsoft.graph.samlSingleSignOnSettings", + "description": "The collection for settings related to saml single sign-on.", + "readOnly": false + }, + "servicePrincipalNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI that is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable.", + "readOnly": false + }, + "servicePrincipalType": { + "type": "string", + "description": "Identifies whether the service principal represents an application, a managed identity, or a legacy application. This is set by Microsoft Entra ID internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens aren't issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but can't be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. A legacy service principal can have credentials, service principal names, reply URLs, and other properties that are editable by an authorized user, but doesn't have an associated app registration. The appId value doesn't associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.SocialIdp - For internal use.", + "readOnly": false + }, + "signInAudience": { + "type": "string", + "description": "Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multitenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only.", + "readOnly": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Custom strings that can be used to categorize and identify the service principal. Not nullable.", + "readOnly": false + }, + "tokenEncryptionKeyId": { + "type": "string", + "format": "uuid", + "description": "Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user.", + "readOnly": false + }, + "verifiedPublisher": { + "$ref": "#/definitions/microsoft.graph.verifiedPublisher", + "description": "Specifies the verified publisher of the application that's linked to this service principal.", + "readOnly": false + }, + "owners": { + "$ref": "#/definitions/microsoft.graph.relationship", + "description": "Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object." + } + }, + "required": [ + "appId" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.federatedIdentityCredential": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.entity" + }, + { + "type": "object", + "properties": { + "audiences": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Microsoft Entra ID. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Microsoft Entra ID in your external identity provider and has no fixed value across identity providers - you might need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required.", + "readOnly": false + }, + "description": { + "type": "string", + "description": "The unvalidated description of the federated identity credential, provided by the user. It has a limit of 600 characters. Optional.", + "readOnly": false + }, + "issuer": { + "type": "string", + "description": "The URL of the external identity provider, which must match the issuer claim of the external token being exchanged. The combination of the values of issuer and subject must be unique within the app. It has a limit of 600 characters. Required.", + "readOnly": false + }, + "name": { + "type": "string", + "description": "The unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. The string is immutable after it's created. Alternate key. Required. Not nullable.", + "readOnly": false, + "x-ms-graph-key": true + }, + "subject": { + "type": "string", + "description": "Required. The identifier of the external software workload within the external identity provider. Like the audience value, it has no fixed format; each identity provider uses their own - sometimes a GUID, sometimes a colon delimited identifier, sometimes arbitrary strings. The value here must match the sub claim within the token presented to Microsoft Entra ID. The combination of issuer and subject must be unique within the app. It has a limit of 600 characters.", + "readOnly": false + } + }, + "required": [ + "audiences", + "issuer", + "name", + "subject" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.oAuth2PermissionGrant": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.entity" + }, + { + "type": "object", + "properties": { + "clientId": { + "type": "string", + "description": "The object id (not appId) of the client service principal for the application that's authorized to act on behalf of a signed-in user when accessing an API. Required.", + "readOnly": false + }, + "consentType": { + "type": "string", + "description": "Indicates if authorization is granted for the client application to impersonate all users or only a specific user. AllPrincipals indicates authorization to impersonate all users. Principal indicates authorization to impersonate a specific user. Consent on behalf of all users can be granted by an administrator. Nonadmin users might be authorized to consent on behalf of themselves in some cases, for some delegated permissions. Required.", + "readOnly": false + }, + "principalId": { + "type": "string", + "description": "The id of the user on behalf of whom the client is authorized to access the resource, when consentType is Principal. If consentType is AllPrincipals this value is null. Required when consentType is Principal.", + "readOnly": false + }, + "resourceId": { + "type": "string", + "description": "The id of the resource service principal to which access is authorized. This identifies the API that the client is authorized to attempt to call on behalf of a signed-in user.", + "readOnly": false + }, + "scope": { + "type": "string", + "description": "A space-separated list of the claim values for delegated permissions that should be included in access tokens for the resource application (the API). For example, openid User.Read GroupMember.Read.All. Each claim value should match the value field of one of the delegated permissions defined by the API, listed in the oauth2PermissionScopes property of the resource service principal. Must not exceed 3,850 characters in length.", + "readOnly": false + } + }, + "required": [ + "clientId", + "consentType", + "resourceId" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.appRoleAssignment": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "appRoleId": { + "type": "string", + "format": "uuid", + "description": "The identifier (id) for the app role that's assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application hasn't declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create.", + "readOnly": false + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "The time when the app role assignment was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "principalDisplayName": { + "type": "string", + "description": "The display name of the user, group, or service principal that was granted the app role assignment. Maximum length is 256 characters. Read-only.", + "readOnly": true + }, + "principalId": { + "type": "string", + "format": "uuid", + "description": "The unique identifier (id) for the user, security group, or service principal being granted the app role. Security groups with dynamic memberships are supported. Required on create.", + "readOnly": false + }, + "principalType": { + "type": "string", + "description": "The type of the assigned principal. This can either be User, Group, or ServicePrincipal. Read-only.", + "readOnly": true + }, + "resourceDisplayName": { + "type": "string", + "description": "The display name of the resource app's service principal to which the assignment is made. Maximum length is 256 characters.", + "readOnly": false + }, + "resourceId": { + "type": "string", + "format": "uuid", + "description": "The unique identifier (id) for the resource service principal for which the assignment is made. Required on create.", + "readOnly": false + } + }, + "required": [ + "appRoleId", + "principalId", + "resourceId" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.appRole": { + "type": "object", + "properties": { + "allowedMemberTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment to other applications' service principals are also known as application permissions. The 'Application' value is only supported for app roles defined on application entities.", + "readOnly": false + }, + "description": { + "type": "string", + "description": "The description for the app role. This is displayed when the app role is being assigned and, if the app role functions as an application permission, during consent experiences.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "Display name for the permission that appears in the app role assignment and consent experiences.", + "readOnly": false + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Unique role identifier inside the appRoles collection. When creating a new app role, a new GUID identifier must be provided.", + "readOnly": false + }, + "isEnabled": { + "type": "boolean", + "description": "When creating or updating an app role, this must be set to true (which is the default). To delete a role, this must first be set to false. At that point, in a subsequent call, this role may be removed.", + "readOnly": false + }, + "origin": { + "type": "string", + "description": "Specifies if the app role is defined on the application object or on the servicePrincipal entity. Must not be included in any POST or PATCH requests. Read-only.", + "readOnly": true + }, + "value": { + "type": "string", + "description": "Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , -. / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with ..", + "readOnly": false + } + } + }, + "microsoft.graph.informationalUrl": { + "type": "object", + "properties": { + "logoUrl": { + "type": "string", + "description": "CDN URL to the application's logo, Read-only.", + "readOnly": true + }, + "marketingUrl": { + "type": "string", + "description": "Link to the application's marketing page. For example, https://www.contoso.com/app/marketing.", + "readOnly": false + }, + "privacyStatementUrl": { + "type": "string", + "description": "Link to the application's privacy statement. For example, https://www.contoso.com/app/privacy.", + "readOnly": false + }, + "supportUrl": { + "type": "string", + "description": "Link to the application's support page. For example, https://www.contoso.com/app/support.", + "readOnly": false + }, + "termsOfServiceUrl": { + "type": "string", + "description": "Link to the application's terms of service statement. For example, https://www.contoso.com/app/termsofservice.", + "readOnly": false + } + } + }, + "microsoft.graph.passwordCredential": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Friendly name for the password. Optional.", + "readOnly": false + }, + "endDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the password expires represented using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional.", + "readOnly": false + }, + "hint": { + "type": "string", + "description": "Contains the first three characters of the password. Read-only.", + "readOnly": true + }, + "keyId": { + "type": "string", + "format": "uuid", + "description": "The unique identifier for the password.", + "readOnly": false + }, + "secretText": { + "type": "string", + "description": "Read-only; Contains the strong passwords generated by Microsoft Entra ID that are 16-64 characters in length. The generated password value is only returned during the initial POST request to addPassword. There is no way to retrieve this password in the future.", + "readOnly": true + }, + "startDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the password becomes valid. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional.", + "readOnly": false + } + } + }, + "microsoft.graph.permissionScope": { + "type": "object", + "properties": { + "adminConsentDescription": { + "type": "string", + "description": "A description of the delegated permissions, intended to be read by an administrator granting the permission on behalf of all users. This text appears in tenant-wide admin consent experiences.", + "readOnly": false + }, + "adminConsentDisplayName": { + "type": "string", + "description": "The permission's title, intended to be read by an administrator granting the permission on behalf of all users.", + "readOnly": false + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application.", + "readOnly": false + }, + "isEnabled": { + "type": "boolean", + "description": "When you create or update a permission, this property must be set to true (which is the default). To delete a permission, this property must first be set to false. At that point, in a subsequent call, the permission may be removed.", + "readOnly": false + }, + "type": { + "type": "string", + "description": "The possible values are: User and Admin. Specifies whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator consent should always be required. While Microsoft Graph defines the default consent requirement for each permission, the tenant administrator may override the behavior in their organization (by allowing, restricting, or limiting user consent to this delegated permission). For more information, see Configure how users consent to applications.", + "readOnly": false + }, + "userConsentDescription": { + "type": "string", + "description": "A description of the delegated permissions, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves.", + "readOnly": false + }, + "userConsentDisplayName": { + "type": "string", + "description": "A title for the permission, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves.", + "readOnly": false + }, + "value": { + "type": "string", + "description": "Specifies the value to include in the scp (scope) claim in access tokens. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , -. / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with ..", + "readOnly": false + } + } + }, + "microsoft.graph.directoryObject": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.entity" + }, + { + "type": "object", + "properties": { + "deletedDateTime": { + "type": "string", + "format": "date-time", + "description": "Date and time when this object was deleted. Always null when the object hasn't been deleted.", + "readOnly": true + } + } + } + ] + }, + "microsoft.graph.entity": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The unique identifier for an entity. Read-only.", + "readOnly": true + } + } + }, + "microsoft.graph.onPremisesProvisioningError": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Category of the provisioning error. Note: Currently, there is only one possible value. Possible value: PropertyConflict - indicates a property value is not unique. Other objects contain the same value for the property.", + "readOnly": false + }, + "occurredDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the error occurred.", + "readOnly": false + }, + "propertyCausingError": { + "type": "string", + "description": "Name of the directory property causing the error. Current possible values: UserPrincipalName or ProxyAddress.", + "readOnly": false + }, + "value": { + "type": "string", + "description": "Value of the property causing the error.", + "readOnly": false + } + } + }, + "microsoft.graph.serviceProvisioningError": { + "type": "object", + "properties": { + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the error occurred.", + "readOnly": false + }, + "isResolved": { + "type": "boolean", + "description": "Indicates whether the error has been attended to.", + "readOnly": false + }, + "serviceInstance": { + "type": "string", + "description": "Qualified service instance (for example, 'SharePoint/Dublin') that published the service error information.", + "readOnly": false + } + } + }, + "microsoft.graph.addIn": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The unique identifier for the addIn object.", + "readOnly": false + }, + "properties": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.keyValue" + }, + "description": "The collection of key-value pairs that define parameters that the consuming service can use or call. You must specify this property when performing a POST or a PATCH operation on the addIns collection. Required.", + "readOnly": false + }, + "type": { + "type": "string", + "description": "The unique name for the functionality exposed by the app.", + "readOnly": false + } + } + }, + "microsoft.graph.apiApplication": { + "type": "object", + "properties": { + "acceptMappedClaims": { + "type": "boolean", + "description": "When true, allows an application to use claims mapping without specifying a custom signing key.", + "readOnly": false + }, + "knownClientApplications": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + }, + "description": "Used for bundling consent if you have a solution that contains two parts: a client app and a custom web API app. If you set the appID of the client app to this value, the user only consents once to the client app. Microsoft Entra ID knows that consenting to the client means implicitly consenting to the web API and automatically provisions service principals for both APIs at the same time. Both the client and the web API app must be registered in the same tenant.", + "readOnly": false + }, + "oauth2PermissionScopes": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.permissionScope" + }, + "description": "The definition of the delegated permissions exposed by the web API represented by this application registration. These delegated permissions may be requested by a client application, and may be granted by users or administrators during consent. Delegated permissions are sometimes referred to as OAuth 2.0 scopes.", + "readOnly": false + }, + "preAuthorizedApplications": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.preAuthorizedApplication" + }, + "description": "Lists the client applications that are preauthorized with the specified delegated permissions to access this application's APIs. Users aren't required to consent to any preauthorized application (for the permissions specified). However, any other permissions not listed in preAuthorizedApplications (requested through incremental consent for example) will require user consent.", + "readOnly": false + }, + "requestedAccessTokenVersion": { + "type": "integer", + "format": "int32", + "description": "Specifies the access token version expected by this resource. This changes the version and format of the JWT produced independent of the endpoint or client used to request the access token. The endpoint used, v1.0 or v2.0, is chosen by the client and only impacts the version of id_tokens. Resources need to explicitly configure requestedAccessTokenVersion to indicate the supported access token format. Possible values for requestedAccessTokenVersion are 1, 2, or null. If the value is null, this defaults to 1, which corresponds to the v1.0 endpoint. If signInAudience on the application is configured as AzureADandPersonalMicrosoftAccount or PersonalMicrosoftAccount, the value for this property must be 2.", + "readOnly": false + } + } + }, + "microsoft.graph.authenticationBehaviors": { + "type": "object", + "properties": { + "blockAzureADGraphAccess": { + "type": "boolean", + "description": "", + "readOnly": false + }, + "removeUnverifiedEmailClaim": { + "type": "boolean", + "description": "", + "readOnly": false + }, + "requireClientServicePrincipal": { + "type": "boolean", + "description": "", + "readOnly": false + } + } + }, + "microsoft.graph.certification": { + "type": "object", + "properties": { + "certificationDetailsUrl": { + "type": "string", + "description": "URL that shows certification details for the application.", + "readOnly": false + }, + "certificationExpirationDateTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp when the current certification for the application expires.", + "readOnly": false + }, + "isCertifiedByMicrosoft": { + "type": "boolean", + "description": "Indicates whether the application is certified by Microsoft.", + "readOnly": false + }, + "isPublisherAttested": { + "type": "boolean", + "description": "Indicates whether the application developer or publisher completed Publisher Attestation.", + "readOnly": false + }, + "lastCertificationDateTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp when the certification for the application was most recently added or updated.", + "readOnly": false + } + } + }, + "microsoft.graph.keyCredential": { + "type": "object", + "properties": { + "customKeyIdentifier": { + "type": "string", + "format": "base64url", + "description": "A 40-character binary type that can be used to identify the credential. Optional. When not provided in the payload, defaults to the thumbprint of the certificate.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "The friendly name for the key, with a maximum length of 90 characters. Longer values are accepted but shortened. Optional.", + "readOnly": false + }, + "endDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the credential expires. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.", + "readOnly": false + }, + "key": { + "type": "string", + "format": "base64url", + "description": "The certificate's raw data in byte array converted to Base64 string. From a .cer certificate, you can read the key using the Convert.ToBase64String() method. For more information, see Get the certificate key.", + "readOnly": false + }, + "keyId": { + "type": "string", + "format": "uuid", + "description": "The unique identifier (GUID) for the key.", + "readOnly": false + }, + "startDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the credential becomes valid.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.", + "readOnly": false + }, + "type": { + "type": "string", + "description": "The type of key credential; for example, Symmetric, AsymmetricX509Cert.", + "readOnly": false + }, + "usage": { + "type": "string", + "description": "A string that describes the purpose for which the key can be used; for example, Verify.", + "readOnly": false + } + } + }, + "microsoft.graph.optionalClaims": { + "type": "object", + "properties": { + "accessToken": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.optionalClaim" + }, + "description": "The optional claims returned in the JWT access token.", + "readOnly": false + }, + "idToken": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.optionalClaim" + }, + "description": "The optional claims returned in the JWT ID token.", + "readOnly": false + }, + "saml2Token": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.optionalClaim" + }, + "description": "The optional claims returned in the SAML token.", + "readOnly": false + } + } + }, + "microsoft.graph.parentalControlSettings": { + "type": "object", + "properties": { + "countriesBlockedForMinors": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the two-letter ISO country codes. Access to the application will be blocked for minors from the countries specified in this list.", + "readOnly": false + }, + "legalAgeGroupRule": { + "type": "string", + "description": "Specifies the legal age group rule that applies to users of the app. Can be set to one of the following values: ValueDescriptionAllowDefault. Enforces the legal minimum. This means parental consent is required for minors in the European Union and Korea.RequireConsentForPrivacyServicesEnforces the user to specify date of birth to comply with COPPA rules. RequireConsentForMinorsRequires parental consent for ages below 18, regardless of country/region minor rules.RequireConsentForKidsRequires parental consent for ages below 14, regardless of country/region minor rules.BlockMinorsBlocks minors from using the app.", + "readOnly": false + } + } + }, + "microsoft.graph.publicClientApplication": { + "type": "object", + "properties": { + "redirectUris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. For iOS and macOS apps, specify the value following the syntax msauth.{BUNDLEID}://auth, replacing '{BUNDLEID}'. For example, if the bundle ID is com.microsoft.identitysample.MSALiOS, the URI is msauth.com.microsoft.identitysample.MSALiOS://auth.", + "readOnly": false + } + } + }, + "microsoft.graph.requestSignatureVerification": { + "type": "object", + "properties": { + "allowedWeakAlgorithms": { + "$ref": "#/definitions/microsoft.graph.weakAlgorithms", + "description": "Specifies which weak algorithms are allowed. The possible values are: rsaSha1, unknownFutureValue.", + "readOnly": false + }, + "isSignedRequestRequired": { + "type": "boolean", + "description": "Specifies whether signed authentication requests for this application should be required.", + "readOnly": false + } + } + }, + "microsoft.graph.requiredResourceAccess": { + "type": "object", + "properties": { + "resourceAccess": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.resourceAccess" + }, + "description": "The list of OAuth2.0 permission scopes and app roles that the application requires from the specified resource.", + "readOnly": false + }, + "resourceAppId": { + "type": "string", + "description": "The unique identifier for the resource that the application requires access to. This should be equal to the appId declared on the target resource application.", + "readOnly": false + } + } + }, + "microsoft.graph.servicePrincipalLockConfiguration": { + "type": "object", + "properties": { + "allProperties": { + "type": "boolean", + "description": "Enables locking all sensitive properties. The sensitive properties are keyCredentials, passwordCredentials, and tokenEncryptionKeyId.", + "readOnly": false + }, + "credentialsWithUsageSign": { + "type": "boolean", + "description": "Locks the keyCredentials and passwordCredentials properties for modification where credential usage type is Sign.", + "readOnly": false + }, + "credentialsWithUsageVerify": { + "type": "boolean", + "description": "Locks the keyCredentials and passwordCredentials properties for modification where credential usage type is Verify. This locks OAuth service principals.", + "readOnly": false + }, + "isEnabled": { + "type": "boolean", + "description": "Enables or disables service principal lock configuration. To allow the sensitive properties to be updated, update this property to false to disable the lock on the service principal.", + "readOnly": false + }, + "tokenEncryptionKeyId": { + "type": "boolean", + "description": "Locks the tokenEncryptionKeyId property for modification on the service principal.", + "readOnly": false + } + } + }, + "microsoft.graph.spaApplication": { + "type": "object", + "properties": { + "redirectUris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent.", + "readOnly": false + } + } + }, + "microsoft.graph.verifiedPublisher": { + "type": "object", + "properties": { + "addedDateTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp when the verified publisher was first added or most recently updated.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "The verified publisher name from the app publisher's Partner Center account.", + "readOnly": false + }, + "verifiedPublisherId": { + "type": "string", + "description": "The ID of the verified publisher from the app publisher's Partner Center account.", + "readOnly": false + } + } + }, + "microsoft.graph.webApplication": { + "type": "object", + "properties": { + "homePageUrl": { + "type": "string", + "description": "Home page or landing page of the application.", + "readOnly": false + }, + "implicitGrantSettings": { + "$ref": "#/definitions/microsoft.graph.implicitGrantSettings", + "description": "Specifies whether this web application can request tokens using the OAuth 2.0 implicit flow.", + "readOnly": false + }, + "logoutUrl": { + "type": "string", + "description": "Specifies the URL that is used by Microsoft's authorization service to log out a user using front-channel, back-channel or SAML logout protocols.", + "readOnly": false + }, + "redirectUris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent.", + "readOnly": false + }, + "redirectUriSettings": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.redirectUriSettings" + }, + "description": "", + "readOnly": false + } + } + }, + "microsoft.graph.customSecurityAttributeValue": { + "type": "object", + "properties": {} + }, + "microsoft.graph.resourceSpecificPermission": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Describes the level of access that the resource-specific permission represents.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "The display name for the resource-specific permission.", + "readOnly": false + }, + "id": { + "type": "string", + "format": "uuid", + "description": "The unique identifier for the resource-specific application permission.", + "readOnly": false + }, + "isEnabled": { + "type": "boolean", + "description": "Indicates whether the permission is enabled.", + "readOnly": false + }, + "value": { + "type": "string", + "description": "The value of the permission.", + "readOnly": false + } + } + }, + "microsoft.graph.samlSingleSignOnSettings": { + "type": "object", + "properties": { + "relayState": { + "type": "string", + "description": "The relative URI the service provider would redirect to after completion of the single sign-on flow.", + "readOnly": false + } + } + }, + "microsoft.graph.keyValue": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Key for the key-value pair.", + "readOnly": false + }, + "value": { + "type": "string", + "description": "Value for the key-value pair.", + "readOnly": false + } + } + }, + "microsoft.graph.preAuthorizedApplication": { + "type": "object", + "properties": { + "appId": { + "type": "string", + "description": "The unique identifier for the application.", + "readOnly": false + }, + "delegatedPermissionIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The unique identifier for the oauth2PermissionScopes the application requires.", + "readOnly": false + } + } + }, + "microsoft.graph.optionalClaim": { + "type": "object", + "properties": { + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Additional properties of the claim. If a property exists in this collection, it modifies the behavior of the optional claim specified in the name property.", + "readOnly": false + }, + "essential": { + "type": "boolean", + "description": "If the value is true, the claim specified by the client is necessary to ensure a smooth authorization experience for the specific task requested by the end user. The default value is false.", + "readOnly": false + }, + "name": { + "type": "string", + "description": "The name of the optional claim.", + "readOnly": false + }, + "source": { + "type": "string", + "description": "The source (directory object) of the claim. There are predefined claims and user-defined claims from extension properties. If the source value is null, the claim is a predefined optional claim. If the source value is user, the value in the name property is the extension property from the user object.", + "readOnly": false + } + } + }, + "microsoft.graph.resourceAccess": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The unique identifier of an app role or delegated permission exposed by the resource application. For delegated permissions, this should match the id property of one of the delegated permissions in the oauth2PermissionScopes collection of the resource application's service principal. For app roles (application permissions), this should match the id property of an app role in the appRoles collection of the resource application's service principal.", + "readOnly": false + }, + "type": { + "type": "string", + "description": "Specifies whether the id property references a delegated permission or an app role (application permission). The possible values are: Scope (for delegated permissions) or Role (for app roles).", + "readOnly": false + } + } + }, + "microsoft.graph.implicitGrantSettings": { + "type": "object", + "properties": { + "enableAccessTokenIssuance": { + "type": "boolean", + "description": "Specifies whether this web application can request an access token using the OAuth 2.0 implicit flow.", + "readOnly": false + }, + "enableIdTokenIssuance": { + "type": "boolean", + "description": "Specifies whether this web application can request an ID token using the OAuth 2.0 implicit flow.", + "readOnly": false + } + } + }, + "microsoft.graph.redirectUriSettings": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int32", + "description": "", + "readOnly": false + }, + "uri": { + "type": "string", + "description": "", + "readOnly": false + } + } + }, + "microsoft.graph.nativeAuthenticationApisEnabled": { + "type": "string", + "enum": [ + "none", + "all" + ] + }, + "microsoft.graph.weakAlgorithms": { + "type": "string", + "enum": [ + "rsaSha1" + ] + } + }, + "paths": { + "/{rootScope}/providers/Microsoft.Graph/users/{userId}": { + "get": { + "tags": [ + "users" + ], + "description": "Get a user", + "operationId": "users_get", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the user", + "name": "userId", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "user get successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.user" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/groups/{groupId}": { + "put": { + "tags": [ + "groups" + ], + "description": "Create or update a group", + "operationId": "groups_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the group", + "name": "groupId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "group", + "description": "The group to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.group" + } + } + ], + "responses": { + "200": { + "description": "group created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.group" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/applications/{applicationId}": { + "put": { + "tags": [ + "applications" + ], + "description": "Create or update a application", + "operationId": "applications_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the application", + "name": "applicationId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "application", + "description": "The application to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.application" + } + } + ], + "responses": { + "200": { + "description": "application created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.application" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/servicePrincipals/{servicePrincipalId}": { + "put": { + "tags": [ + "servicePrincipals" + ], + "description": "Create or update a servicePrincipal", + "operationId": "servicePrincipals_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the servicePrincipal", + "name": "servicePrincipalId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "servicePrincipal", + "description": "The servicePrincipal to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.servicePrincipal" + } + } + ], + "responses": { + "200": { + "description": "servicePrincipal created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.servicePrincipal" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/applications/{applicationsId}/federatedIdentityCredentials/{federatedIdentityCredentialId}": { + "put": { + "tags": [ + "federatedIdentityCredentials" + ], + "description": "Create or update a federatedIdentityCredential", + "operationId": "federatedIdentityCredentials_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the federatedIdentityCredential", + "name": "federatedIdentityCredentialId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "federatedIdentityCredential", + "description": "The federatedIdentityCredential to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.federatedIdentityCredential" + } + }, + { + "in": "path", + "description": "The id of the applications", + "name": "applicationsId", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "federatedIdentityCredential created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.federatedIdentityCredential" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/oauth2PermissionGrants/{oAuth2PermissionGrantId}": { + "put": { + "tags": [ + "oauth2PermissionGrants" + ], + "description": "Create or update a oAuth2PermissionGrant", + "operationId": "oauth2PermissionGrants_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the oAuth2PermissionGrant", + "name": "oAuth2PermissionGrantId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "oAuth2PermissionGrant", + "description": "The oAuth2PermissionGrant to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.oAuth2PermissionGrant" + } + } + ], + "responses": { + "200": { + "description": "oAuth2PermissionGrant created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.oAuth2PermissionGrant" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/appRoleAssignedTo/{appRoleAssignmentId}": { + "put": { + "tags": [ + "appRoleAssignedTo" + ], + "description": "Create or update a appRoleAssignment", + "operationId": "appRoleAssignedTo_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the appRoleAssignment", + "name": "appRoleAssignmentId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "appRoleAssignment", + "description": "The appRoleAssignment to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.appRoleAssignment" + } + } + ], + "responses": { + "200": { + "description": "appRoleAssignment created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.appRoleAssignment" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/src/swagger-generation/src/config.ts b/src/swagger-generation/src/config.ts index 63767b7..6c92f6d 100644 --- a/src/swagger-generation/src/config.ts +++ b/src/swagger-generation/src/config.ts @@ -54,6 +54,7 @@ export interface EntityTypeConfig { Relationships?: RelationshipConfig, RequiredOnWrite?: string[] ReadOnly?: string[] + PropertyDescriptions?: Record FilterProperty?: string[] CompositeKey?: string[] EntitySetPath?: string diff --git a/src/swagger-generation/src/deserializer.ts b/src/swagger-generation/src/deserializer.ts index f742241..6fb67ea 100644 --- a/src/swagger-generation/src/deserializer.ts +++ b/src/swagger-generation/src/deserializer.ts @@ -49,7 +49,8 @@ const propertyHandler = (entityConfig: EntityTypeConfig | undefined, rawProperty const propertyAttributes: RawPropertyAttributes = rawProperty.$ const propertyName: string = propertyAttributes.Name const isAlternateKey: boolean = propertyName === alternateKey; - const propertyDescription: string = getPropertyDescription(rawProperty.Annotation, isAlternateKey); + const propertyDescription: string = entityConfig?.PropertyDescriptions?.[propertyName] + ?? getPropertyDescription(rawProperty.Annotation, isAlternateKey); let propertyType: string = propertyAttributes.Type let typedPropertyType: PrimitiveSwaggerTypeStruct | CollectionProperty | string const collectionRegex: RegExp = /Collection\((.+)\)/ diff --git a/src/swagger-generation/src/validator.ts b/src/swagger-generation/src/validator.ts index 7ba496a..4ff81a6 100644 --- a/src/swagger-generation/src/validator.ts +++ b/src/swagger-generation/src/validator.ts @@ -43,6 +43,11 @@ export const validateReferences = (definitionMap: DefinitionMap, config: Config) }); } + for (const propertyName of Object.keys(entityType.PropertyDescriptions ?? {})) { + if (!entity.Property.some(property => property.Name === propertyName)) { + throw new Error(`Property description ${propertyName} from config.yml is not present in ${entityType.Name}`); + } + } }); diff --git a/src/swagger-generation/tests/versionedContracts.test.ts b/src/swagger-generation/tests/versionedContracts.test.ts new file mode 100644 index 0000000..3a5d808 --- /dev/null +++ b/src/swagger-generation/tests/versionedContracts.test.ts @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +import { readFileSync } from 'fs'; +import { Config } from '../src/config'; +import { constructDataStructure } from '../src/deserializer'; +import { DefinitionMap } from '../src/definitions/DefinitionMap'; +import { CSDL } from '../src/definitions/RawTypes'; +import { Definition, Swagger } from '../src/definitions/Swagger'; +import { parseXML } from '../src/parser'; +import { writeSwagger } from '../src/swaggerWriter'; +import { validateReferences } from '../src/validator'; + +const readOnlyProperties: Record = { + 'microsoft.graph.group': ['isManagementRestricted', 'serviceProvisioningErrors'], + 'microsoft.graph.application': ['disabledByMicrosoftStatus', 'verifiedPublisher'], + 'microsoft.graph.servicePrincipal': ['disabledByMicrosoftStatus'], +}; + +interface SerializedType { + $type: string; + name?: string; + properties?: Record; +} + +function getDefinition(swagger: Swagger, name: string): Definition { + const definition = swagger.definitions[name]; + if ('allOf' in definition) { + const body = definition.allOf.find((item): item is Definition => 'properties' in item); + if (body) { + return body; + } + } else if ('properties' in definition) { + return definition; + } + throw new Error(`Missing object definition ${name}`); +} + +function generateSwagger(csdl: CSDL, config: Config): Swagger { + const definitions = constructDataStructure(csdl, new DefinitionMap(), config); + return writeSwagger(validateReferences(definitions, config), config); +} + +describe.each(['beta', 'v1.0'])('%s stable patch contracts', apiVersion => { + let csdl: CSDL; + let config: Config; + let swagger: Swagger; + + beforeAll(async () => { + config = new Config(apiVersion, '1.0.1'); + csdl = await parseXML(config.MetadataFilePath); + swagger = generateSwagger(csdl, config); + }); + + it('changes only the supported write guards and versioned documentation', () => { + const expected = generateSwagger(csdl, new Config(apiVersion, '1.0.0')); + for (const [entityName, properties] of Object.entries(readOnlyProperties)) { + for (const propertyName of properties) { + getDefinition(expected, entityName).properties[propertyName].readOnly = true; + } + } + for (const [entityName, entityConfig] of config.EntityTypes) { + for (const [propertyName, description] of Object.entries(entityConfig.PropertyDescriptions ?? {})) { + getDefinition(expected, entityName).properties[propertyName].description = description; + } + } + + expect(swagger).toEqual(expected); + expect(JSON.parse(readFileSync(`output/microsoftgraph-${apiVersion}-1.0.1.json`, 'utf8'))) + .toEqual(JSON.parse(JSON.stringify(swagger))); + }); + + it('publishes the same generated type graph with only the supported mutability corrections', () => { + const root = `../../generated/microsoftgraph/microsoft.graph/${apiVersion}`; + const baseline: SerializedType[] = JSON.parse(readFileSync(`${root}/1.0.0/types.json`, 'utf8')); + const published: SerializedType[] = JSON.parse(readFileSync(`${root}/1.0.1/types.json`, 'utf8')); + const objectNames: Record = { + 'microsoft.graph.group': 'Microsoft.Graph/groups', + 'microsoft.graph.application': 'Microsoft.Graph/applications', + 'microsoft.graph.servicePrincipal': 'Microsoft.Graph/servicePrincipals', + }; + for (const [entityName, properties] of Object.entries(readOnlyProperties)) { + const body = baseline.find(type => type.name === objectNames[entityName])!; + for (const propertyName of properties) { + body.properties![propertyName].flags |= 2; + } + } + for (const types of [baseline, published]) { + for (const type of types) { + for (const property of Object.values(type.properties ?? {})) { + delete property.description; + } + } + } + expect(published).toEqual(baseline); + }); + + it('preserves readable values and writable or conditionally writable service-principal inputs', () => { + for (const [entityName, properties] of Object.entries(readOnlyProperties)) { + for (const propertyName of properties) { + expect(getDefinition(swagger, entityName).properties[propertyName].readOnly).toBe(true); + } + } + const servicePrincipal = getDefinition(swagger, 'microsoft.graph.servicePrincipal'); + for (const propertyName of [ + 'addIns', 'appRoles', 'homepage', 'logoutUrl', 'replyUrls', 'servicePrincipalNames', + 'appDescription', 'appDisplayName', 'servicePrincipalType', 'info', 'loginUrl', 'verifiedPublisher', + ]) { + expect(servicePrincipal.properties[propertyName].readOnly).toBe(false); + } + expect(getDefinition(swagger, 'microsoft.graph.appRole').properties.origin.readOnly).toBe(true); + expect(getDefinition(swagger, 'microsoft.graph.application').properties.info.readOnly).toBe(false); + }); + + it('preserves the versioned guidance through metadata deserialization and Swagger serialization', () => { + const property = getDefinition(swagger, 'microsoft.graph.group').properties.isManagementRestricted; + expect(property.description).toContain('Read-only.'); + expect(property.description).toContain( + '[restricted management administrative units](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/admin-units-restricted-management)', + ); + expect(property.description).not.toContain('default value'); + }); + + it('rejects a misspelled description override instead of silently publishing missing guidance', () => { + const invalidConfig = new Config(apiVersion, '1.0.1'); + invalidConfig.EntityTypes.get('microsoft.graph.group')!.PropertyDescriptions = { + isManagementRestrictedd: 'Invalid override', + }; + expect(() => generateSwagger(csdl, invalidConfig)).toThrow( + 'Property description isManagementRestrictedd from config.yml is not present in microsoft.graph.group', + ); + }); +}); diff --git a/swagger/specification/microsoftgraph/resource-manager/microsoftgraph/official/beta/1.0.1.json b/swagger/specification/microsoftgraph/resource-manager/microsoftgraph/official/beta/1.0.1.json new file mode 100644 index 0000000..2e24d1f --- /dev/null +++ b/swagger/specification/microsoftgraph/resource-manager/microsoftgraph/official/beta/1.0.1.json @@ -0,0 +1,2043 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft Graph", + "version": "beta" + }, + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "definitions": { + "microsoft.graph.relationshipSemantics": { + "type": "string", + "enum": [ + "append", + "replace" + ] + }, + "microsoft.graph.relationship": { + "type": "object", + "properties": { + "relationshipSemantics": { + "$ref": "#/definitions/microsoft.graph.relationshipSemantics", + "description": "Specifies the semantics used by the Microsoft Graph Bicep extension to process the relationships. The 'append' semantics means that the relationship items in the template are added to the existing list. The 'replace' semantics means that the relationship items in the template will replace all existing items in the Entra resource. The default value (if not set) is 'append'" + }, + "relationships": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The list of object ids to be included in the relationship." + } + }, + "required": [ + "relationships" + ] + }, + "microsoft.graph.user": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "businessPhones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The telephone numbers for the user. Only one number can be set for this property. Read-only for users synced from on-premises directory.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "The name displayed in the address book for the user. This value is usually the combination of the user's first name, middle initial, and last name. This property is required when a user is created, and it cannot be cleared during updates. Maximum length is 256 characters.", + "readOnly": false + }, + "givenName": { + "type": "string", + "description": "The given name (first name) of the user. Maximum length is 64 characters.", + "readOnly": false + }, + "jobTitle": { + "type": "string", + "description": "The user's job title. Maximum length is 128 characters.", + "readOnly": false + }, + "mail": { + "type": "string", + "description": "The SMTP address for the user, for example, admin@contoso.com. Changes to this property also update the user's proxyAddresses collection to include the value as an SMTP address. This property can't contain accent characters. NOTE: We don't recommend updating this property for Azure AD B2C user profiles. Use the otherMails property instead.", + "readOnly": false + }, + "mobilePhone": { + "type": "string", + "description": "The primary cellular telephone number for the user. Read-only for users synced from the on-premises directory.", + "readOnly": false + }, + "officeLocation": { + "type": "string", + "description": "The office location in the user's place of business. Maximum length is 128 characters.", + "readOnly": false + }, + "preferredLanguage": { + "type": "string", + "description": "The preferred language for the user. The preferred language format is based on RFC 4646. The name combines an ISO 639 two-letter lowercase culture code associated with the language and an ISO 3166 two-letter uppercase subculture code associated with the country or region. Example: 'en-US', or 'es-ES'.", + "readOnly": false + }, + "surname": { + "type": "string", + "description": "The user's surname (family name or last name). Maximum length is 64 characters.", + "readOnly": false + }, + "userPrincipalName": { + "type": "string", + "description": "The user principal name (UPN) of the user. The UPN is an Internet-style sign-in name for the user based on the Internet standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where the domain must be present in the tenant's verified domain collection. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization.NOTE: This property can't contain accent characters. Only the following characters are allowed A - Z, a - z, 0 - 9, '. - _ ! # ^ ~. For the complete list of allowed characters, see username policies.", + "readOnly": false, + "x-ms-graph-key": true, + "x-constant-key": true + } + }, + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.group": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "classification": { + "type": "string", + "description": "Describes a classification for the group (such as low, medium or high business impact).", + "readOnly": false + }, + "cloudLicensing": { + "$ref": "#/definitions/microsoft.graph.cloudLicensing.groupCloudLicensing", + "description": "The relationships of a group to cloud licensing resources.", + "readOnly": false + }, + "createdByAppId": { + "type": "string", + "description": "App ID of the app used to create the group. Can be null for some groups. Read-only.", + "readOnly": true + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "Timestamp of when the group was created. The value can't be modified and is automatically populated when the group is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "description": { + "type": "string", + "description": "An optional description for the group.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "The display name for the group. Required. Maximum length is 256 characters.", + "readOnly": false + }, + "expirationDateTime": { + "type": "string", + "format": "date-time", + "description": "Timestamp of when the group is set to expire. It is null for security groups, but for Microsoft 365 groups, it represents when the group is set to expire as defined in the groupLifecyclePolicy. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "groupTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the group type and its membership. If the collection contains Unified, the group is a Microsoft 365 group; otherwise, it's either a security group or a distribution group. For details, see groups overview.If the collection includes DynamicMembership, the group has dynamic membership; otherwise, membership is static.", + "readOnly": false + }, + "infoCatalogs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Identifies the info segments assigned to the group.", + "readOnly": false + }, + "isAssignableToRole": { + "type": "boolean", + "description": "Indicates whether this group can be assigned to a Microsoft Entra role. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group cannot be a dynamic group (that is, groupTypes can't contain DynamicMembership). Only callers with at least the Privileged Role Administrator role can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Microsoft Entra role assignmentsUsing this feature requires a Microsoft Entra ID P1 license.", + "readOnly": false + }, + "isManagementRestricted": { + "type": "boolean", + "description": "Indicates whether the group is a member of a restricted management administrative unit. Read-only. To manage a group member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. See [restricted management administrative units](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/admin-units-restricted-management).", + "readOnly": true + }, + "mail": { + "type": "string", + "description": "The SMTP address for the group, for example, 'serviceadmins@contoso.com'. Read-only.", + "readOnly": true + }, + "mailEnabled": { + "type": "boolean", + "description": "Specifies whether the group is mail-enabled. Required.", + "readOnly": false + }, + "mailNickname": { + "type": "string", + "description": "The mail alias for the group, unique for Microsoft 365 groups in the organization. Maximum length is 64 characters. This property can contain only characters in the ASCII character set 0 - 127 except the following: @ () / [] ' ; : <> , SPACE.", + "readOnly": false + }, + "membershipRule": { + "type": "string", + "description": "The rule that determines members for this group if the group is a dynamic group (groupTypes contains DynamicMembership). For more information about the syntax of the membership rule, see Membership Rules syntax.", + "readOnly": false + }, + "membershipRuleProcessingState": { + "type": "string", + "description": "Indicates whether the dynamic membership processing is on or paused. Possible values are On or Paused.", + "readOnly": false + }, + "onPremisesDomainName": { + "type": "string", + "description": "Contains the on-premises domain FQDN, also called dnsDomainName synchronized from the on-premises directory. Read-only.", + "readOnly": true + }, + "onPremisesLastSyncDateTime": { + "type": "string", + "format": "date-time", + "description": "Indicates the last time at which the group was synced with the on-premises directory.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "onPremisesNetBiosName": { + "type": "string", + "description": "Contains the on-premises netBios name synchronized from the on-premises directory. Read-only.", + "readOnly": true + }, + "onPremisesProvisioningErrors": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.onPremisesProvisioningError" + }, + "description": "Errors when using Microsoft synchronization product during provisioning.", + "readOnly": true + }, + "onPremisesSamAccountName": { + "type": "string", + "description": "Contains the on-premises SAM account name synchronized from the on-premises directory. Read-only.", + "readOnly": true + }, + "onPremisesSecurityIdentifier": { + "type": "string", + "description": "Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Read-only.", + "readOnly": true + }, + "onPremisesSyncEnabled": { + "type": "boolean", + "description": "true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Read-only.", + "readOnly": true + }, + "organizationId": { + "type": "string", + "description": "", + "readOnly": false + }, + "preferredDataLocation": { + "type": "string", + "description": "The preferred data location for the Microsoft 365 group. By default, the group inherits the group creator's preferred data location. To set this property, the calling app must be granted the Directory.ReadWrite.All permission and the user be assigned at least one of the following Microsoft Entra roles: User Account Administrator Directory Writer Exchange Administrator SharePoint Administrator For more information about this property, see OneDrive Online Multi-Geo and Create a Microsoft 365 group with a specific PDL. Nullable.", + "readOnly": false + }, + "preferredLanguage": { + "type": "string", + "description": "The preferred language for a Microsoft 365 group. Should follow ISO 639-1 Code; for example, en-US.", + "readOnly": false + }, + "proxyAddresses": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Email addresses for the group that direct to the same group mailbox. For example: ['SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com']. The any operator is required for filter expressions on multi-valued properties. Read-only. Not nullable.", + "readOnly": true + }, + "renewedDateTime": { + "type": "string", + "format": "date-time", + "description": "Timestamp of when the group was last renewed. This cannot be modified directly and is only updated via the renew service action. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "resourceBehaviorOptions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the group behaviors that can be set for a Microsoft 365 group during creation. This property can be set only as part of creation (POST). For the list of possible values, see Microsoft 365 group behaviors and provisioning options.", + "readOnly": false + }, + "resourceProvisioningOptions": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the group resources that are associated with the Microsoft 365 group. The possible value is Team. For more information, see Microsoft 365 group behaviors and provisioning options.", + "readOnly": false + }, + "securityEnabled": { + "type": "boolean", + "description": "Specifies whether the group is a security group.", + "readOnly": false + }, + "securityIdentifier": { + "type": "string", + "description": "Security identifier of the group, used in Windows scenarios. Read-only.", + "readOnly": true + }, + "serviceProvisioningErrors": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.serviceProvisioningError" + }, + "description": "Errors published by a federated service describing a non-transient, service-specific error regarding the properties or link from a group object.", + "readOnly": true + }, + "theme": { + "type": "string", + "description": "Specifies a Microsoft 365 group's color theme. Possible values are Teal, Purple, Green, Blue, Pink, Orange or Red.", + "readOnly": false + }, + "uniqueName": { + "type": "string", + "description": "The unique identifier that can be assigned to a group and used as an alternate key. Immutable.", + "readOnly": false, + "x-ms-graph-key": true, + "x-constant-key": true + }, + "visibility": { + "type": "string", + "description": "Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value isn't specified during group creation on Microsoft Graph, a security group is created as Private by default, and Microsoft 365 group is Public. Groups assignable to roles are always Private. To learn more, see group visibility options. Nullable.", + "readOnly": false + }, + "writebackConfiguration": { + "$ref": "#/definitions/microsoft.graph.groupWritebackConfiguration", + "description": "Specifies whether or not a group is configured to write back group object properties to on-premises Active Directory. These properties are used when group writeback is configured in the Microsoft Entra Connect sync client.", + "readOnly": false + }, + "members": { + "$ref": "#/definitions/microsoft.graph.relationship", + "description": "Direct group members, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable." + }, + "owners": { + "$ref": "#/definitions/microsoft.graph.relationship", + "description": "The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue." + } + }, + "required": [ + "displayName", + "mailEnabled", + "mailNickname", + "securityEnabled", + "uniqueName" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.application": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "api": { + "$ref": "#/definitions/microsoft.graph.apiApplication", + "description": "Specifies settings for an application that implements a web API.", + "readOnly": false + }, + "appId": { + "type": "string", + "description": "The unique identifier for the application that is assigned by Microsoft Entra ID. Not nullable. Read-only. Alternate key.", + "readOnly": true + }, + "appRoles": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.appRole" + }, + "description": "The collection of roles defined for the application. With app role assignments, these roles can be assigned to users, groups, or service principals associated with other applications. Not nullable.", + "readOnly": false + }, + "authenticationBehaviors": { + "$ref": "#/definitions/microsoft.graph.authenticationBehaviors", + "description": "The collection of breaking change behaviors related to token issuance that are configured for the application. Authentication behaviors are unset by default (null) and must be explicitly enabled or disabled. Nullable. For more information about authentication behaviors, see Manage application authenticationBehaviors to avoid unverified use of email claims for user identification or authorization.", + "readOnly": false + }, + "certification": { + "$ref": "#/definitions/microsoft.graph.certification", + "description": "Specifies the certification status of the application.", + "readOnly": true + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time the application was registered. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "defaultRedirectUri": { + "type": "string", + "description": "The default redirect URI. If specified and there's no explicit redirect URI in the sign-in request for SAML and OIDC flows, Microsoft Entra ID sends the token to this redirect URI. Microsoft Entra ID also sends the token to this default URI in SAML IdP-initiated single sign-on. The value must match one of the configured redirect URIs for the application.", + "readOnly": false + }, + "description": { + "type": "string", + "description": "Free text field to provide a description of the application object to end users. The maximum allowed size is 1,024 characters.", + "readOnly": false + }, + "disabledByMicrosoftStatus": { + "type": "string", + "description": "Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons may include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement).", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "The display name for the application. Maximum length is 256 characters.", + "readOnly": false + }, + "groupMembershipClaims": { + "type": "string", + "description": "Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following string values: None, SecurityGroup (for security groups and Microsoft Entra roles), All (this gets all security groups, distribution groups, and Microsoft Entra directory roles that the signed-in user is a member of).", + "readOnly": false + }, + "identifierUris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you reference in your API's code, and it must be globally unique across Microsoft Entra ID. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable.", + "readOnly": false + }, + "info": { + "$ref": "#/definitions/microsoft.graph.informationalUrl", + "description": "Basic profile information of the application, such as it's marketing, support, terms of service, and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more information, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps.", + "readOnly": false + }, + "isDeviceOnlyAuthSupported": { + "type": "boolean", + "description": "Specifies whether this application supports device authentication without a user. The default is false.", + "readOnly": false + }, + "isFallbackPublicClient": { + "type": "boolean", + "description": "Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false, which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID can't determine the client application type. For example, the ROPC flow where the application is configured without specifying a redirect URI. In those cases Microsoft Entra ID interprets the application type based on the value of this property.", + "readOnly": false + }, + "keyCredentials": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.keyCredential" + }, + "description": "The collection of key credentials associated with the application. Not nullable.", + "readOnly": false + }, + "logo": { + "type": "string", + "format": "base64url", + "description": "The main logo for the application. Not nullable.", + "readOnly": false + }, + "nativeAuthenticationApisEnabled": { + "$ref": "#/definitions/microsoft.graph.nativeAuthenticationApisEnabled", + "description": "Specifies whether the Native Authentication APIs are enabled for the application. The possible values are: noneand all. Default is none. For more information, see Native Authentication.", + "readOnly": false + }, + "notes": { + "type": "string", + "description": "Notes relevant for the management of the application.", + "readOnly": false + }, + "optionalClaims": { + "$ref": "#/definitions/microsoft.graph.optionalClaims", + "description": "Application developers can configure optional claims in their Microsoft Entra applications to specify the claims that are sent to their application by the Microsoft security token service. For more information, see How to: Provide optional claims to your app.", + "readOnly": false + }, + "parentalControlSettings": { + "$ref": "#/definitions/microsoft.graph.parentalControlSettings", + "description": "Specifies parental control settings for an application.", + "readOnly": false + }, + "passwordCredentials": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.passwordCredential" + }, + "description": "The collection of password credentials associated with the application. Not nullable.", + "readOnly": false + }, + "publicClient": { + "$ref": "#/definitions/microsoft.graph.publicClientApplication", + "description": "Specifies settings for installed clients such as desktop or mobile devices.", + "readOnly": false + }, + "publisherDomain": { + "type": "string", + "description": "The verified publisher domain for the application. Read-only.", + "readOnly": true + }, + "requestSignatureVerification": { + "$ref": "#/definitions/microsoft.graph.requestSignatureVerification", + "description": "Specifies whether this application requires Microsoft Entra ID to verify the signed authentication requests.", + "readOnly": false + }, + "requiredResourceAccess": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.requiredResourceAccess" + }, + "description": "Specifies the resources that the application needs to access. This property also specifies the set of delegated permissions and application roles that it needs for each of those resources. This configuration of access to the required resources drives the consent experience. No more than 50 resource services (APIs) can be configured. Beginning mid-October 2021, the total number of required permissions must not exceed 400. For more information, see Limits on requested permissions per app. Not nullable.", + "readOnly": false + }, + "samlMetadataUrl": { + "type": "string", + "description": "The URL where the service exposes SAML metadata for federation. This property is valid only for single-tenant applications. Nullable.", + "readOnly": false + }, + "serviceManagementReference": { + "type": "string", + "description": "References application or service contact information from a Service or Asset Management database. Nullable.", + "readOnly": false + }, + "servicePrincipalLockConfiguration": { + "$ref": "#/definitions/microsoft.graph.servicePrincipalLockConfiguration", + "description": "Specifies whether sensitive properties of a multitenant application should be locked for editing after the application is provisioned in a tenant. Nullable. null by default.", + "readOnly": false + }, + "signInAudience": { + "type": "string", + "description": "Specifies the Microsoft accounts that are supported for the current application. The possible values are: AzureADMyOrg (default), AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount, and PersonalMicrosoftAccount. See more in the table. The value of this object also limits the number of permissions an app can request. For more information, see Limits on requested permissions per app. The value for this property has implications on other app object properties. As a result, if you change this property, you may need to change other properties first.", + "readOnly": false + }, + "spa": { + "$ref": "#/definitions/microsoft.graph.spaApplication", + "description": "Specifies settings for a single-page application, including sign out URLs and redirect URIs for authorization codes and access tokens.", + "readOnly": false + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Custom strings that can be used to categorize and identify the application. Not nullable.", + "readOnly": false + }, + "tokenEncryptionKeyId": { + "type": "string", + "format": "uuid", + "description": "Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID encrypts all the tokens it emits by using the key this property points to. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user.", + "readOnly": false + }, + "uniqueName": { + "type": "string", + "description": "The unique identifier that can be assigned to an application and used as an alternate key. Immutable.", + "readOnly": false, + "x-ms-graph-key": true, + "x-constant-key": true + }, + "verifiedPublisher": { + "$ref": "#/definitions/microsoft.graph.verifiedPublisher", + "description": "Specifies the verified publisher of the application. For more information about how publisher verification helps support application security, trustworthiness, and compliance, see Publisher verification.", + "readOnly": true + }, + "web": { + "$ref": "#/definitions/microsoft.graph.webApplication", + "description": "Specifies settings for a web application.", + "readOnly": false + }, + "windows": { + "$ref": "#/definitions/microsoft.graph.windowsApplication", + "description": "Specifies settings for apps running Microsoft Windows and published in the Microsoft Store or Xbox games store.", + "readOnly": false + }, + "owners": { + "$ref": "#/definitions/microsoft.graph.relationship", + "description": "Directory objects that are owners of this application. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object. Read-only. Nullable." + } + }, + "required": [ + "displayName", + "uniqueName" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.servicePrincipal": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "accountEnabled": { + "type": "boolean", + "description": "true if the service principal account is enabled; otherwise, false. If set to false, then no users are able to sign in to this app, even if they're assigned to it.", + "readOnly": false + }, + "addIns": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.addIn" + }, + "description": "Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on.", + "readOnly": false + }, + "alternativeNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Used to retrieve service principals by subscription, identify resource group and full resource IDs for managed identities.", + "readOnly": false + }, + "appDescription": { + "type": "string", + "description": "The description exposed by the associated application.", + "readOnly": false + }, + "appDisplayName": { + "type": "string", + "description": "The display name exposed by the associated application. Maximum length is 256 characters.", + "readOnly": false + }, + "appId": { + "type": "string", + "description": "The unique identifier for the associated application (its appId property). Alternate key.", + "readOnly": false, + "x-ms-graph-key": true + }, + "applicationTemplateId": { + "type": "string", + "description": "Unique identifier of the applicationTemplate. Read-only. null if the app wasn't created from an application template.", + "readOnly": true + }, + "appOwnerOrganizationId": { + "type": "string", + "format": "uuid", + "description": "Contains the tenant ID where the application is registered. This is applicable only to service principals backed by applications.", + "readOnly": true + }, + "appRoleAssignmentRequired": { + "type": "boolean", + "description": "Specifies whether users or other service principals need to be granted an app role assignment for this service principal before users can sign in or apps can get tokens. The default value is false. Not nullable.", + "readOnly": false + }, + "appRoles": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.appRole" + }, + "description": "The roles exposed by the application, which this service principal represents. For more information, see the appRoles property definition on the application entity. Not nullable.", + "readOnly": false + }, + "description": { + "type": "string", + "description": "Free text field to provide an internal end-user facing description of the service principal. End-user portals such MyApps displays the application description in this field. The maximum allowed size is 1,024 characters.", + "readOnly": false + }, + "disabledByMicrosoftStatus": { + "type": "string", + "description": "Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons may include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement).", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "The display name for the service principal.", + "readOnly": false + }, + "homepage": { + "type": "string", + "description": "Home page or landing page of the application.", + "readOnly": false + }, + "info": { + "$ref": "#/definitions/microsoft.graph.informationalUrl", + "description": "Basic profile information of the acquired application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps.", + "readOnly": false + }, + "keyCredentials": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.keyCredential" + }, + "description": "The collection of key credentials associated with the service principal. Not nullable.", + "readOnly": false + }, + "loginUrl": { + "type": "string", + "description": "Specifies the URL where the service provider redirects the user to Microsoft Entra ID to authenticate. Microsoft Entra ID uses the URL to launch the application from Microsoft 365 or the Microsoft Entra My Apps. When blank, Microsoft Entra ID performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Microsoft Entra My Apps, or the Microsoft Entra SSO URL.", + "readOnly": false + }, + "logoutUrl": { + "type": "string", + "description": "Specifies the URL that the Microsoft's authorization service uses to sign out a user using OpenId Connect front-channel, back-channel, or SAML sign out protocols.", + "readOnly": false + }, + "notes": { + "type": "string", + "description": "Free text field to capture information about the service principal, typically used for operational purposes. Maximum allowed size is 1,024 characters.", + "readOnly": false + }, + "notificationEmailAddresses": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the list of email addresses where Microsoft Entra ID sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Microsoft Entra Gallery applications.", + "readOnly": false + }, + "passwordCredentials": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.passwordCredential" + }, + "description": "The collection of password credentials associated with the service principal. Not nullable.", + "readOnly": false + }, + "preferredSingleSignOnMode": { + "type": "string", + "description": "Specifies the single sign-on mode configured for this application. Microsoft Entra ID uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Microsoft Entra My Apps. The supported values are password, saml, notSupported, and oidc. Note: This field might be null for older SAML apps and for OIDC applications where it isn't set automatically.", + "readOnly": false + }, + "preferredTokenSigningKeyEndDateTime": { + "type": "string", + "format": "date-time", + "description": "Specifies the expiration date of the keyCredential used for token signing, marked by preferredTokenSigningKeyThumbprint. Updating this attribute isn't currently supported. For details, see ServicePrincipal property differences.", + "readOnly": false + }, + "preferredTokenSigningKeyThumbprint": { + "type": "string", + "description": "This property can be used on SAML applications (apps that have preferredSingleSignOnMode set to saml) to control which certificate is used to sign the SAML responses. For applications that aren't SAML, don't write or otherwise rely on this property.", + "readOnly": false + }, + "publishedPermissionScopes": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.permissionScope" + }, + "description": "The delegated permissions exposed by the application. For more information, see the oauth2PermissionScopes property on the application entity's api property. Not nullable. Note: This property is named oauth2PermissionScopes in v1.0.", + "readOnly": false + }, + "publisherName": { + "type": "string", + "description": "The name of the Microsoft Entra tenant that published the application.", + "readOnly": false + }, + "replyUrls": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application. Not nullable.", + "readOnly": false + }, + "samlMetadataUrl": { + "type": "string", + "description": "The url where the service exposes SAML metadata for federation.", + "readOnly": false + }, + "samlSingleSignOnSettings": { + "$ref": "#/definitions/microsoft.graph.samlSingleSignOnSettings", + "description": "The collection for settings related to saml single sign-on.", + "readOnly": false + }, + "servicePrincipalNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Contains the list of identifiersUris, copied over from the associated application. More values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI that is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable.", + "readOnly": false + }, + "servicePrincipalType": { + "type": "string", + "description": "Identifies if the service principal represents an application or a managed identity. This is set by Microsoft Entra ID internally. For a service principal that represents an application this is set as Application. For a service principal that represents a managed identity this is set as ManagedIdentity. The SocialIdp type is for internal use.", + "readOnly": false + }, + "signInAudience": { + "type": "string", + "description": "Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multitenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only.", + "readOnly": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Custom strings that can be used to categorize and identify the service principal. Not nullable.", + "readOnly": false + }, + "tokenEncryptionKeyId": { + "type": "string", + "format": "uuid", + "description": "Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user.", + "readOnly": false + }, + "verifiedPublisher": { + "$ref": "#/definitions/microsoft.graph.verifiedPublisher", + "description": "Specifies the verified publisher of the application that's linked to this service principal.", + "readOnly": false + }, + "owners": { + "$ref": "#/definitions/microsoft.graph.relationship", + "description": "Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object." + } + }, + "required": [ + "appId" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.federatedIdentityCredential": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.entity" + }, + { + "type": "object", + "properties": { + "audiences": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Microsoft Entra ID. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Microsoft Entra ID in your external identity provider and has no fixed value across identity providers - you may need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required.", + "readOnly": false + }, + "claimsMatchingExpression": { + "$ref": "#/definitions/microsoft.graph.federatedIdentityExpression", + "description": "Nullable. Defaults to null if not set. Enables the use of claims matching expressions against specified claims. If claimsMatchingExpression is defined, subject must be null. For the list of supported expression syntax and claims, visit the Flexible FIC reference.", + "readOnly": false + }, + "description": { + "type": "string", + "description": "The un-validated, user-provided description of the federated identity credential. It has a limit of 600 characters. Optional.", + "readOnly": false + }, + "issuer": { + "type": "string", + "description": "The URL of the external identity provider and must match the issuer claim of the external token being exchanged. The combination of the values of issuer and subject must be unique on the app. It has a limit of 600 characters. Required.", + "readOnly": false + }, + "name": { + "type": "string", + "description": "The unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. It is immutable once created. Alternate key. Required. Not nullable.", + "readOnly": false, + "x-ms-graph-key": true + }, + "subject": { + "type": "string", + "description": "Nullable. Defaults to null if not set. The identifier of the external software workload within the external identity provider. Like the audience value, it has no fixed format, as each identity provider uses their own - sometimes a GUID, sometimes a colon delimited identifier, sometimes arbitrary strings. The value here must match the sub claim within the token presented to Microsoft Entra ID. The combination of issuer and subject must be unique on the app. It has a limit of 600 characters. If subject is defined, claimsMatchingExpression must be null.", + "readOnly": false + } + }, + "required": [ + "audiences", + "issuer", + "name" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.oAuth2PermissionGrant": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.entity" + }, + { + "type": "object", + "properties": { + "clientId": { + "type": "string", + "description": "The object id (not appId) of the client service principal for the application that is authorized to act on behalf of a signed-in user when accessing an API. Required.", + "readOnly": false + }, + "consentType": { + "type": "string", + "description": "Indicates whether authorization is granted for the client application to impersonate all users or only a specific user. AllPrincipals indicates authorization to impersonate all users. Principal indicates authorization to impersonate a specific user. Consent on behalf of all users can be granted by an administrator. Nonadmin users may be authorized to consent on behalf of themselves in some cases, for some delegated permissions. Required.", + "readOnly": false + }, + "principalId": { + "type": "string", + "description": "The id of the user on behalf of whom the client is authorized to access the resource, when consentType is Principal. If consentType is AllPrincipals this value is null. Required when consentType is Principal.", + "readOnly": false + }, + "resourceId": { + "type": "string", + "description": "The id of the resource service principal to which access is authorized. This identifies the API that the client is authorized to attempt to call on behalf of a signed-in user.", + "readOnly": false + }, + "scope": { + "type": "string", + "description": "A space-separated list of the claim values for delegated permissions that should be included in access tokens for the resource application (the API). For example, openid User.Read GroupMember.Read.All. Each claim value should match the value field of one of the delegated permissions defined by the API, listed in the publishedPermissionScopes property of the resource service principal. Must not exceed 3850 characters in length.", + "readOnly": false + } + }, + "required": [ + "clientId", + "consentType", + "resourceId" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.appRoleAssignment": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "appRoleId": { + "type": "string", + "format": "uuid", + "description": "The identifier (id) for the app role that is assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application hasn't declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create.", + "readOnly": false + }, + "creationTimestamp": { + "type": "string", + "format": "date-time", + "description": "The time when the app role assignment was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "principalDisplayName": { + "type": "string", + "description": "The display name of the user, group, or service principal that was granted the app role assignment. Maximum length is 256 characters. Read-only.", + "readOnly": true + }, + "principalId": { + "type": "string", + "format": "uuid", + "description": "The unique identifier (id) for the user, security group, or service principal being granted the app role. Security groups with dynamic memberships are supported. Required on create.", + "readOnly": false + }, + "principalType": { + "type": "string", + "description": "The type of the assigned principal. This can either be User, Group, or ServicePrincipal. Read-only.", + "readOnly": true + }, + "resourceDisplayName": { + "type": "string", + "description": "The display name of the resource app's service principal to which the assignment is made. Maximum length is 256 characters.", + "readOnly": false + }, + "resourceId": { + "type": "string", + "format": "uuid", + "description": "The unique identifier (id) for the resource service principal for which the assignment is made. Required on create.", + "readOnly": false + } + }, + "required": [ + "appRoleId", + "principalId", + "resourceId" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.appRole": { + "type": "object", + "properties": { + "allowedMemberTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment to other applications' service principals are also known as application permissions. The 'Application' value is only supported for app roles defined on application entities.", + "readOnly": false + }, + "description": { + "type": "string", + "description": "The description for the app role. This is displayed when the app role is being assigned and, if the app role functions as an application permission, during consent experiences.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "Display name for the permission that appears in the app role assignment and consent experiences.", + "readOnly": false + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Unique role identifier inside the appRoles collection. You must specify a new GUID identifier when you create a new app role.", + "readOnly": false + }, + "isEnabled": { + "type": "boolean", + "description": "When you create or updating an app role, this value must be true. To delete a role, this must first be set to false. At that point, in a subsequent call, this role might be removed. Default value is true.", + "readOnly": false + }, + "origin": { + "type": "string", + "description": "Specifies if the app role is defined on the application object or on the servicePrincipal entity. Must not be included in any POST or PATCH requests. Read-only.", + "readOnly": true + }, + "value": { + "type": "string", + "description": "Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , -. / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z, and a-z. Any other character, including the space character, aren't allowed. May not begin with ..", + "readOnly": false + } + } + }, + "microsoft.graph.informationalUrl": { + "type": "object", + "properties": { + "logoUrl": { + "type": "string", + "description": "CDN URL to the application's logo, Read-only.", + "readOnly": true + }, + "marketingUrl": { + "type": "string", + "description": "Link to the application's marketing page. For example, https://www.contoso.com/app/marketing.", + "readOnly": false + }, + "privacyStatementUrl": { + "type": "string", + "description": "Link to the application's privacy statement. For example, https://www.contoso.com/app/privacy.", + "readOnly": false + }, + "supportUrl": { + "type": "string", + "description": "Link to the application's support page. For example, https://www.contoso.com/app/support.", + "readOnly": false + }, + "termsOfServiceUrl": { + "type": "string", + "description": "Link to the application's terms of service statement. For example, https://www.contoso.com/app/termsofservice.", + "readOnly": false + } + } + }, + "microsoft.graph.passwordCredential": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Friendly name for the password. Optional.", + "readOnly": false + }, + "endDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the password expires represented using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional.", + "readOnly": false + }, + "hint": { + "type": "string", + "description": "Contains the first three characters of the password. Read-only.", + "readOnly": true + }, + "keyId": { + "type": "string", + "format": "uuid", + "description": "The unique identifier for the password.", + "readOnly": false + }, + "secretText": { + "type": "string", + "description": "Read-only; Contains the strong passwords generated by Microsoft Entra ID that are 16-64 characters in length. The generated password value is only returned during the initial POST request to addPassword. There is no way to retrieve this password in the future.", + "readOnly": true + }, + "startDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the password becomes valid. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional.", + "readOnly": false + } + } + }, + "microsoft.graph.windowsApplication": { + "type": "object", + "properties": { + "packageSid": { + "type": "string", + "description": "The package security identifier that Microsoft has assigned the application. Optional. Read-only.", + "readOnly": true + }, + "redirectUris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the URLs where user tokens are sent for sign-in or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. Only available for applications that support the PersonalMicrosoftAccount signInAudience.", + "readOnly": false + } + } + }, + "microsoft.graph.permissionScope": { + "type": "object", + "properties": { + "adminConsentDescription": { + "type": "string", + "description": "A description of the delegated permissions, intended to be read by an administrator granting the permission on behalf of all users. This text appears in tenant-wide admin consent experiences.", + "readOnly": false + }, + "adminConsentDisplayName": { + "type": "string", + "description": "The permission's title, intended to be read by an administrator granting the permission on behalf of all users.", + "readOnly": false + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application.", + "readOnly": false + }, + "isEnabled": { + "type": "boolean", + "description": "When you create or update a permission, this property must be set to true (which is the default). To delete a permission, this property must first be set to false. At that point, in a subsequent call, the permission may be removed.", + "readOnly": false + }, + "type": { + "type": "string", + "description": "The possible values are: User and Admin. Specifies whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator consent should always be required. While Microsoft Graph defines the default consent requirement for each permission, the tenant administrator may override the behavior in their organization (by allowing, restricting, or limiting user consent to this delegated permission). For more information, see Configure how users consent to applications.", + "readOnly": false + }, + "userConsentDescription": { + "type": "string", + "description": "A description of the delegated permissions, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves.", + "readOnly": false + }, + "userConsentDisplayName": { + "type": "string", + "description": "A title for the permission, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves.", + "readOnly": false + }, + "value": { + "type": "string", + "description": "Specifies the value to include in the scp (scope) claim in access tokens. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , -. / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with ..", + "readOnly": false + } + } + }, + "microsoft.graph.directoryObject": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.entity" + }, + { + "type": "object", + "properties": { + "deletedDateTime": { + "type": "string", + "format": "date-time", + "description": "Date and time when this object was deleted. Always null when the object hasn't been deleted.", + "readOnly": true + } + } + } + ] + }, + "microsoft.graph.entity": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The unique identifier for an entity. Read-only.", + "readOnly": true + } + } + }, + "microsoft.graph.cloudLicensing.groupCloudLicensing": { + "type": "object", + "properties": {} + }, + "microsoft.graph.onPremisesProvisioningError": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Category of the provisioning error. Note: Currently, there is only one possible value. Possible value: PropertyConflict - indicates a property value is not unique. Other objects contain the same value for the property.", + "readOnly": false + }, + "occurredDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the error occurred.", + "readOnly": false + }, + "propertyCausingError": { + "type": "string", + "description": "Name of the directory property causing the error. Current possible values: UserPrincipalName or ProxyAddress.", + "readOnly": false + }, + "value": { + "type": "string", + "description": "Value of the property causing the error.", + "readOnly": false + } + } + }, + "microsoft.graph.serviceProvisioningError": { + "type": "object", + "properties": { + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the error occurred.", + "readOnly": false + }, + "isResolved": { + "type": "boolean", + "description": "Indicates whether the Error has been attended to.", + "readOnly": false + }, + "serviceInstance": { + "type": "string", + "description": "Qualified service instance (for example, 'SharePoint/Dublin') that published the service error information.", + "readOnly": false + } + } + }, + "microsoft.graph.groupWritebackConfiguration": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.writebackConfiguration" + }, + { + "type": "object", + "properties": { + "onPremisesGroupType": { + "type": "string", + "description": "Indicates the target on-premises group type the cloud object is written back as. Nullable. The possible values are: universalDistributionGroup, universalSecurityGroup, universalMailEnabledSecurityGroup.If the cloud group is a unified (Microsoft 365) group, this property can be one of the following: universalDistributionGroup, universalSecurityGroup, universalMailEnabledSecurityGroup. Microsoft Entra security groups can be written back as universalSecurityGroup. If isEnabled or the NewUnifiedGroupWritebackDefault group setting is true but this property isn't explicitly configured: Microsoft 365 groups are written back as universalDistributionGroup by defaultSecurity groups are written back as universalSecurityGroup by default.", + "readOnly": false + } + } + } + ] + }, + "microsoft.graph.apiApplication": { + "type": "object", + "properties": { + "acceptMappedClaims": { + "type": "boolean", + "description": "When true, allows an application to use claims mapping without specifying a custom signing key.", + "readOnly": false + }, + "knownClientApplications": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + }, + "description": "Used for bundling consent if you have a solution that contains two parts: a client app and a custom web API app. If you set the appID of the client app to this value, the user only consents once to the client app. Microsoft Entra ID knows that consenting to the client means implicitly consenting to the web API and automatically provisions service principals for both APIs at the same time. Both the client and the web API app must be registered in the same tenant.", + "readOnly": false + }, + "oauth2PermissionScopes": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.permissionScope" + }, + "description": "The definition of the delegated permissions exposed by the web API represented by this application registration. These delegated permissions may be requested by a client application, and may be granted by users or administrators during consent. Delegated permissions are sometimes referred to as OAuth 2.0 scopes.", + "readOnly": false + }, + "preAuthorizedApplications": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.preAuthorizedApplication" + }, + "description": "Lists the client applications that are preauthorized with the specified delegated permissions to access this application's APIs. Users aren't required to consent to any preauthorized application (for the permissions specified). However, any other permissions not listed in preAuthorizedApplications (requested through incremental consent for example) will require user consent.", + "readOnly": false + }, + "requestedAccessTokenVersion": { + "type": "integer", + "format": "int32", + "description": "Specifies the access token version expected by this resource. This changes the version and format of the JWT produced independent of the endpoint or client used to request the access token. The endpoint used, v1.0 or v2.0, is chosen by the client and only impacts the version of id_tokens. Resources need to explicitly configure requestedAccessTokenVersion to indicate the supported access token format. Possible values for requestedAccessTokenVersion are 1, 2, or null. If the value is null, this defaults to 1, which corresponds to the v1.0 endpoint. If signInAudience on the application is configured as AzureADandPersonalMicrosoftAccount or PersonalMicrosoftAccount, the value for this property must be 2.", + "readOnly": false + } + } + }, + "microsoft.graph.authenticationBehaviors": { + "type": "object", + "properties": { + "blockAzureADGraphAccess": { + "type": "boolean", + "description": "If false, allows the app to have extended access to Azure AD Graph until June 30, 2025 when Azure AD Graph is fully retired. For more information on Azure AD retirement updates, see June 2024 update on Azure AD Graph API retirement.", + "readOnly": false + }, + "removeUnverifiedEmailClaim": { + "type": "boolean", + "description": "If true, removes the email claim from tokens sent to an application when the email address's domain can't be verified.", + "readOnly": false + }, + "requireClientServicePrincipal": { + "type": "boolean", + "description": "If true, requires multitenant applications to have a service principal in the resource tenant as part of authorization checks before they're granted access tokens. This property is only modifiable for multitenant resource applications that rely on access from clients without a service principal and had this behavior as set to false by Microsoft. Tenant administrators should respond to security advisories sent through Azure Health Service events and the Microsoft 365 message center.", + "readOnly": false + } + } + }, + "microsoft.graph.certification": { + "type": "object", + "properties": { + "certificationDetailsUrl": { + "type": "string", + "description": "URL that shows certification details for the application.", + "readOnly": false + }, + "certificationExpirationDateTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp when the current certification for the application expires.", + "readOnly": false + }, + "isCertifiedByMicrosoft": { + "type": "boolean", + "description": "Indicates whether the application is certified by Microsoft.", + "readOnly": false + }, + "isPublisherAttested": { + "type": "boolean", + "description": "Indicates whether the application developer or publisher completed Publisher Attestation.", + "readOnly": false + }, + "lastCertificationDateTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp when the certification for the application was most recently added or updated.", + "readOnly": false + } + } + }, + "microsoft.graph.keyCredential": { + "type": "object", + "properties": { + "customKeyIdentifier": { + "type": "string", + "format": "base64url", + "description": "A 40-character binary type that can be used to identify the credential. Optional. When not provided in the payload, defaults to the thumbprint of the certificate.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "The friendly name for the key, with a maximum length of 90 characters. Longer values are accepted but shortened. Optional.", + "readOnly": false + }, + "endDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the credential expires. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.", + "readOnly": false + }, + "key": { + "type": "string", + "format": "base64url", + "description": "Value for the key credential. Should be a Base64 encoded value. From a .cer certificate, you can read the key using the Convert.ToBase64String() method. For more information, see Get the certificate key.", + "readOnly": false + }, + "keyId": { + "type": "string", + "format": "uuid", + "description": "The unique identifier for the key.", + "readOnly": false + }, + "startDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the credential becomes valid.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.", + "readOnly": false + }, + "type": { + "type": "string", + "description": "The type of key credential; for example, Symmetric, AsymmetricX509Cert, or X509CertAndPassword.", + "readOnly": false + }, + "usage": { + "type": "string", + "description": "A string that describes the purpose for which the key can be used; for example, None​, Verify​, PairwiseIdentifier​, Delegation​, Decrypt​, Encrypt​, HashedIdentifier​, SelfSignedTls, or Sign. If usage is Sign​, the type should be X509CertAndPassword​, and the passwordCredentials​ for signing should be defined.", + "readOnly": false + } + } + }, + "microsoft.graph.optionalClaims": { + "type": "object", + "properties": { + "accessToken": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.optionalClaim" + }, + "description": "The optional claims returned in the JWT access token.", + "readOnly": false + }, + "idToken": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.optionalClaim" + }, + "description": "The optional claims returned in the JWT ID token.", + "readOnly": false + }, + "saml2Token": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.optionalClaim" + }, + "description": "The optional claims returned in the SAML token.", + "readOnly": false + } + } + }, + "microsoft.graph.parentalControlSettings": { + "type": "object", + "properties": { + "countriesBlockedForMinors": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the two-letter ISO country codes. Access to the application will be blocked for minors from the countries specified in this list.", + "readOnly": false + }, + "legalAgeGroupRule": { + "type": "string", + "description": "Specifies the legal age group rule that applies to users of the app. Can be set to one of the following values: ValueDescriptionAllowDefault. Enforces the legal minimum. This means parental consent is required for minors in the European Union and Korea.RequireConsentForPrivacyServicesEnforces the user to specify date of birth to comply with COPPA rules. RequireConsentForMinorsRequires parental consent for ages below 18, regardless of country/region minor rules.RequireConsentForKidsRequires parental consent for ages below 14, regardless of country/region minor rules.BlockMinorsBlocks minors from using the app.", + "readOnly": false + } + } + }, + "microsoft.graph.publicClientApplication": { + "type": "object", + "properties": { + "redirectUris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. For iOS and macOS apps, specify the value following the syntax msauth.{BUNDLEID}://auth, replacing '{BUNDLEID}'. For example, if the bundle ID is com.microsoft.identitysample.MSALiOS, the URI is msauth.com.microsoft.identitysample.MSALiOS://auth.", + "readOnly": false + } + } + }, + "microsoft.graph.requestSignatureVerification": { + "type": "object", + "properties": { + "allowedWeakAlgorithms": { + "$ref": "#/definitions/microsoft.graph.weakAlgorithms", + "description": "Specifies whether this application accepts weak algorithms. The possible values are: rsaSha1, unknownFutureValue.", + "readOnly": false + }, + "isSignedRequestRequired": { + "type": "boolean", + "description": "Specifies whether signed authentication requests for this application should be required.", + "readOnly": false + } + } + }, + "microsoft.graph.requiredResourceAccess": { + "type": "object", + "properties": { + "resourceAccess": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.resourceAccess" + }, + "description": "The list of OAuth2.0 permission scopes and app roles that the application requires from the specified resource.", + "readOnly": false + }, + "resourceAppId": { + "type": "string", + "description": "The unique identifier for the resource that the application requires access to. This should be equal to the appId declared on the target resource application.", + "readOnly": false + } + } + }, + "microsoft.graph.servicePrincipalLockConfiguration": { + "type": "object", + "properties": { + "allProperties": { + "type": "boolean", + "description": "Enables locking all sensitive properties. The sensitive properties are keyCredentials, passwordCredentials, and tokenEncryptionKeyId.", + "readOnly": false + }, + "credentialsWithUsageSign": { + "type": "boolean", + "description": "Locks the keyCredentials and passwordCredentials properties for modification where credential usage type is Sign.", + "readOnly": false + }, + "credentialsWithUsageVerify": { + "type": "boolean", + "description": "Locks the keyCredentials and passwordCredentials properties for modification where credential usage type is Verify. This locks OAuth service principals.", + "readOnly": false + }, + "isEnabled": { + "type": "boolean", + "description": "Enables or disables service principal lock configuration. To allow the sensitive properties to be updated, update this property to false to disable the lock on the service principal.", + "readOnly": false + }, + "tokenEncryptionKeyId": { + "type": "boolean", + "description": "Locks the tokenEncryptionKeyId property for modification on the service principal.", + "readOnly": false + } + } + }, + "microsoft.graph.spaApplication": { + "type": "object", + "properties": { + "redirectUris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent.", + "readOnly": false + } + } + }, + "microsoft.graph.verifiedPublisher": { + "type": "object", + "properties": { + "addedDateTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp when the verified publisher was first added or most recently updated.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "The verified publisher name from the app publisher's Microsoft Partner Network (MPN) account.", + "readOnly": false + }, + "verifiedPublisherId": { + "type": "string", + "description": "The ID of the verified publisher from the app publisher's Partner Center account.", + "readOnly": false + } + } + }, + "microsoft.graph.webApplication": { + "type": "object", + "properties": { + "homePageUrl": { + "type": "string", + "description": "Home page or landing page of the application.", + "readOnly": false + }, + "implicitGrantSettings": { + "$ref": "#/definitions/microsoft.graph.implicitGrantSettings", + "description": "Specifies whether this web application can request tokens using the OAuth 2.0 implicit flow.", + "readOnly": false + }, + "logoutUrl": { + "type": "string", + "description": "Specifies the URL that will be used by Microsoft's authorization service to logout a user using front-channel, back-channel or SAML logout protocols.", + "readOnly": false + }, + "oauth2AllowImplicitFlow": { + "type": "boolean", + "description": "", + "readOnly": false + }, + "redirectUris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent.", + "readOnly": false + }, + "redirectUriSettings": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.redirectUriSettings" + }, + "description": "Specifies the index of the URLs where user tokens are sent for sign-in. This is only valid for applications using SAML.", + "readOnly": false + } + } + }, + "microsoft.graph.addIn": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The unique identifier for the addIn object.", + "readOnly": false + }, + "properties": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.keyValue" + }, + "description": "The collection of key-value pairs that define parameters that the consuming service can use or call. You must specify this property when performing a POST or a PATCH operation on the addIns collection. Required.", + "readOnly": false + }, + "type": { + "type": "string", + "description": "The unique name for the functionality exposed by the app.", + "readOnly": false + } + } + }, + "microsoft.graph.samlSingleSignOnSettings": { + "type": "object", + "properties": { + "relayState": { + "type": "string", + "description": "The relative URI the service provider would redirect to after completion of the single sign-on flow.", + "readOnly": false + } + } + }, + "microsoft.graph.federatedIdentityExpression": { + "type": "object", + "properties": { + "languageVersion": { + "type": "integer", + "format": "int32", + "description": "Indicated the language version to be used. Should always be set to 1. Required.", + "readOnly": false + }, + "value": { + "type": "string", + "description": "Indicates the configured expression. Required.", + "readOnly": false + } + } + }, + "microsoft.graph.writebackConfiguration": { + "type": "object", + "properties": { + "isEnabled": { + "type": "boolean", + "description": "Indicates whether writeback of cloud groups to on-premise Active Directory is enabled. Default value is true for Microsoft 365 groups and false for security groups.", + "readOnly": false + } + } + }, + "microsoft.graph.preAuthorizedApplication": { + "type": "object", + "properties": { + "appId": { + "type": "string", + "description": "The unique identifier for the client application.", + "readOnly": false + }, + "permissionIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The unique identifier for the scopes the client application is granted.", + "readOnly": false + } + } + }, + "microsoft.graph.optionalClaim": { + "type": "object", + "properties": { + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Additional properties of the claim. If a property exists in this collection, it modifies the behavior of the optional claim specified in the name property.", + "readOnly": false + }, + "essential": { + "type": "boolean", + "description": "If the value is true, the claim specified by the client is necessary to ensure a smooth authorization experience for the specific task requested by the end user. The default value is false.", + "readOnly": false + }, + "name": { + "type": "string", + "description": "The name of the optional claim.", + "readOnly": false + }, + "source": { + "type": "string", + "description": "The source (directory object) of the claim. There are predefined claims and user-defined claims from extension properties. If the source value is null, the claim is a predefined optional claim. If the source value is user, the value in the name property is the extension property from the user object.", + "readOnly": false + } + } + }, + "microsoft.graph.resourceAccess": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The unique identifier of an app role or delegated permission exposed by the resource application. For delegated permissions, this should match the id property of one of the delegated permissions in the oauth2PermissionScopes collection of the resource application's service principal. For app roles (application permissions), this should match the id property of an app role in the appRoles collection of the resource application's service principal.", + "readOnly": false + }, + "type": { + "type": "string", + "description": "Specifies whether the id property references a delegated permission or an app role (application permission). The possible values are: Scope (for delegated permissions) or Role (for app roles).", + "readOnly": false + } + } + }, + "microsoft.graph.implicitGrantSettings": { + "type": "object", + "properties": { + "enableAccessTokenIssuance": { + "type": "boolean", + "description": "Specifies whether this web application can request an access token using the OAuth 2.0 implicit flow.", + "readOnly": false + }, + "enableIdTokenIssuance": { + "type": "boolean", + "description": "Specifies whether this web application can request an ID token using the OAuth 2.0 implicit flow.", + "readOnly": false + } + } + }, + "microsoft.graph.redirectUriSettings": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int32", + "description": "Identifies the specific URI within the redirectURIs collection in SAML SSO flows. Defaults to null. The index is unique across all the redirectUris for the application.", + "readOnly": false + }, + "uri": { + "type": "string", + "description": "Specifies the URI that tokens are sent to.", + "readOnly": false + } + } + }, + "microsoft.graph.keyValue": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Key.", + "readOnly": false + }, + "value": { + "type": "string", + "description": "Value.", + "readOnly": false + } + } + }, + "microsoft.graph.nativeAuthenticationApisEnabled": { + "type": "string", + "enum": [ + "none", + "all" + ] + }, + "microsoft.graph.weakAlgorithms": { + "type": "string", + "enum": [ + "rsaSha1" + ] + } + }, + "paths": { + "/{rootScope}/providers/Microsoft.Graph/users/{userId}": { + "get": { + "tags": [ + "users" + ], + "description": "Get a user", + "operationId": "users_get", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the user", + "name": "userId", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "user get successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.user" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/groups/{groupId}": { + "put": { + "tags": [ + "groups" + ], + "description": "Create or update a group", + "operationId": "groups_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the group", + "name": "groupId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "group", + "description": "The group to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.group" + } + } + ], + "responses": { + "200": { + "description": "group created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.group" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/applications/{applicationId}": { + "put": { + "tags": [ + "applications" + ], + "description": "Create or update a application", + "operationId": "applications_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the application", + "name": "applicationId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "application", + "description": "The application to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.application" + } + } + ], + "responses": { + "200": { + "description": "application created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.application" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/servicePrincipals/{servicePrincipalId}": { + "put": { + "tags": [ + "servicePrincipals" + ], + "description": "Create or update a servicePrincipal", + "operationId": "servicePrincipals_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the servicePrincipal", + "name": "servicePrincipalId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "servicePrincipal", + "description": "The servicePrincipal to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.servicePrincipal" + } + } + ], + "responses": { + "200": { + "description": "servicePrincipal created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.servicePrincipal" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/applications/{applicationsId}/federatedIdentityCredentials/{federatedIdentityCredentialId}": { + "put": { + "tags": [ + "federatedIdentityCredentials" + ], + "description": "Create or update a federatedIdentityCredential", + "operationId": "federatedIdentityCredentials_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the federatedIdentityCredential", + "name": "federatedIdentityCredentialId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "federatedIdentityCredential", + "description": "The federatedIdentityCredential to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.federatedIdentityCredential" + } + }, + { + "in": "path", + "description": "The id of the applications", + "name": "applicationsId", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "federatedIdentityCredential created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.federatedIdentityCredential" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/oauth2PermissionGrants/{oAuth2PermissionGrantId}": { + "put": { + "tags": [ + "oauth2PermissionGrants" + ], + "description": "Create or update a oAuth2PermissionGrant", + "operationId": "oauth2PermissionGrants_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the oAuth2PermissionGrant", + "name": "oAuth2PermissionGrantId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "oAuth2PermissionGrant", + "description": "The oAuth2PermissionGrant to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.oAuth2PermissionGrant" + } + } + ], + "responses": { + "200": { + "description": "oAuth2PermissionGrant created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.oAuth2PermissionGrant" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/appRoleAssignedTo/{appRoleAssignmentId}": { + "put": { + "tags": [ + "appRoleAssignedTo" + ], + "description": "Create or update a appRoleAssignment", + "operationId": "appRoleAssignedTo_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the appRoleAssignment", + "name": "appRoleAssignmentId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "appRoleAssignment", + "description": "The appRoleAssignment to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.appRoleAssignment" + } + } + ], + "responses": { + "200": { + "description": "appRoleAssignment created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.appRoleAssignment" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/swagger/specification/microsoftgraph/resource-manager/microsoftgraph/official/v1.0/1.0.1.json b/swagger/specification/microsoftgraph/resource-manager/microsoftgraph/official/v1.0/1.0.1.json new file mode 100644 index 0000000..406107c --- /dev/null +++ b/swagger/specification/microsoftgraph/resource-manager/microsoftgraph/official/v1.0/1.0.1.json @@ -0,0 +1,1965 @@ +{ + "swagger": "2.0", + "info": { + "title": "Microsoft Graph", + "version": "v1.0" + }, + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "definitions": { + "microsoft.graph.relationshipSemantics": { + "type": "string", + "enum": [ + "append", + "replace" + ] + }, + "microsoft.graph.relationship": { + "type": "object", + "properties": { + "relationshipSemantics": { + "$ref": "#/definitions/microsoft.graph.relationshipSemantics", + "description": "Specifies the semantics used by the Microsoft Graph Bicep extension to process the relationships. The 'append' semantics means that the relationship items in the template are added to the existing list. The 'replace' semantics means that the relationship items in the template will replace all existing items in the Entra resource. The default value (if not set) is 'append'" + }, + "relationships": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The list of object ids to be included in the relationship." + } + }, + "required": [ + "relationships" + ] + }, + "microsoft.graph.user": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "businessPhones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The telephone numbers for the user. NOTE: Although it's a string collection, only one number can be set for this property. Read-only for users synced from the on-premises directory.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "The name displayed in the address book for the user. This value is usually the combination of the user's first name, middle initial, and family name. This property is required when a user is created and it can't be cleared during updates. Maximum length is 256 characters.", + "readOnly": false + }, + "givenName": { + "type": "string", + "description": "The given name (first name) of the user. Maximum length is 64 characters.", + "readOnly": false + }, + "jobTitle": { + "type": "string", + "description": "The user's job title. Maximum length is 128 characters.", + "readOnly": false + }, + "mail": { + "type": "string", + "description": "The SMTP address for the user, for example, jeff@contoso.com. Changes to this property update the user's proxyAddresses collection to include the value as an SMTP address. This property can't contain accent characters. NOTE: We don't recommend updating this property for Azure AD B2C user profiles. Use the otherMails property instead.", + "readOnly": false + }, + "mobilePhone": { + "type": "string", + "description": "The primary cellular telephone number for the user. Read-only for users synced from the on-premises directory. Maximum length is 64 characters.", + "readOnly": false + }, + "officeLocation": { + "type": "string", + "description": "The office location in the user's place of business.", + "readOnly": false + }, + "preferredLanguage": { + "type": "string", + "description": "The preferred language for the user. The preferred language format is based on RFC 4646. The name is a combination of an ISO 639 two-letter lowercase culture code associated with the language, and an ISO 3166 two-letter uppercase subculture code associated with the country or region. Example: 'en-US', or 'es-ES'.", + "readOnly": false + }, + "surname": { + "type": "string", + "description": "The user's surname (family name or last name). Maximum length is 64 characters.", + "readOnly": false + }, + "userPrincipalName": { + "type": "string", + "description": "The user principal name (UPN) of the user. The UPN is an Internet-style sign-in name for the user based on the Internet standard RFC 822. By convention, this value should map to the user's email name. The general format is alias@domain, where the domain must be present in the tenant's collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization.NOTE: This property can't contain accent characters. Only the following characters are allowed A - Z, a - z, 0 - 9, '. - _ ! # ^ ~. For the complete list of allowed characters, see username policies.", + "readOnly": false, + "x-ms-graph-key": true, + "x-constant-key": true + } + }, + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.group": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "classification": { + "type": "string", + "description": "Describes a classification for the group (such as low, medium, or high business impact).", + "readOnly": false + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "Timestamp of when the group was created. The value can't be modified and is automatically populated when the group is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "description": { + "type": "string", + "description": "An optional description for the group.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "The display name for the group. This property is required when a group is created and can't be cleared during updates. Maximum length is 256 characters.", + "readOnly": false + }, + "expirationDateTime": { + "type": "string", + "format": "date-time", + "description": "Timestamp of when the group is set to expire. It's null for security groups, but for Microsoft 365 groups, it represents when the group is set to expire as defined in the groupLifecyclePolicy. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "groupTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the group type and its membership. If the collection contains Unified, the group is a Microsoft 365 group; otherwise, it's either a security group or a distribution group. For details, see groups overview.If the collection includes DynamicMembership, the group has dynamic membership; otherwise, membership is static.", + "readOnly": false + }, + "isAssignableToRole": { + "type": "boolean", + "description": "Indicates whether this group can be assigned to a Microsoft Entra role. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group can't be a dynamic group (that is, groupTypes can't contain DynamicMembership). Only callers with at least the Privileged Role Administrator role can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Microsoft Entra role assignmentsUsing this feature requires a Microsoft Entra ID P1 license.", + "readOnly": false + }, + "isManagementRestricted": { + "type": "boolean", + "description": "Indicates whether the group is a member of a restricted management administrative unit. Read-only. To manage a group member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. See [restricted management administrative units](https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/admin-units-restricted-management).", + "readOnly": true + }, + "mail": { + "type": "string", + "description": "The SMTP address for the group, for example, 'serviceadmins@contoso.com'. Read-only.", + "readOnly": true + }, + "mailEnabled": { + "type": "boolean", + "description": "Specifies whether the group is mail-enabled. Required.", + "readOnly": false + }, + "mailNickname": { + "type": "string", + "description": "The mail alias for the group, unique for Microsoft 365 groups in the organization. Maximum length is 64 characters. This property can contain only characters in the ASCII character set 0 - 127 except the following characters: @ () / [] ' ; : <> , SPACE. Required.", + "readOnly": false + }, + "membershipRule": { + "type": "string", + "description": "The rule that determines members for this group if the group is a dynamic group (groupTypes contains DynamicMembership). For more information about the syntax of the membership rule, see Membership Rules syntax.", + "readOnly": false + }, + "membershipRuleProcessingState": { + "type": "string", + "description": "Indicates whether the dynamic membership processing is on or paused. Possible values are On or Paused.", + "readOnly": false + }, + "onPremisesDomainName": { + "type": "string", + "description": "Contains the on-premises domain FQDN, also called dnsDomainName synchronized from the on-premises directory. Read-only.", + "readOnly": true + }, + "onPremisesLastSyncDateTime": { + "type": "string", + "format": "date-time", + "description": "Indicates the last time at which the group was synced with the on-premises directory. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "onPremisesNetBiosName": { + "type": "string", + "description": "Contains the on-premises netBios name synchronized from the on-premises directory. Read-only.", + "readOnly": true + }, + "onPremisesProvisioningErrors": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.onPremisesProvisioningError" + }, + "description": "Errors when using Microsoft synchronization product during provisioning.", + "readOnly": true + }, + "onPremisesSamAccountName": { + "type": "string", + "description": "Contains the on-premises SAM account name synchronized from the on-premises directory. Read-only.", + "readOnly": true + }, + "onPremisesSecurityIdentifier": { + "type": "string", + "description": "Contains the on-premises security identifier (SID) for the group synchronized from on-premises to the cloud. Read-only.", + "readOnly": true + }, + "onPremisesSyncEnabled": { + "type": "boolean", + "description": "true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Read-only.", + "readOnly": true + }, + "preferredDataLocation": { + "type": "string", + "description": "The preferred data location for the Microsoft 365 group. By default, the group inherits the group creator's preferred data location. To set this property, the calling app must be granted the Directory.ReadWrite.All permission and the user be assigned at least one of the following Microsoft Entra roles: User Account Administrator Directory Writer Exchange Administrator SharePoint Administrator For more information about this property, see OneDrive Online Multi-Geo. Nullable.", + "readOnly": false + }, + "preferredLanguage": { + "type": "string", + "description": "The preferred language for a Microsoft 365 group. Should follow ISO 639-1 Code; for example, en-US.", + "readOnly": false + }, + "proxyAddresses": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Email addresses for the group that direct to the same group mailbox. For example: ['SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com']. The any operator is required to filter expressions on multi-valued properties. Read-only. Not nullable.", + "readOnly": true + }, + "renewedDateTime": { + "type": "string", + "format": "date-time", + "description": "Timestamp of when the group was last renewed. This value can't be modified directly and is only updated via the renew service action. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "securityEnabled": { + "type": "boolean", + "description": "Specifies whether the group is a security group. Required.", + "readOnly": false + }, + "securityIdentifier": { + "type": "string", + "description": "Security identifier of the group, used in Windows scenarios. Read-only.", + "readOnly": true + }, + "serviceProvisioningErrors": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.serviceProvisioningError" + }, + "description": "Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a group object.", + "readOnly": true + }, + "theme": { + "type": "string", + "description": "Specifies a Microsoft 365 group's color theme. Possible values are Teal, Purple, Green, Blue, Pink, Orange, or Red.", + "readOnly": false + }, + "uniqueName": { + "type": "string", + "description": "The unique identifier that can be assigned to a group and used as an alternate key. Immutable.", + "readOnly": false, + "x-ms-graph-key": true, + "x-constant-key": true + }, + "visibility": { + "type": "string", + "description": "Specifies the group join policy and group content visibility for groups. Possible values are: Private, Public, or HiddenMembership. HiddenMembership can be set only for Microsoft 365 groups when the groups are created. It can't be updated later. Other values of visibility can be updated after group creation. If visibility value isn't specified during group creation on Microsoft Graph, a security group is created as Private by default, and the Microsoft 365 group is Public. Groups assignable to roles are always Private. To learn more, see group visibility options. Nullable.", + "readOnly": false + }, + "members": { + "$ref": "#/definitions/microsoft.graph.relationship", + "description": "The members of this group, who can be users, devices, other groups, or service principals. Supports the List members, Add member, and Remove member operations. Nullable." + }, + "owners": { + "$ref": "#/definitions/microsoft.graph.relationship", + "description": "The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue." + } + }, + "required": [ + "displayName", + "mailEnabled", + "mailNickname", + "securityEnabled", + "uniqueName" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.application": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "addIns": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.addIn" + }, + "description": "Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams can set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on.", + "readOnly": false + }, + "api": { + "$ref": "#/definitions/microsoft.graph.apiApplication", + "description": "Specifies settings for an application that implements a web API.", + "readOnly": false + }, + "appId": { + "type": "string", + "description": "The unique identifier for the application that is assigned to an application by Microsoft Entra ID. Not nullable. Read-only. Alternate key.", + "readOnly": true + }, + "applicationTemplateId": { + "type": "string", + "description": "Unique identifier of the applicationTemplate. Read-only. null if the app wasn't created from an application template.", + "readOnly": true + }, + "appRoles": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.appRole" + }, + "description": "The collection of roles defined for the application. With app role assignments, these roles can be assigned to users, groups, or service principals associated with other applications. Not nullable.", + "readOnly": false + }, + "authenticationBehaviors": { + "$ref": "#/definitions/microsoft.graph.authenticationBehaviors", + "description": "", + "readOnly": false + }, + "certification": { + "$ref": "#/definitions/microsoft.graph.certification", + "description": "Specifies the certification status of the application.", + "readOnly": true + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time the application was registered. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "defaultRedirectUri": { + "type": "string", + "description": "", + "readOnly": false + }, + "description": { + "type": "string", + "description": "Free text field to provide a description of the application object to end users. The maximum allowed size is 1,024 characters.", + "readOnly": false + }, + "disabledByMicrosoftStatus": { + "type": "string", + "description": "Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement).", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "The display name for the application. Maximum length is 256 characters.", + "readOnly": false + }, + "groupMembershipClaims": { + "type": "string", + "description": "Configures the groups claim issued in a user or OAuth 2.0 access token that the application expects. To set this attribute, use one of the following valid string values: None, SecurityGroup (for security groups and Microsoft Entra roles), All (this gets all of the security groups, distribution groups, and Microsoft Entra directory roles that the signed-in user is a member of).", + "readOnly": false + }, + "identifierUris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as the prefix for the scopes you reference in your API's code, and it must be globally unique across Microsoft Entra ID. For more information on valid identifierUris patterns and best practices, see Microsoft Entra application registration security best practices. Not nullable.", + "readOnly": false + }, + "info": { + "$ref": "#/definitions/microsoft.graph.informationalUrl", + "description": "Basic profile information of the application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps.", + "readOnly": false + }, + "isDeviceOnlyAuthSupported": { + "type": "boolean", + "description": "Specifies whether this application supports device authentication without a user. The default is false.", + "readOnly": false + }, + "isFallbackPublicClient": { + "type": "boolean", + "description": "Specifies the fallback application type as public client, such as an installed application running on a mobile device. The default value is false, which means the fallback application type is confidential client such as a web app. There are certain scenarios where Microsoft Entra ID can't determine the client application type. For example, the ROPC flow where it's configured without specifying a redirect URI. In those cases, Microsoft Entra ID interprets the application type based on the value of this property.", + "readOnly": false + }, + "keyCredentials": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.keyCredential" + }, + "description": "The collection of key credentials associated with the application. Not nullable.", + "readOnly": false + }, + "logo": { + "type": "string", + "format": "base64url", + "description": "The main logo for the application. Not nullable.", + "readOnly": false + }, + "nativeAuthenticationApisEnabled": { + "$ref": "#/definitions/microsoft.graph.nativeAuthenticationApisEnabled", + "description": "Specifies whether the Native Authentication APIs are enabled for the application. The possible values are: none and all. Default is none. For more information, see Native Authentication.", + "readOnly": false + }, + "notes": { + "type": "string", + "description": "Notes relevant for the management of the application.", + "readOnly": false + }, + "optionalClaims": { + "$ref": "#/definitions/microsoft.graph.optionalClaims", + "description": "Application developers can configure optional claims in their Microsoft Entra applications to specify the claims that are sent to their application by the Microsoft security token service. For more information, see How to: Provide optional claims to your app.", + "readOnly": false + }, + "parentalControlSettings": { + "$ref": "#/definitions/microsoft.graph.parentalControlSettings", + "description": "Specifies parental control settings for an application.", + "readOnly": false + }, + "passwordCredentials": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.passwordCredential" + }, + "description": "The collection of password credentials associated with the application. Not nullable.", + "readOnly": false + }, + "publicClient": { + "$ref": "#/definitions/microsoft.graph.publicClientApplication", + "description": "Specifies settings for installed clients such as desktop or mobile devices.", + "readOnly": false + }, + "publisherDomain": { + "type": "string", + "description": "The verified publisher domain for the application. Read-only. For more information, see How to: Configure an application's publisher domain.", + "readOnly": true + }, + "requestSignatureVerification": { + "$ref": "#/definitions/microsoft.graph.requestSignatureVerification", + "description": "Specifies whether this application requires Microsoft Entra ID to verify the signed authentication requests.", + "readOnly": false + }, + "requiredResourceAccess": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.requiredResourceAccess" + }, + "description": "Specifies the resources that the application needs to access. This property also specifies the set of delegated permissions and application roles that it needs for each of those resources. This configuration of access to the required resources drives the consent experience. No more than 50 resource services (APIs) can be configured. Beginning mid-October 2021, the total number of required permissions must not exceed 400. For more information, see Limits on requested permissions per app. Not nullable.", + "readOnly": false + }, + "samlMetadataUrl": { + "type": "string", + "description": "The URL where the service exposes SAML metadata for federation. This property is valid only for single-tenant applications. Nullable.", + "readOnly": false + }, + "serviceManagementReference": { + "type": "string", + "description": "References application or service contact information from a Service or Asset Management database. Nullable.", + "readOnly": false + }, + "servicePrincipalLockConfiguration": { + "$ref": "#/definitions/microsoft.graph.servicePrincipalLockConfiguration", + "description": "Specifies whether sensitive properties of a multitenant application should be locked for editing after the application is provisioned in a tenant. Nullable. null by default.", + "readOnly": false + }, + "signInAudience": { + "type": "string", + "description": "Specifies the Microsoft accounts that are supported for the current application. The possible values are: AzureADMyOrg (default), AzureADMultipleOrgs, AzureADandPersonalMicrosoftAccount, and PersonalMicrosoftAccount. See more in the table. The value of this object also limits the number of permissions an app can request. For more information, see Limits on requested permissions per app. The value for this property has implications on other app object properties. As a result, if you change this property, you might need to change other properties first.", + "readOnly": false + }, + "spa": { + "$ref": "#/definitions/microsoft.graph.spaApplication", + "description": "Specifies settings for a single-page application, including sign out URLs and redirect URIs for authorization codes and access tokens.", + "readOnly": false + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Custom strings that can be used to categorize and identify the application. Not nullable.", + "readOnly": false + }, + "tokenEncryptionKeyId": { + "type": "string", + "format": "uuid", + "description": "Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID encrypts all the tokens it emits by using the key this property points to. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user.", + "readOnly": false + }, + "uniqueName": { + "type": "string", + "description": "The unique identifier that can be assigned to an application and used as an alternate key. Immutable.", + "readOnly": false, + "x-ms-graph-key": true, + "x-constant-key": true + }, + "verifiedPublisher": { + "$ref": "#/definitions/microsoft.graph.verifiedPublisher", + "description": "Specifies the verified publisher of the application. For more information about how publisher verification helps support application security, trustworthiness, and compliance, see Publisher verification.", + "readOnly": true + }, + "web": { + "$ref": "#/definitions/microsoft.graph.webApplication", + "description": "Specifies settings for a web application.", + "readOnly": false + }, + "owners": { + "$ref": "#/definitions/microsoft.graph.relationship", + "description": "Directory objects that are owners of this application. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object." + } + }, + "required": [ + "displayName", + "uniqueName" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.servicePrincipal": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "accountEnabled": { + "type": "boolean", + "description": "true if the service principal account is enabled; otherwise, false. If set to false, then no users are able to sign in to this app, even if they're assigned to it.", + "readOnly": false + }, + "addIns": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.addIn" + }, + "description": "Defines custom behavior that a consuming service can use to call an app in specific contexts. For example, applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This lets services like Microsoft 365 call the application in the context of a document the user is working on.", + "readOnly": false + }, + "alternativeNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Used to retrieve service principals by subscription, identify resource group and full resource IDs for managed identities.", + "readOnly": false + }, + "appDescription": { + "type": "string", + "description": "The description exposed by the associated application.", + "readOnly": false + }, + "appDisplayName": { + "type": "string", + "description": "The display name exposed by the associated application. Maximum length is 256 characters.", + "readOnly": false + }, + "appId": { + "type": "string", + "description": "The unique identifier for the associated application (its appId property). Alternate key.", + "readOnly": false, + "x-ms-graph-key": true + }, + "applicationTemplateId": { + "type": "string", + "description": "Unique identifier of the applicationTemplate. Read-only. null if the service principal wasn't created from an application template.", + "readOnly": true + }, + "appOwnerOrganizationId": { + "type": "string", + "format": "uuid", + "description": "Contains the tenant ID where the application is registered. This is applicable only to service principals backed by applications.", + "readOnly": true + }, + "appRoleAssignmentRequired": { + "type": "boolean", + "description": "Specifies whether users or other service principals need to be granted an app role assignment for this service principal before users can sign in or apps can get tokens. The default value is false. Not nullable.", + "readOnly": false + }, + "appRoles": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.appRole" + }, + "description": "The roles exposed by the application that's linked to this service principal. For more information, see the appRoles property definition on the application entity. Not nullable.", + "readOnly": false + }, + "customSecurityAttributes": { + "$ref": "#/definitions/microsoft.graph.customSecurityAttributeValue", + "description": "An open complex type that holds the value of a custom security attribute that is assigned to a directory object. Nullable. Filter value is case sensitive. To read this property, the calling app must be assigned the CustomSecAttributeAssignment.Read.All permission. To write this property, the calling app must be assigned the CustomSecAttributeAssignment.ReadWrite.All permissions. To read or write this property in delegated scenarios, the admin must be assigned the Attribute Assignment Administrator role.", + "readOnly": false + }, + "description": { + "type": "string", + "description": "Free text field to provide an internal end-user facing description of the service principal. End-user portals such MyApps displays the application description in this field. The maximum allowed size is 1,024 characters.", + "readOnly": false + }, + "disabledByMicrosoftStatus": { + "type": "string", + "description": "Specifies whether Microsoft has disabled the registered application. Possible values are: null (default value), NotDisabled, and DisabledDueToViolationOfServicesAgreement (reasons include suspicious, abusive, or malicious activity, or a violation of the Microsoft Services Agreement).", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "The display name for the service principal.", + "readOnly": false + }, + "homepage": { + "type": "string", + "description": "Home page or landing page of the application.", + "readOnly": false + }, + "info": { + "$ref": "#/definitions/microsoft.graph.informationalUrl", + "description": "Basic profile information of the acquired application such as app's marketing, support, terms of service and privacy statement URLs. The terms of service and privacy statement are surfaced to users through the user consent experience. For more info, see How to: Add Terms of service and privacy statement for registered Microsoft Entra apps.", + "readOnly": false + }, + "keyCredentials": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.keyCredential" + }, + "description": "The collection of key credentials associated with the service principal. Not nullable.", + "readOnly": false + }, + "loginUrl": { + "type": "string", + "description": "Specifies the URL where the service provider redirects the user to Microsoft Entra ID to authenticate. Microsoft Entra ID uses the URL to launch the application from Microsoft 365 or the Microsoft Entra My Apps. When blank, Microsoft Entra ID performs IdP-initiated sign-on for applications configured with SAML-based single sign-on. The user launches the application from Microsoft 365, the Microsoft Entra My Apps, or the Microsoft Entra SSO URL.", + "readOnly": false + }, + "logoutUrl": { + "type": "string", + "description": "Specifies the URL that the Microsoft's authorization service uses to sign out a user using OpenID Connect front-channel, back-channel, or SAML sign out protocols.", + "readOnly": false + }, + "notes": { + "type": "string", + "description": "Free text field to capture information about the service principal, typically used for operational purposes. Maximum allowed size is 1,024 characters.", + "readOnly": false + }, + "notificationEmailAddresses": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the list of email addresses where Microsoft Entra ID sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Microsoft Entra Gallery applications.", + "readOnly": false + }, + "oauth2PermissionScopes": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.permissionScope" + }, + "description": "The delegated permissions exposed by the application. For more information, see the oauth2PermissionScopes property on the application entity's api property. Not nullable.", + "readOnly": false + }, + "passwordCredentials": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.passwordCredential" + }, + "description": "The collection of password credentials associated with the application. Not nullable.", + "readOnly": false + }, + "preferredSingleSignOnMode": { + "type": "string", + "description": "Specifies the single sign-on mode configured for this application. Microsoft Entra ID uses the preferred single sign-on mode to launch the application from Microsoft 365 or the My Apps portal. The supported values are password, saml, notSupported, and oidc. Note: This field might be null for older SAML apps and for OIDC applications where it isn't set automatically.", + "readOnly": false + }, + "preferredTokenSigningKeyThumbprint": { + "type": "string", + "description": "This property can be used on SAML applications (apps that have preferredSingleSignOnMode set to saml) to control which certificate is used to sign the SAML responses. For applications that aren't SAML, don't write or otherwise rely on this property.", + "readOnly": false + }, + "replyUrls": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The URLs that user tokens are sent to for sign in with the associated application, or the redirect URIs that OAuth 2.0 authorization codes and access tokens are sent to for the associated application. Not nullable.", + "readOnly": false + }, + "resourceSpecificApplicationPermissions": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.resourceSpecificPermission" + }, + "description": "The resource-specific application permissions exposed by this application. Currently, resource-specific permissions are only supported for Teams apps accessing to specific chats and teams using Microsoft Graph. Read-only.", + "readOnly": true + }, + "samlSingleSignOnSettings": { + "$ref": "#/definitions/microsoft.graph.samlSingleSignOnSettings", + "description": "The collection for settings related to saml single sign-on.", + "readOnly": false + }, + "servicePrincipalNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Contains the list of identifiersUris, copied over from the associated application. Additional values can be added to hybrid applications. These values can be used to identify the permissions exposed by this app within Microsoft Entra ID. For example,Client apps can specify a resource URI that is based on the values of this property to acquire an access token, which is the URI returned in the 'aud' claim.The any operator is required for filter expressions on multi-valued properties. Not nullable.", + "readOnly": false + }, + "servicePrincipalType": { + "type": "string", + "description": "Identifies whether the service principal represents an application, a managed identity, or a legacy application. This is set by Microsoft Entra ID internally. The servicePrincipalType property can be set to three different values: Application - A service principal that represents an application or service. The appId property identifies the associated app registration, and matches the appId of an application, possibly from a different tenant. If the associated app registration is missing, tokens aren't issued for the service principal.ManagedIdentity - A service principal that represents a managed identity. Service principals representing managed identities can be granted access and permissions, but can't be updated or modified directly.Legacy - A service principal that represents an app created before app registrations, or through legacy experiences. A legacy service principal can have credentials, service principal names, reply URLs, and other properties that are editable by an authorized user, but doesn't have an associated app registration. The appId value doesn't associate the service principal with an app registration. The service principal can only be used in the tenant where it was created.SocialIdp - For internal use.", + "readOnly": false + }, + "signInAudience": { + "type": "string", + "description": "Specifies the Microsoft accounts that are supported for the current application. Read-only. Supported values are:AzureADMyOrg: Users with a Microsoft work or school account in my organization's Microsoft Entra tenant (single-tenant).AzureADMultipleOrgs: Users with a Microsoft work or school account in any organization's Microsoft Entra tenant (multitenant).AzureADandPersonalMicrosoftAccount: Users with a personal Microsoft account, or a work or school account in any organization's Microsoft Entra tenant.PersonalMicrosoftAccount: Users with a personal Microsoft account only.", + "readOnly": true + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Custom strings that can be used to categorize and identify the service principal. Not nullable.", + "readOnly": false + }, + "tokenEncryptionKeyId": { + "type": "string", + "format": "uuid", + "description": "Specifies the keyId of a public key from the keyCredentials collection. When configured, Microsoft Entra ID issues tokens for this application encrypted using the key specified by this property. The application code that receives the encrypted token must use the matching private key to decrypt the token before it can be used for the signed-in user.", + "readOnly": false + }, + "verifiedPublisher": { + "$ref": "#/definitions/microsoft.graph.verifiedPublisher", + "description": "Specifies the verified publisher of the application that's linked to this service principal.", + "readOnly": false + }, + "owners": { + "$ref": "#/definitions/microsoft.graph.relationship", + "description": "Directory objects that are owners of this servicePrincipal. The owners are a set of nonadmin users or servicePrincipals who are allowed to modify this object." + } + }, + "required": [ + "appId" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.federatedIdentityCredential": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.entity" + }, + { + "type": "object", + "properties": { + "audiences": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The audience that can appear in the external token. This field is mandatory and should be set to api://AzureADTokenExchange for Microsoft Entra ID. It says what Microsoft identity platform should accept in the aud claim in the incoming token. This value represents Microsoft Entra ID in your external identity provider and has no fixed value across identity providers - you might need to create a new application registration in your identity provider to serve as the audience of this token. This field can only accept a single value and has a limit of 600 characters. Required.", + "readOnly": false + }, + "description": { + "type": "string", + "description": "The unvalidated description of the federated identity credential, provided by the user. It has a limit of 600 characters. Optional.", + "readOnly": false + }, + "issuer": { + "type": "string", + "description": "The URL of the external identity provider, which must match the issuer claim of the external token being exchanged. The combination of the values of issuer and subject must be unique within the app. It has a limit of 600 characters. Required.", + "readOnly": false + }, + "name": { + "type": "string", + "description": "The unique identifier for the federated identity credential, which has a limit of 120 characters and must be URL friendly. The string is immutable after it's created. Alternate key. Required. Not nullable.", + "readOnly": false, + "x-ms-graph-key": true + }, + "subject": { + "type": "string", + "description": "Required. The identifier of the external software workload within the external identity provider. Like the audience value, it has no fixed format; each identity provider uses their own - sometimes a GUID, sometimes a colon delimited identifier, sometimes arbitrary strings. The value here must match the sub claim within the token presented to Microsoft Entra ID. The combination of issuer and subject must be unique within the app. It has a limit of 600 characters.", + "readOnly": false + } + }, + "required": [ + "audiences", + "issuer", + "name", + "subject" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.oAuth2PermissionGrant": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.entity" + }, + { + "type": "object", + "properties": { + "clientId": { + "type": "string", + "description": "The object id (not appId) of the client service principal for the application that's authorized to act on behalf of a signed-in user when accessing an API. Required.", + "readOnly": false + }, + "consentType": { + "type": "string", + "description": "Indicates if authorization is granted for the client application to impersonate all users or only a specific user. AllPrincipals indicates authorization to impersonate all users. Principal indicates authorization to impersonate a specific user. Consent on behalf of all users can be granted by an administrator. Nonadmin users might be authorized to consent on behalf of themselves in some cases, for some delegated permissions. Required.", + "readOnly": false + }, + "principalId": { + "type": "string", + "description": "The id of the user on behalf of whom the client is authorized to access the resource, when consentType is Principal. If consentType is AllPrincipals this value is null. Required when consentType is Principal.", + "readOnly": false + }, + "resourceId": { + "type": "string", + "description": "The id of the resource service principal to which access is authorized. This identifies the API that the client is authorized to attempt to call on behalf of a signed-in user.", + "readOnly": false + }, + "scope": { + "type": "string", + "description": "A space-separated list of the claim values for delegated permissions that should be included in access tokens for the resource application (the API). For example, openid User.Read GroupMember.Read.All. Each claim value should match the value field of one of the delegated permissions defined by the API, listed in the oauth2PermissionScopes property of the resource service principal. Must not exceed 3,850 characters in length.", + "readOnly": false + } + }, + "required": [ + "clientId", + "consentType", + "resourceId" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.appRoleAssignment": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.directoryObject" + }, + { + "type": "object", + "properties": { + "appRoleId": { + "type": "string", + "format": "uuid", + "description": "The identifier (id) for the app role that's assigned to the principal. This app role must be exposed in the appRoles property on the resource application's service principal (resourceId). If the resource application hasn't declared any app roles, a default app role ID of 00000000-0000-0000-0000-000000000000 can be specified to signal that the principal is assigned to the resource app without any specific app roles. Required on create.", + "readOnly": false + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "The time when the app role assignment was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.", + "readOnly": true + }, + "principalDisplayName": { + "type": "string", + "description": "The display name of the user, group, or service principal that was granted the app role assignment. Maximum length is 256 characters. Read-only.", + "readOnly": true + }, + "principalId": { + "type": "string", + "format": "uuid", + "description": "The unique identifier (id) for the user, security group, or service principal being granted the app role. Security groups with dynamic memberships are supported. Required on create.", + "readOnly": false + }, + "principalType": { + "type": "string", + "description": "The type of the assigned principal. This can either be User, Group, or ServicePrincipal. Read-only.", + "readOnly": true + }, + "resourceDisplayName": { + "type": "string", + "description": "The display name of the resource app's service principal to which the assignment is made. Maximum length is 256 characters.", + "readOnly": false + }, + "resourceId": { + "type": "string", + "format": "uuid", + "description": "The unique identifier (id) for the resource service principal for which the assignment is made. Required on create.", + "readOnly": false + } + }, + "required": [ + "appRoleId", + "principalId", + "resourceId" + ], + "x-ms-graph-resource": true + } + ] + }, + "microsoft.graph.appRole": { + "type": "object", + "properties": { + "allowedMemberTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment to other applications' service principals are also known as application permissions. The 'Application' value is only supported for app roles defined on application entities.", + "readOnly": false + }, + "description": { + "type": "string", + "description": "The description for the app role. This is displayed when the app role is being assigned and, if the app role functions as an application permission, during consent experiences.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "Display name for the permission that appears in the app role assignment and consent experiences.", + "readOnly": false + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Unique role identifier inside the appRoles collection. When creating a new app role, a new GUID identifier must be provided.", + "readOnly": false + }, + "isEnabled": { + "type": "boolean", + "description": "When creating or updating an app role, this must be set to true (which is the default). To delete a role, this must first be set to false. At that point, in a subsequent call, this role may be removed.", + "readOnly": false + }, + "origin": { + "type": "string", + "description": "Specifies if the app role is defined on the application object or on the servicePrincipal entity. Must not be included in any POST or PATCH requests. Read-only.", + "readOnly": true + }, + "value": { + "type": "string", + "description": "Specifies the value to include in the roles claim in ID tokens and access tokens authenticating an assigned user or service principal. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , -. / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with ..", + "readOnly": false + } + } + }, + "microsoft.graph.informationalUrl": { + "type": "object", + "properties": { + "logoUrl": { + "type": "string", + "description": "CDN URL to the application's logo, Read-only.", + "readOnly": true + }, + "marketingUrl": { + "type": "string", + "description": "Link to the application's marketing page. For example, https://www.contoso.com/app/marketing.", + "readOnly": false + }, + "privacyStatementUrl": { + "type": "string", + "description": "Link to the application's privacy statement. For example, https://www.contoso.com/app/privacy.", + "readOnly": false + }, + "supportUrl": { + "type": "string", + "description": "Link to the application's support page. For example, https://www.contoso.com/app/support.", + "readOnly": false + }, + "termsOfServiceUrl": { + "type": "string", + "description": "Link to the application's terms of service statement. For example, https://www.contoso.com/app/termsofservice.", + "readOnly": false + } + } + }, + "microsoft.graph.passwordCredential": { + "type": "object", + "properties": { + "displayName": { + "type": "string", + "description": "Friendly name for the password. Optional.", + "readOnly": false + }, + "endDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the password expires represented using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional.", + "readOnly": false + }, + "hint": { + "type": "string", + "description": "Contains the first three characters of the password. Read-only.", + "readOnly": true + }, + "keyId": { + "type": "string", + "format": "uuid", + "description": "The unique identifier for the password.", + "readOnly": false + }, + "secretText": { + "type": "string", + "description": "Read-only; Contains the strong passwords generated by Microsoft Entra ID that are 16-64 characters in length. The generated password value is only returned during the initial POST request to addPassword. There is no way to retrieve this password in the future.", + "readOnly": true + }, + "startDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the password becomes valid. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Optional.", + "readOnly": false + } + } + }, + "microsoft.graph.permissionScope": { + "type": "object", + "properties": { + "adminConsentDescription": { + "type": "string", + "description": "A description of the delegated permissions, intended to be read by an administrator granting the permission on behalf of all users. This text appears in tenant-wide admin consent experiences.", + "readOnly": false + }, + "adminConsentDisplayName": { + "type": "string", + "description": "The permission's title, intended to be read by an administrator granting the permission on behalf of all users.", + "readOnly": false + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Unique delegated permission identifier inside the collection of delegated permissions defined for a resource application.", + "readOnly": false + }, + "isEnabled": { + "type": "boolean", + "description": "When you create or update a permission, this property must be set to true (which is the default). To delete a permission, this property must first be set to false. At that point, in a subsequent call, the permission may be removed.", + "readOnly": false + }, + "type": { + "type": "string", + "description": "The possible values are: User and Admin. Specifies whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator consent should always be required. While Microsoft Graph defines the default consent requirement for each permission, the tenant administrator may override the behavior in their organization (by allowing, restricting, or limiting user consent to this delegated permission). For more information, see Configure how users consent to applications.", + "readOnly": false + }, + "userConsentDescription": { + "type": "string", + "description": "A description of the delegated permissions, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves.", + "readOnly": false + }, + "userConsentDisplayName": { + "type": "string", + "description": "A title for the permission, intended to be read by a user granting the permission on their own behalf. This text appears in consent experiences where the user is consenting only on behalf of themselves.", + "readOnly": false + }, + "value": { + "type": "string", + "description": "Specifies the value to include in the scp (scope) claim in access tokens. Must not exceed 120 characters in length. Allowed characters are : ! # $ % & ' ( ) * + , -. / : ; = ? @ [ ] ^ + _ { } ~, and characters in the ranges 0-9, A-Z and a-z. Any other character, including the space character, aren't allowed. May not begin with ..", + "readOnly": false + } + } + }, + "microsoft.graph.directoryObject": { + "allOf": [ + { + "$ref": "#/definitions/microsoft.graph.entity" + }, + { + "type": "object", + "properties": { + "deletedDateTime": { + "type": "string", + "format": "date-time", + "description": "Date and time when this object was deleted. Always null when the object hasn't been deleted.", + "readOnly": true + } + } + } + ] + }, + "microsoft.graph.entity": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The unique identifier for an entity. Read-only.", + "readOnly": true + } + } + }, + "microsoft.graph.onPremisesProvisioningError": { + "type": "object", + "properties": { + "category": { + "type": "string", + "description": "Category of the provisioning error. Note: Currently, there is only one possible value. Possible value: PropertyConflict - indicates a property value is not unique. Other objects contain the same value for the property.", + "readOnly": false + }, + "occurredDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the error occurred.", + "readOnly": false + }, + "propertyCausingError": { + "type": "string", + "description": "Name of the directory property causing the error. Current possible values: UserPrincipalName or ProxyAddress.", + "readOnly": false + }, + "value": { + "type": "string", + "description": "Value of the property causing the error.", + "readOnly": false + } + } + }, + "microsoft.graph.serviceProvisioningError": { + "type": "object", + "properties": { + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the error occurred.", + "readOnly": false + }, + "isResolved": { + "type": "boolean", + "description": "Indicates whether the error has been attended to.", + "readOnly": false + }, + "serviceInstance": { + "type": "string", + "description": "Qualified service instance (for example, 'SharePoint/Dublin') that published the service error information.", + "readOnly": false + } + } + }, + "microsoft.graph.addIn": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The unique identifier for the addIn object.", + "readOnly": false + }, + "properties": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.keyValue" + }, + "description": "The collection of key-value pairs that define parameters that the consuming service can use or call. You must specify this property when performing a POST or a PATCH operation on the addIns collection. Required.", + "readOnly": false + }, + "type": { + "type": "string", + "description": "The unique name for the functionality exposed by the app.", + "readOnly": false + } + } + }, + "microsoft.graph.apiApplication": { + "type": "object", + "properties": { + "acceptMappedClaims": { + "type": "boolean", + "description": "When true, allows an application to use claims mapping without specifying a custom signing key.", + "readOnly": false + }, + "knownClientApplications": { + "type": "array", + "items": { + "type": "string", + "format": "uuid" + }, + "description": "Used for bundling consent if you have a solution that contains two parts: a client app and a custom web API app. If you set the appID of the client app to this value, the user only consents once to the client app. Microsoft Entra ID knows that consenting to the client means implicitly consenting to the web API and automatically provisions service principals for both APIs at the same time. Both the client and the web API app must be registered in the same tenant.", + "readOnly": false + }, + "oauth2PermissionScopes": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.permissionScope" + }, + "description": "The definition of the delegated permissions exposed by the web API represented by this application registration. These delegated permissions may be requested by a client application, and may be granted by users or administrators during consent. Delegated permissions are sometimes referred to as OAuth 2.0 scopes.", + "readOnly": false + }, + "preAuthorizedApplications": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.preAuthorizedApplication" + }, + "description": "Lists the client applications that are preauthorized with the specified delegated permissions to access this application's APIs. Users aren't required to consent to any preauthorized application (for the permissions specified). However, any other permissions not listed in preAuthorizedApplications (requested through incremental consent for example) will require user consent.", + "readOnly": false + }, + "requestedAccessTokenVersion": { + "type": "integer", + "format": "int32", + "description": "Specifies the access token version expected by this resource. This changes the version and format of the JWT produced independent of the endpoint or client used to request the access token. The endpoint used, v1.0 or v2.0, is chosen by the client and only impacts the version of id_tokens. Resources need to explicitly configure requestedAccessTokenVersion to indicate the supported access token format. Possible values for requestedAccessTokenVersion are 1, 2, or null. If the value is null, this defaults to 1, which corresponds to the v1.0 endpoint. If signInAudience on the application is configured as AzureADandPersonalMicrosoftAccount or PersonalMicrosoftAccount, the value for this property must be 2.", + "readOnly": false + } + } + }, + "microsoft.graph.authenticationBehaviors": { + "type": "object", + "properties": { + "blockAzureADGraphAccess": { + "type": "boolean", + "description": "", + "readOnly": false + }, + "removeUnverifiedEmailClaim": { + "type": "boolean", + "description": "", + "readOnly": false + }, + "requireClientServicePrincipal": { + "type": "boolean", + "description": "", + "readOnly": false + } + } + }, + "microsoft.graph.certification": { + "type": "object", + "properties": { + "certificationDetailsUrl": { + "type": "string", + "description": "URL that shows certification details for the application.", + "readOnly": false + }, + "certificationExpirationDateTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp when the current certification for the application expires.", + "readOnly": false + }, + "isCertifiedByMicrosoft": { + "type": "boolean", + "description": "Indicates whether the application is certified by Microsoft.", + "readOnly": false + }, + "isPublisherAttested": { + "type": "boolean", + "description": "Indicates whether the application developer or publisher completed Publisher Attestation.", + "readOnly": false + }, + "lastCertificationDateTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp when the certification for the application was most recently added or updated.", + "readOnly": false + } + } + }, + "microsoft.graph.keyCredential": { + "type": "object", + "properties": { + "customKeyIdentifier": { + "type": "string", + "format": "base64url", + "description": "A 40-character binary type that can be used to identify the credential. Optional. When not provided in the payload, defaults to the thumbprint of the certificate.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "The friendly name for the key, with a maximum length of 90 characters. Longer values are accepted but shortened. Optional.", + "readOnly": false + }, + "endDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the credential expires. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.", + "readOnly": false + }, + "key": { + "type": "string", + "format": "base64url", + "description": "The certificate's raw data in byte array converted to Base64 string. From a .cer certificate, you can read the key using the Convert.ToBase64String() method. For more information, see Get the certificate key.", + "readOnly": false + }, + "keyId": { + "type": "string", + "format": "uuid", + "description": "The unique identifier (GUID) for the key.", + "readOnly": false + }, + "startDateTime": { + "type": "string", + "format": "date-time", + "description": "The date and time at which the credential becomes valid.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.", + "readOnly": false + }, + "type": { + "type": "string", + "description": "The type of key credential; for example, Symmetric, AsymmetricX509Cert.", + "readOnly": false + }, + "usage": { + "type": "string", + "description": "A string that describes the purpose for which the key can be used; for example, Verify.", + "readOnly": false + } + } + }, + "microsoft.graph.optionalClaims": { + "type": "object", + "properties": { + "accessToken": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.optionalClaim" + }, + "description": "The optional claims returned in the JWT access token.", + "readOnly": false + }, + "idToken": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.optionalClaim" + }, + "description": "The optional claims returned in the JWT ID token.", + "readOnly": false + }, + "saml2Token": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.optionalClaim" + }, + "description": "The optional claims returned in the SAML token.", + "readOnly": false + } + } + }, + "microsoft.graph.parentalControlSettings": { + "type": "object", + "properties": { + "countriesBlockedForMinors": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the two-letter ISO country codes. Access to the application will be blocked for minors from the countries specified in this list.", + "readOnly": false + }, + "legalAgeGroupRule": { + "type": "string", + "description": "Specifies the legal age group rule that applies to users of the app. Can be set to one of the following values: ValueDescriptionAllowDefault. Enforces the legal minimum. This means parental consent is required for minors in the European Union and Korea.RequireConsentForPrivacyServicesEnforces the user to specify date of birth to comply with COPPA rules. RequireConsentForMinorsRequires parental consent for ages below 18, regardless of country/region minor rules.RequireConsentForKidsRequires parental consent for ages below 14, regardless of country/region minor rules.BlockMinorsBlocks minors from using the app.", + "readOnly": false + } + } + }, + "microsoft.graph.publicClientApplication": { + "type": "object", + "properties": { + "redirectUris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent. For iOS and macOS apps, specify the value following the syntax msauth.{BUNDLEID}://auth, replacing '{BUNDLEID}'. For example, if the bundle ID is com.microsoft.identitysample.MSALiOS, the URI is msauth.com.microsoft.identitysample.MSALiOS://auth.", + "readOnly": false + } + } + }, + "microsoft.graph.requestSignatureVerification": { + "type": "object", + "properties": { + "allowedWeakAlgorithms": { + "$ref": "#/definitions/microsoft.graph.weakAlgorithms", + "description": "Specifies which weak algorithms are allowed. The possible values are: rsaSha1, unknownFutureValue.", + "readOnly": false + }, + "isSignedRequestRequired": { + "type": "boolean", + "description": "Specifies whether signed authentication requests for this application should be required.", + "readOnly": false + } + } + }, + "microsoft.graph.requiredResourceAccess": { + "type": "object", + "properties": { + "resourceAccess": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.resourceAccess" + }, + "description": "The list of OAuth2.0 permission scopes and app roles that the application requires from the specified resource.", + "readOnly": false + }, + "resourceAppId": { + "type": "string", + "description": "The unique identifier for the resource that the application requires access to. This should be equal to the appId declared on the target resource application.", + "readOnly": false + } + } + }, + "microsoft.graph.servicePrincipalLockConfiguration": { + "type": "object", + "properties": { + "allProperties": { + "type": "boolean", + "description": "Enables locking all sensitive properties. The sensitive properties are keyCredentials, passwordCredentials, and tokenEncryptionKeyId.", + "readOnly": false + }, + "credentialsWithUsageSign": { + "type": "boolean", + "description": "Locks the keyCredentials and passwordCredentials properties for modification where credential usage type is Sign.", + "readOnly": false + }, + "credentialsWithUsageVerify": { + "type": "boolean", + "description": "Locks the keyCredentials and passwordCredentials properties for modification where credential usage type is Verify. This locks OAuth service principals.", + "readOnly": false + }, + "isEnabled": { + "type": "boolean", + "description": "Enables or disables service principal lock configuration. To allow the sensitive properties to be updated, update this property to false to disable the lock on the service principal.", + "readOnly": false + }, + "tokenEncryptionKeyId": { + "type": "boolean", + "description": "Locks the tokenEncryptionKeyId property for modification on the service principal.", + "readOnly": false + } + } + }, + "microsoft.graph.spaApplication": { + "type": "object", + "properties": { + "redirectUris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent.", + "readOnly": false + } + } + }, + "microsoft.graph.verifiedPublisher": { + "type": "object", + "properties": { + "addedDateTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp when the verified publisher was first added or most recently updated.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "The verified publisher name from the app publisher's Partner Center account.", + "readOnly": false + }, + "verifiedPublisherId": { + "type": "string", + "description": "The ID of the verified publisher from the app publisher's Partner Center account.", + "readOnly": false + } + } + }, + "microsoft.graph.webApplication": { + "type": "object", + "properties": { + "homePageUrl": { + "type": "string", + "description": "Home page or landing page of the application.", + "readOnly": false + }, + "implicitGrantSettings": { + "$ref": "#/definitions/microsoft.graph.implicitGrantSettings", + "description": "Specifies whether this web application can request tokens using the OAuth 2.0 implicit flow.", + "readOnly": false + }, + "logoutUrl": { + "type": "string", + "description": "Specifies the URL that is used by Microsoft's authorization service to log out a user using front-channel, back-channel or SAML logout protocols.", + "readOnly": false + }, + "redirectUris": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the URLs where user tokens are sent for sign-in, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent.", + "readOnly": false + }, + "redirectUriSettings": { + "type": "array", + "items": { + "$ref": "#/definitions/microsoft.graph.redirectUriSettings" + }, + "description": "", + "readOnly": false + } + } + }, + "microsoft.graph.customSecurityAttributeValue": { + "type": "object", + "properties": {} + }, + "microsoft.graph.resourceSpecificPermission": { + "type": "object", + "properties": { + "description": { + "type": "string", + "description": "Describes the level of access that the resource-specific permission represents.", + "readOnly": false + }, + "displayName": { + "type": "string", + "description": "The display name for the resource-specific permission.", + "readOnly": false + }, + "id": { + "type": "string", + "format": "uuid", + "description": "The unique identifier for the resource-specific application permission.", + "readOnly": false + }, + "isEnabled": { + "type": "boolean", + "description": "Indicates whether the permission is enabled.", + "readOnly": false + }, + "value": { + "type": "string", + "description": "The value of the permission.", + "readOnly": false + } + } + }, + "microsoft.graph.samlSingleSignOnSettings": { + "type": "object", + "properties": { + "relayState": { + "type": "string", + "description": "The relative URI the service provider would redirect to after completion of the single sign-on flow.", + "readOnly": false + } + } + }, + "microsoft.graph.keyValue": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "Key for the key-value pair.", + "readOnly": false + }, + "value": { + "type": "string", + "description": "Value for the key-value pair.", + "readOnly": false + } + } + }, + "microsoft.graph.preAuthorizedApplication": { + "type": "object", + "properties": { + "appId": { + "type": "string", + "description": "The unique identifier for the application.", + "readOnly": false + }, + "delegatedPermissionIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The unique identifier for the oauth2PermissionScopes the application requires.", + "readOnly": false + } + } + }, + "microsoft.graph.optionalClaim": { + "type": "object", + "properties": { + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Additional properties of the claim. If a property exists in this collection, it modifies the behavior of the optional claim specified in the name property.", + "readOnly": false + }, + "essential": { + "type": "boolean", + "description": "If the value is true, the claim specified by the client is necessary to ensure a smooth authorization experience for the specific task requested by the end user. The default value is false.", + "readOnly": false + }, + "name": { + "type": "string", + "description": "The name of the optional claim.", + "readOnly": false + }, + "source": { + "type": "string", + "description": "The source (directory object) of the claim. There are predefined claims and user-defined claims from extension properties. If the source value is null, the claim is a predefined optional claim. If the source value is user, the value in the name property is the extension property from the user object.", + "readOnly": false + } + } + }, + "microsoft.graph.resourceAccess": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "The unique identifier of an app role or delegated permission exposed by the resource application. For delegated permissions, this should match the id property of one of the delegated permissions in the oauth2PermissionScopes collection of the resource application's service principal. For app roles (application permissions), this should match the id property of an app role in the appRoles collection of the resource application's service principal.", + "readOnly": false + }, + "type": { + "type": "string", + "description": "Specifies whether the id property references a delegated permission or an app role (application permission). The possible values are: Scope (for delegated permissions) or Role (for app roles).", + "readOnly": false + } + } + }, + "microsoft.graph.implicitGrantSettings": { + "type": "object", + "properties": { + "enableAccessTokenIssuance": { + "type": "boolean", + "description": "Specifies whether this web application can request an access token using the OAuth 2.0 implicit flow.", + "readOnly": false + }, + "enableIdTokenIssuance": { + "type": "boolean", + "description": "Specifies whether this web application can request an ID token using the OAuth 2.0 implicit flow.", + "readOnly": false + } + } + }, + "microsoft.graph.redirectUriSettings": { + "type": "object", + "properties": { + "index": { + "type": "integer", + "format": "int32", + "description": "", + "readOnly": false + }, + "uri": { + "type": "string", + "description": "", + "readOnly": false + } + } + }, + "microsoft.graph.nativeAuthenticationApisEnabled": { + "type": "string", + "enum": [ + "none", + "all" + ] + }, + "microsoft.graph.weakAlgorithms": { + "type": "string", + "enum": [ + "rsaSha1" + ] + } + }, + "paths": { + "/{rootScope}/providers/Microsoft.Graph/users/{userId}": { + "get": { + "tags": [ + "users" + ], + "description": "Get a user", + "operationId": "users_get", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the user", + "name": "userId", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "user get successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.user" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/groups/{groupId}": { + "put": { + "tags": [ + "groups" + ], + "description": "Create or update a group", + "operationId": "groups_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the group", + "name": "groupId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "group", + "description": "The group to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.group" + } + } + ], + "responses": { + "200": { + "description": "group created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.group" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/applications/{applicationId}": { + "put": { + "tags": [ + "applications" + ], + "description": "Create or update a application", + "operationId": "applications_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the application", + "name": "applicationId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "application", + "description": "The application to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.application" + } + } + ], + "responses": { + "200": { + "description": "application created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.application" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/servicePrincipals/{servicePrincipalId}": { + "put": { + "tags": [ + "servicePrincipals" + ], + "description": "Create or update a servicePrincipal", + "operationId": "servicePrincipals_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the servicePrincipal", + "name": "servicePrincipalId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "servicePrincipal", + "description": "The servicePrincipal to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.servicePrincipal" + } + } + ], + "responses": { + "200": { + "description": "servicePrincipal created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.servicePrincipal" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/applications/{applicationsId}/federatedIdentityCredentials/{federatedIdentityCredentialId}": { + "put": { + "tags": [ + "federatedIdentityCredentials" + ], + "description": "Create or update a federatedIdentityCredential", + "operationId": "federatedIdentityCredentials_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the federatedIdentityCredential", + "name": "federatedIdentityCredentialId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "federatedIdentityCredential", + "description": "The federatedIdentityCredential to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.federatedIdentityCredential" + } + }, + { + "in": "path", + "description": "The id of the applications", + "name": "applicationsId", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "federatedIdentityCredential created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.federatedIdentityCredential" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/oauth2PermissionGrants/{oAuth2PermissionGrantId}": { + "put": { + "tags": [ + "oauth2PermissionGrants" + ], + "description": "Create or update a oAuth2PermissionGrant", + "operationId": "oauth2PermissionGrants_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the oAuth2PermissionGrant", + "name": "oAuth2PermissionGrantId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "oAuth2PermissionGrant", + "description": "The oAuth2PermissionGrant to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.oAuth2PermissionGrant" + } + } + ], + "responses": { + "200": { + "description": "oAuth2PermissionGrant created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.oAuth2PermissionGrant" + } + } + } + } + }, + "/{rootScope}/providers/Microsoft.Graph/appRoleAssignedTo/{appRoleAssignmentId}": { + "put": { + "tags": [ + "appRoleAssignedTo" + ], + "description": "Create or update a appRoleAssignment", + "operationId": "appRoleAssignedTo_upsert", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "path", + "description": "The id of the appRoleAssignment", + "name": "appRoleAssignmentId", + "required": true, + "type": "string" + }, + { + "in": "body", + "name": "appRoleAssignment", + "description": "The appRoleAssignment to create or update", + "required": true, + "schema": { + "$ref": "#/definitions/microsoft.graph.appRoleAssignment" + } + } + ], + "responses": { + "200": { + "description": "appRoleAssignment created or updated successfully", + "schema": { + "$ref": "#/definitions/microsoft.graph.appRoleAssignment" + } + } + } + } + } + } +} \ No newline at end of file diff --git a/swagger/specification/microsoftgraph/resource-manager/readme.md b/swagger/specification/microsoftgraph/resource-manager/readme.md index 4ba344f..a17a3eb 100644 --- a/swagger/specification/microsoftgraph/resource-manager/readme.md +++ b/swagger/specification/microsoftgraph/resource-manager/readme.md @@ -37,6 +37,7 @@ input-file: - microsoftgraph/preview/beta/0.1.9-preview.json - microsoftgraph/preview/beta/0.2.0-preview.json - microsoftgraph/official/beta/1.0.0.json + - microsoftgraph/official/beta/1.0.1.json ``` ```yaml $(tag) == 'microsoftgraph-v1.0' @@ -46,4 +47,5 @@ input-file: - microsoftgraph/preview/v1.0/0.1.9-preview.json - microsoftgraph/preview/v1.0/0.2.0-preview.json - microsoftgraph/official/v1.0/1.0.0.json + - microsoftgraph/official/v1.0/1.0.1.json ``` From 0af96600b489591dd4e33ef81e2df69360e3cc8f Mon Sep 17 00:00:00 2001 From: taofeeko Date: Fri, 4 Dec 2026 14:22:26 -0800 Subject: [PATCH 2/2] Reject legacy generator versions before rewriting artifacts Goal: Restrict explicit regeneration to the two requested schema-compatible versions and reject unsupported legacy versions before any output writes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: db906020-1a67-43c3-b0eb-80e95473e9d5 --- docs/DEVELOPMENT.md | 3 ++- src/generator/src/cmd/generate.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md index c7c86a5..400d0ef 100644 --- a/docs/DEVELOPMENT.md +++ b/docs/DEVELOPMENT.md @@ -67,6 +67,7 @@ npm run generate -- --specs-dir ..\..\swagger --single-path microsoftgraph --ext ``` Omitting `--extension-version` retains the default latest-configured-version -behavior. Compare the resulting serialized graphs with the original versions, +behavior. Explicit selection supports `1.0.0` and `1.1.0-preview` only; older +versions can have incompatible index shapes. Compare the resulting serialized graphs with the original versions, test both API versions, and validate compiler diagnostics and emitted deployment inputs before publishing. Source changes do not replace published packages. diff --git a/src/generator/src/cmd/generate.ts b/src/generator/src/cmd/generate.ts index c966997..5cd1793 100644 --- a/src/generator/src/cmd/generate.ts +++ b/src/generator/src/cmd/generate.ts @@ -24,7 +24,7 @@ const argsConfig = yargs .option('specs-dir', { type: 'string', demandOption: true, desc: 'Path to the specs dir' }) .option('out-dir', { type: 'string', default: defaultOutDir, desc: 'Output path for generated files' }) .option('single-path', { type: 'string', default: undefined, desc: 'Only regenerate under a specific file path - e.g. "compute"' }) - .option('extension-version', { type: 'string', desc: 'Generate an existing configured extension version instead of the latest version' }) + .option('extension-version', { type: 'string', choices: ['1.0.0', '1.1.0-preview'], desc: 'Regenerate the stable or preview extension version instead of the latest version' }) .option('logging-level', { type: 'string', default: 'warning', choices: ['debug', 'verbose', 'information', 'warning', 'error', 'fatal'] }) .option('wait-for-debugger', { type: 'boolean', default: false, desc: 'Wait for a C# debugger to be attached before running the Autorest extension' });