Updates from: 02/18/2021 04:24:59
Service Microsoft Docs article Related commit history on GitHub Change details
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackage-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackage-delete.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
One of the following permissions is required to call this API. To learn more, in
```http DELETE /identityGovernance/entitlementManagement/accessPackages/{id}- ``` ## Request headers
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackage-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackage-get.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackage-list-accesspackageresourcerolescopes https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackage-list-accesspackageresourcerolescopes.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackage-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackage-list.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackage-post-accesspackageresourcerolescopes https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackage-post-accesspackageresourcerolescopes.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackage-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackage-post.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackage-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackage-update.md
One of the following permissions is required to call this API. To learn more, in
|:|:| |Delegated (work or school account) | EntitlementManagement.ReadWrite.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Not supported. |
+|Application | EntitlementManagement.ReadWrite.All |
## HTTP request <!-- {
Content-length: 38
``` http HTTP/1.1 204 No Content Content-Type: application/json- ``` <!--
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignment-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignment-list.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentpolicy-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentpolicy-delete.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentpolicy-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentpolicy-get.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentpolicy-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentpolicy-list.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentpolicy-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentpolicy-post.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentpolicy-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentpolicy-update.md
One of the following permissions is required to call this API. To learn more, in
|:|:| |Delegated (work or school account) | EntitlementManagement.ReadWrite.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Not supported. |
+|Application | EntitlementManagement.ReadWrite.All |
## HTTP request <!-- {
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentrequest-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentrequest-get.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentrequest-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentrequest-list.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentrequest-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentrequest-post.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentresourcerole-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentresourcerole-get.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageassignmentresourcerole-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageassignmentresourcerole-list.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackagecatalog-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackagecatalog-delete.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackagecatalog-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackagecatalog-get.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackagecatalog-list-accesspackageresourceroles https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackagecatalog-list-accesspackageresourceroles.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackagecatalog-list-accesspackageresources https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackagecatalog-list-accesspackageresources.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackagecatalog-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackagecatalog-list.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackagecatalog-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackagecatalog-post.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackagecatalog-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackagecatalog-update.md
One of the following permissions is required to call this API. To learn more, in
|:|:| |Delegated (work or school account) | EntitlementManagement.ReadWrite.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Not supported. |
+|Application | EntitlementManagement.ReadWrite.All |
## HTTP request <!-- {
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageresourceenvironment-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageresourceenvironment-get.md
If successful, this method returns a `200 OK` response code and an [accessPackag
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "get_accesspackageresourceenvironment"
If successful, this method returns a `200 OK` response code and an [accessPackag
``` http GET https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageResourceEnvironments/{accessPackageResourceEnvironmentId} ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageresourceenvironment-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageresourceenvironment-list.md
doc_type: apiPageType
# List accessPackageResourceEnvironments Namespace: microsoft.graph + Retrieve a list of [accessPackageResourceEnvironment](../resources/accesspackageresourceenvironment.md) objects and their properties. ## Permissions
If successful, this method returns a `200 OK` response code and a collection of
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "list_accesspackageresourceenvironment"
If successful, this method returns a `200 OK` response code and a collection of
``` http GET https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/accessPackageResourceEnvironments?$filter=originSystem eq 'SharePointOnline' ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageresourcerequest-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageresourcerequest-list.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/accesspackageresourcerequest-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/accesspackageresourcerequest-post.md
Content-type: application/json
The following is an example of the request. In this example, the `@odata.bind` annotation is used to assign the `id` of the `accessPackageResourceEnvironment` to an `accessPackageResourceEnvironment` object. +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_accesspackageresourcerequest_from_accesspackageresourcerequests_with_accessPackageResourceEnvironment"
Content-type: application/json
"requestType": "AdminAdd" } ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ #### Response
Content-type: application/json
The following is an example of the request. In this example, the parameters of an `accessPackageResourceEnvironment` are specified in an `accessPackageResourceEnvironment` object. +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_accesspackageresourcerequest_from_accesspackageresourcerequests_with_accessPackageResourceEnvironment_New"
Content-type: application/json
"requestType": "AdminAdd" } ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ #### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/activities-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/activities-list.md
- Last updated 09/10/2017 Title: File Activities description: "List the recent activities that took place on an item or under a hierarchy."
v1.0 https://docs.microsoft.com/en-us/graph/api/application-addkey https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/application-addkey.md
The following is an example of the response.
<!-- { "blockType": "response",
- "truncated": true
+ "truncated": true,
+ "@odata.type": "microsoft.graph.keyCredential"
} --> ```http
Content-Type: application/json
"section": "documentation", "tocPath": "", "suppressions": [
- "Error: application_addkey:\r\n Resource type was null or missing, so we assume there is no response to validate."
- ]
+ ]
}-->
v1.0 https://docs.microsoft.com/en-us/graph/api/application-post-calls https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/application-post-calls.md
With tenant admin credentials, call the following cmdlets on the tenant remote P
PS C:\> Set-CsOnlineVoiceApplicationInstance -Identity <UPN> -TelephoneNumber <TelephoneNumber> PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId> ```
-> **Note:** If a tenant has Australian PSTN numbers assigned to any application instances, this call might fail. If a tenant is newly created, it might take several days for this feature to be available.
#### Request The following example shows the request to make a peer-to-peer call between the bot and a PSTN number. In this example, the media is hosted by the service. The values of authorization token, callback URL, application ID, application name, user ID, user name, and tenant ID must be replaced with actual values to make the example work.
Content-Type: application/json
This call needs application instance with PSTN number assigned, as described in Example 9.
-> **Note:** If a tenant has Australian PSTN numbers assigned to any application instances, this call might not work. If a tenant is newly created, it might take several days for this feature to be available.
- #### Request The following example shows a request to make a peer-to-peer call between the bot and a PSTN number. In this example, the media is hosted locally by the application. Replace the values for authorization token, callback URL, application ID, application name, user ID, user name, and tenant ID to make the example work.
v1.0 https://docs.microsoft.com/en-us/graph/api/application-post-onlinemeetings https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/application-post-onlinemeetings.md
One of the following permissions is required to call this API. To learn more, in
| :- | :- | | Delegated (work or school account) | OnlineMeetings.ReadWrite | | Delegated (personal Microsoft account) | Not supported. |
-| Application | OnlineMeetings.Read.All, OnlineMeetings.ReadWrite.All* |
+| Application | OnlineMeetings.ReadWrite.All* |
> [!IMPORTANT] > \* Administrators must create an [application access policy](/graph/cloud-communication-online-meeting-application-access-policy) and grant it to a user, authorizing the app configured in the policy to create an online meeting on behalf of that user (user ID specified in the request path).
Content-Type: application/json
"creationDateTime": "2019-07-11T02:17:17.6491364Z", "startDateTime": "2019-07-11T02:17:17.6491364Z", "endDateTime": "2019-07-11T02:47:17.651138Z",
- "id": "550fae72-d251-43ec-868c-373732c2704f_19:meeting_M2IzYzczNTItYmY3OC00MDlmLWJjMzUtYmFiMjNlOTY4MGEz@thread.skype",
+ "id": "MSpkYzE3Njc0Yy04MWQ5LTRhZGItYmZiMi04ZdFpHRTNaR1F6WGhyZWFkLnYy",
"joinWebUrl": "https://teams.microsoft.com/l/meetup-join/19%3ameeting_M2IzYzczNTItYmY3OC00MDlmLWJjMzUtYmFiMjNlOTY4MGEz%40thread.skype/0?context=%7b%22Tid%22%3a%2272f988bf-86f1-41af-91ab-2d7cd011db47%22%2c%22Oid%22%3a%22550fae72-d251-43ec-868c-373732c2704f%22%7d", "participants": { "organizer": {
Content-Type: application/json
"creationDateTime": "2019-07-11T02:17:17.6491364Z", "startDateTime": "2019-07-11T02:17:17.6491364Z", "endDateTime": "2019-07-11T02:47:17.651138Z",
- "id": "550fae72-d251-43ec-868c-373732c2704f_19%3A3b52398f3c524556894b776357c1dd79%40thread.skype",
+ "id": "MSpkYzE3Njc0Yy04MWQ5LTRhZGItYmZiMi04ZdFpHRTNaR1F6WGhyZWFkLnYy",
"joinWebUrl": "https://teams.microsoft.com/l/meetup-join/19%3ameeting_M2IzYzczNTItYmY3OC00MDlmLWJjMzUtYmFiMjNlOTY4MGEz%40thread.skype/0?context=%7b%22Tid%22%3a%2272f988bf-86f1-41af-91ab-2d7cd011db47%22%2c%22Oid%22%3a%22550fae72-d251-43ec-868c-373732c2704f%22%7d", "participants": { "organizer": {
v1.0 https://docs.microsoft.com/en-us/graph/api/attachment-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/attachment-get.md
Read the properties, relationships, or raw contents of an attachment that is att
An attachment can be one of the following types:
-* A file. Programmatically, this is a [fileAttachment](../resources/fileattachment.md) resource.
-* An Outlook item (contact, event or message). Programmatically, an item attachment is an [itemAttachment](../resources/itemattachment.md) resource. You can use `$expand` to further get the properties of that item. See an [example](#request-2) below.
-* A link to a file stored in the cloud. Programmatically, this is a [referenceAttachment](../resources/referenceattachment.md) resource.
+* A file. Programmatically, this is a [fileAttachment](../resources/fileattachment.md) resource. See [example 1](#example-1-get-the-properties-of-a-file-attachment).
+* An Outlook item (contact, event or message). Programmatically, an item attachment is an [itemAttachment](../resources/itemattachment.md) resource. You can use `$expand` to further get the properties of that item, including any nested attachments up to 30 levels. See [example 3](#example-3-expand-and-get-the-properties-of-the-item-attached-to-a-message) and [example 4](#example-4-expand-and-get-the-properties-of-an-item-attached-to-a-message-including-any-attachment-to-the-item).
+* A link to a file stored in the cloud. Programmatically, this is a [referenceAttachment](../resources/referenceattachment.md) resource. See [example 5](#example-5-get-the-properties-of-a-reference-attachment).
All these types of attachments are derived from the [attachment](../resources/attachment.md) resource. ### Get the raw contents of a file or item attachment You can append the path segment `/$value` to get the raw contents of a file or item attachment.
-For a file attachment, the content type is based on its original content type. See an [example](#example-5-get-the-raw-contents-of-a-file-attachment-on-a-message) below.
+For a file attachment, the content type is based on its original content type. See an [example 6](#example-6-get-the-raw-contents-of-a-file-attachment-on-a-message).
For an item attachment that is a [contact](../resources/contact.md), [event](../resources/event.md), or [message](../resources/message.md), the raw contents returned is in MIME format. | Item attachment type | Raw contents returned | |:--|:-|
-| **contact** | [vCard](http://www.faqs.org/rfcs/rfc2426.html) MIME format. See [example](#example-6-get-the-mime-raw-contents-of-a-contact-attachment-on-a-message). |
-| **event** | iCal MIME format. See [example](#example-7-get-the-mime-raw-contents-of-an-event-attachment-on-a-message). |
-| **message** | MIME format. See [example](#example-8-get-the-mime-raw-contents-of-a-meeting-invitation-item-attachment-on-a-message). |
+| **contact** | [vCard](http://www.faqs.org/rfcs/rfc2426.html) MIME format. See [example 7](#example-7-get-the-mime-raw-contents-of-a-contact-attachment-on-a-message). |
+| **event** | iCal MIME format. See [example 8](#example-8-get-the-mime-raw-contents-of-an-event-attachment-on-a-message). |
+| **message** | MIME format. See [example 9](#example-9-get-the-mime-raw-contents-of-a-meeting-invitation-item-attachment-on-a-message). |
Attempting to get the `$value` of a reference attachment returns HTTP 405.
GET /groups/{id}/conversations/{id}/threads/{id}/posts/{id}/attachments/{id}/$va
## Optional query parameters
-This method supports the [OData Query Parameters](/graph/query-parameters) to help customize the response.
+This method supports some of the [OData Query Parameters](/graph/query-parameters) to help customize the response.
+
+Use `$expand` to get the properties of an item attachment (contact, event, or message). See [example 3](#example-3-expand-and-get-the-properties-of-the-item-attached-to-a-message) and [example 4](#example-4-expand-and-get-the-properties-of-an-item-attached-to-a-message-including-any-attachment-to-the-item).
## Request headers
Content-type: application/json
"hasAttachments":false, "internetMessageId":"<BY2PR15MB05189A084C01F466709E414F9CA40@BY2PR15MB0518.namprd15.prod.outlook.com>", "subject":"Reminder - please bring laptop",
+ "bodyPreview": "PFA\r\n\r\nThanks,\r\nRob",
"importance":"normal", "conversationId":"AAQkADA1MzMyOGI4LTlkZDctNDkzYy05M2RiLTdiN2E1NDE3MTRkOQAQAMG_NSCMBqdKrLa2EmR-lO0=", "conversationIndex":"AQHTAbcSwb41IIwGp0qstrYSZH+U7Q==",
Content-type: application/json
"isRead":false, "isDraft":false, "webLink":"https://outlook.office365.com/owa/?ItemID=AAMkADA1M3MTRkOQAAAA%3D%3D&exvsurl=1&viewmodel=ReadMessageItem",
+ "internetMessageHeaders": [ ],
"body":{ "contentType":"html", "content":"<html><head>\r\n</head>\r\n<body>\r\n</body>\r\n</html>"
Content-type: application/json
} ```
-### Example 4: Get the properties of a reference attachment
+### Example 4: Expand and get the properties of an item attached to a message, including any attachment to the item
+#### Request
+The next example uses the same request as in [example 3](#example-3-expand-and-get-the-properties-of-the-item-attached-to-a-message) to get the properties of an item attachment on a message by using `$expand`. In this case, because the attached item also has a file attachment, the response includes the properties of the file attachment as well.
+
+<!-- {
+ "blockType": "request",
+ "name": "get_and_expand_nested_item_attachment",
+ "sampleKeys": ["AAMkADA1M-zAAA=","AAMkADA1M-CJKtzmnlcqVgqI="]
+}-->
+
+```msgraph-interactive
+GET https://graph.microsoft.com/beta/me/messages('AAMkADA1M-zAAA=')/attachments('AAMkADA1M-CJKtzmnlcqVgqI=')/?$expand=microsoft.graph.itemattachment/item
+```
+
+#### Response
+<!-- {
+ "blockType": "response",
+ "name": "get_and_expand_nested_item_attachment",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.itemAttachment"
+} -->
+
+```http
+HTTP/1.1 200 OK
+Content-type: application/json
+
+{
+ "@odata.context": "https://graph.microsoft.com/beta/$metadata#users('d1a2fae9-db66-4cc9-8133-2184c77af1b8')/messages('AAMkADA1M-zAAA%3D')/attachments(microsoft.graph.itemAttachment/item())/$entity",
+ "@odata.type": "#microsoft.graph.itemAttachment",
+ "id": "AAMkADA1MCJKtzmnlcqVgqI=",
+ "lastModifiedDateTime": "2021-01-06T13:28:11Z",
+ "name": "Nested Message With Attachment",
+ "contentType": null,
+ "size": 465916,
+ "isInline": false,
+ "item@odata.context": "https://graph.microsoft.com/beta/$metadata#users('d1a2fae9-db66-4cc9-8133-2184c77af1b8')/messages('AAMkADA1M-zAAA%3D')/attachments('AAMkADA1M-CJKtzmnlcqVgqI%3D')/microsoft.graph.itemAttachment/item/$entity",
+ "item": {
+ "@odata.type": "#microsoft.graph.message",
+ "id": "",
+ "createdDateTime": "2021-01-06T13:28:30Z",
+ "lastModifiedDateTime": "2021-01-06T13:27:40Z",
+ "receivedDateTime": "2021-01-06T13:27:25Z",
+ "sentDateTime": "2021-01-06T13:27:04Z",
+ "hasAttachments": true,
+ "internetMessageId": "<BY2PR15MB05189A084C01F466709E414F9CA40@BY2PR15MB0518.namprd15.prod.outlook.com>",
+ "subject": "Nested Message With Attachment",
+ "bodyPreview": "PFAThanks,Adele",
+ "importance": "normal",
+ "conversationId": "AAQkADg3NTY5MDg4LWMzYmQtNDQzNi05OTgwLWQyZjg2YWQwMTNkZAAQAO6hkp84oMdGm6ZBsSH72sE=",
+ "conversationIndex": "AQHW5C+U7qGSnzigx0abpkGxIfvawQ==",
+ "isDeliveryReceiptRequested": false,
+ "isReadReceiptRequested": false,
+ "isRead": true,
+ "isDraft": false,
+ "webLink": "https://outlook.office365.com/owa/?ItemID=AAMkADA1M3MTRkOQAAAA%3D%3D&exvsurl=1&viewmodel=ItemAttachment",
+ "internetMessageHeaders": [],
+ "body": {
+ "contentType": "html",
+ "content": "<html><head>\r\n</head>\r\n<body>\r\n</body>\r\n</html>"
+ },
+ "sender": {
+ "emailAddress": {
+ "name": "Adele Vance",
+ "address": "Adele.Vance@microsoft.com"
+ }
+ },
+ "from": {
+ "emailAddress": {
+ "name": "Adele Vance",
+ "address": "Adele.Vance@microsoft.com"
+ }
+ },
+ "toRecipients": [
+ {
+ "emailAddress": {
+ "name": "Adele Vance",
+ "address": "Adele.Vance@microsoft.com"
+ }
+ }
+ ],
+ "flag": {
+ "flagStatus": "notFlagged"
+ },
+ "attachments@odata.context": "https://graph.microsoft.com/beta/$metadata#users('d1a2fae9-db66-4cc9-8133-2184c77af1b8')/messages('AAMkADA1M-zAAA%3D')/attachments('AAMkADA1M-CJKtzmnlcqVgqI%3D')/microsoft.graph.itemAttachment/microsoft.graph.itemAttachment/item/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/attachments",
+ "attachments": [
+ {
+ "@odata.type": "#microsoft.graph.fileAttachment",
+ "@odata.mediaContentType": "application/pdf",
+ "id": "AAMkADg3NTYULmbsDYNg==",
+ "lastModifiedDateTime": "2021-01-21T14:56:18Z",
+ "name": "Info.pdf",
+ "contentType": "application/pdf",
+ "size": 417351,
+ "isInline": false,
+ "contentId": null,
+ "contentLocation": null,
+ "contentBytes": "JVBERi0xLjUNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFuZyhlbi1JTikgL1N0cnVjdFRyZWVSb29"
+ }
+ ]
+ }
+}
+```
+
+### Example 5: Get the properties of a reference attachment
#### Request
Content-type: application/json
```
-### Example 5: Get the raw contents of a file attachment on a message
+### Example 6: Get the raw contents of a file attachment on a message
#### Request
HTTP/1.1 200 OK
```
-### Example 6: Get the MIME raw contents of a contact attachment on a message
+### Example 7: Get the MIME raw contents of a contact attachment on a message
#### Request
END:VCARD
```
-### Example 7: Get the MIME raw contents of an event attachment on a message
+### Example 8: Get the MIME raw contents of an event attachment on a message
#### Request
END:VCALENDAR
```
-### Example 8: Get the MIME raw contents of a meeting invitation item attachment on a message
+### Example 9: Get the MIME raw contents of a meeting invitation item attachment on a message
#### Request
v1.0 https://docs.microsoft.com/en-us/graph/api/b2cidentityuserflow-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/b2cidentityuserflow-update.md
HTTP/1.1 204 No Content
"section": "documentation", "tocPath": "", "suppressions": [
- "Error: update_b2cidentityuserflow/userFlowTypeVersion:\r\n Expected type Single but actual was Int64. Property: userFlowTypeVersion, actual value: '1'",
- "Error: update_b2cidentityuserflow/userFlowTypeVersion:\r\n Expected type Single but actual was Int64. Property: userFlowTypeVersion, actual value: '1'"
] }-->
v1.0 https://docs.microsoft.com/en-us/graph/api/bundle-additem https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/bundle-additem.md
- Title: Add item to a bundle description: Add item to a bundle of driveItems localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/bundle-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/bundle-delete.md
- Title: Delete bundle description: Delete a bundle of driveItems localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/bundle-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/bundle-get.md
- Title: Get bundle description: Get a bundle of driveItems localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/bundle-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/bundle-list.md
- Title: List bundles description: List the bundles in a user's drive localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/bundle-removeitem https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/bundle-removeitem.md
- Title: Remove item from bundle description: Remove item from a bundle of driveItems localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/bundle-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/bundle-update.md
- Title: Update a bundle description: Update a bundle of driveItems localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/call-redirect https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/call-redirect.md
With tenant admin credentials, call the following cmdlets on the tenant remote P
PS C:\> Set-CsOnlineVoiceApplicationInstance -Identity <UPN> -TelephoneNumber <TelephoneNumber> PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId> ```
-> **Note:** If a tenant has Australian PSTN numbers assigned to any application instances, this call might fail. If a tenant is newly created, it might take several days for this feature to be available.
#### Notification - incoming <!-- {
v1.0 https://docs.microsoft.com/en-us/graph/api/call-transfer https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/call-transfer.md
With tenant admin credentials, call the following cmdlets on the tenant remote P
PS C:\> Set-CsOnlineVoiceApplicationInstance -Identity <UPN> -TelephoneNumber <TelephoneNumber> PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId> ```
-> **Note:** If a tenant has Australian PSTN numbers assigned to any application instances, this call might fail. If a tenant is newly created, it might take several days for this feature to be available.
#### Request The following example shows the request.
Content-Type: application/json
This call requires an application instance with PSTN number assigned, as described in Example 3.
-> **Note:** This call may fail if a tenant has Australian PSTN numbers assigned to any application instances. If a tenant is newly created, it might take several days for this feature to be available.
-- #### Request The following example shows the request.
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-delete-externalsponsors https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-delete-externalsponsors.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) | EntitlementManagement.ReadWrite.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Not supported. |
+|Application | EntitlementManagement.ReadWrite.All |
## HTTP request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-delete-internalsponsors https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-delete-internalsponsors.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) | EntitlementManagement.ReadWrite.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Not supported. |
+|Application | EntitlementManagement.ReadWrite.All |
## HTTP request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-delete.md
One of the following permissions is required to call this API. To learn more, in
|:|:| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-get.md
One of the following permissions is required to call this API. To learn more, in
|:|:| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-list-externalsponsors https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-list-externalsponsors.md
One of the following permissions is required to call this API. To learn more, in
|:|:| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-list-internalsponsors https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-list-internalsponsors.md
One of the following permissions is required to call this API. To learn more, in
|:|:| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-list.md
One of the following permissions is required to call this API. To learn more, in
|:|:| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-post-externalsponsors https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-post-externalsponsors.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) | EntitlementManagement.ReadWrite.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Not supported. |
+|Application | EntitlementManagement.ReadWrite.All |
## HTTP request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-post-internalsponsors https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-post-internalsponsors.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) | EntitlementManagement.ReadWrite.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Not supported. |
+|Application | EntitlementManagement.ReadWrite.All |
## HTTP request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-post.md
One of the following permissions is required to call this API. To learn more, in
|:|:| | Delegated (work or school account) | EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/connectedorganization-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/connectedorganization-update.md
One of the following permissions is required to call this API. To learn more, in
|:|:| |Delegated (work or school account) | EntitlementManagement.ReadWrite.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Not supported. |
+|Application | EntitlementManagement.ReadWrite.All |
## HTTP request
PATCH /identityGovernance/entitlementManagement/connectedOrganizations/{id}
## Request body In the request body, supply a JSON representation of the [connectedOrganization](../resources/connectedorganization.md) object.
-The following table shows the properties that are required when you update the [connectedOrganization](../resources/connectedorganization.md).
+The following table shows the properties that can be supplied when you update the [connectedOrganization](../resources/connectedorganization.md).
|Property|Type|Description| |:|:|:|
v1.0 https://docs.microsoft.com/en-us/graph/api/custodian-list-usersources https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/custodian-list-usersources.md
If successful, this method returns a `200 OK` response code and a collection of
### Request +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "get_usersource"
If successful, this method returns a `200 OK` response code and a collection of
``` http GET https://graph.microsoft.com/beta/compliance/ediscovery/cases/4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/userSources ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/directory-deleteditems-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/directory-deleteditems-delete.md
For users:
|:--|:| |Delegated (work or school account) | User.ReadWrite.All, Directory.AccessAsUser.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | User.ReadWrite.All |
+|Application | Not supported. |
For groups:
For groups:
|:--|:| |Delegated (work or school account) | Group.ReadWrite.All, Directory.AccessAsUser.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Group.ReadWrite.All |
+|Application | Not supported. |
## HTTP request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/directory-deleteditems-restore https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/directory-deleteditems-restore.md
Title: "Restore deleted item"
description: "Restores a recently deleted item from deleted items. " localization_priority: Normal doc_type: apiPageType
Namespace: microsoft.graph
Restores a recently deleted item from [deleted items](../resources/directory.md).
-Currently, deleted items functionality is only supported for the [application](../resources/application.md), [group](../resources/group.md) and [user](../resources/user.md) resources. If an item was accidentally deleted, you can fully restore the item.
+Currently, restore deleted items functionality is only supported for the [application](../resources/application.md), [group](../resources/group.md), and [user](../resources/user.md) resources. If an item was accidentally deleted, you can fully restore the item. This is not applicable to Security groups which are deleted permanently.
A recently deleted item will remain available for up to 30 days. After 30 days, the item is permanently deleted.
v1.0 https://docs.microsoft.com/en-us/graph/api/directoryobject-checkmembergroups https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/directoryobject-checkmembergroups.md
One of the following permissions is required to call this API. To learn more, in
|Permission type | Permissions (from least to most privileged) | |:--|:|
-|Delegated (work or school account) | User.ReadBasic.All and GroupMember.Read.All, User.Read.All and GroupMember.Read.All, User.ReadBasic.All and Group.Read.All, User.Read.All and Group.Read.All, Directory.Read.All |
+|Delegated (work or school account) | User.ReadBasic.All, User.Read.All, Directory.Read.All |
|Delegated (personal Microsoft account) | Not supported. |
-|Application | User.Read.All and GroupMember.Read.All, User.Read.All and Group.Read.All, Directory.Read.All |
+|Application | User.Read.All, Directory.Read.All |
Use the follow scenario guidance to help determine which permission types to use: - Use User.Read and GroupMember.Read.All or User.Read and Group.Read.All permissions to get group memberships for the signed-in user.
v1.0 https://docs.microsoft.com/en-us/graph/api/drive-post-bundles https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/drive-post-bundles.md
- Title: Create bundle description: Create a bundle of driveItems localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/driveitem-unfollow https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/driveitem-unfollow.md
- description: Unfollow an item that the user is following. Title: Unfollow drive item localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/dynamics-agedaccountsreceivable-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/dynamics-agedaccountsreceivable-get.md
documentationcenter: '' localization_priority: Normal- doc_type: apiPageType ms.prod: "dynamics-365-business-central"
v1.0 https://docs.microsoft.com/en-us/graph/api/educationassignmentdefaults-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/educationassignmentdefaults-get.md
+
+ Title: "Get educationAssignmentDefaults"
+description: "Read the properties and relationships of an educationAssignmentDefaults object."
+
+localization_priority: Normal
++
+# Get educationAssignmentDefaults
+Namespace: microsoft.graph
++
+Read the properties and relationships of an [educationAssignmentDefaults](../resources/educationassignmentdefaults.md) object. These are the class-level assignment defaults respected by new assignments created in the class. Callers can continue to specify custom values on each assignment creation if they do not want the default behaviors.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)| EduAssignments.ReadBasic, EduAssignments.ReadWriteBasic, EduAssignments.Read, EduAssignments.ReadWrite |
+|Delegated (personal Microsoft account)| Not supported. |
+|Application| Not supported. |
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /education/classes/{id}/assignmentDefaults
+```
+
+## Optional query parameters
+This method supports some of the OData query parameters to help customize the response. For general information, see [OData query parameters](/graph/query-parameters).
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `200 OK` response code and an [educationAssignmentDefaults](../resources/educationassignmentdefaults.md) object in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "get_educationassignmentdefaults"
+}
+-->
+``` http
+GET https://graph.microsoft.com/beta/education/classes/{id}/assignmentDefaults
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.educationAssignmentDefaults"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "value": {
+ "addedStudentAction": "none",
+ "dueTime": "23:59:00",
+ "notificationChannelUrl": "https://graph.microsoft.com/beta/teams('id')/channels('id')"
+ }
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/educationassignmentdefaults-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/educationassignmentdefaults-update.md
+
+ Title: "Update educationAssignmentDefaults"
+description: "Update the properties of an educationAssignmentDefaults object."
+
+localization_priority: Normal
++
+# Update educationAssignmentDefaults
+Namespace: microsoft.graph
++
+Update the properties of an [educationAssignmentDefaults](../resources/educationassignmentdefaults.md) object. Only teachers can update these settings.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account) | EduAssignments.ReadWriteBasic, EduAssignments.ReadWrite |
+|Delegated (personal Microsoft account) | Not supported. |
+|Application | Not supported. |
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+PATCH /education/classes/{id}/assignmentDefaults
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+|Content-Type|application/json. Required.|
+
+## Request body
+In the request body, supply the values for relevant fields of the [educationAssignmentDefaults](../resources/educationassignmentdefaults.md) object that should be updated. Existing properties that are not included in the request body will maintain their previous values. For best performance, don't include existing values that haven't changed.
+
+|Property|Type|Description|
+|:|:|:|
+|addedStudentAction|educationAddedStudentAction|Class-level default behavior for handling students who are added after the assignment is published. Possible values are: `none`, `assignIfOpen`. The default value is `none`.|
+|dueTime|TimeOfDay|Class-level default value for due time field. Default value is `23:59:00`|
+|notificationChannelUrl|String|Default Teams channel to which notifications will be sent. Default value is `null`.|
+++
+## Response
+
+If successful, this method returns a `200 OK` response code and an updated [educationAssignmentDefaults](../resources/educationassignmentdefaults.md) object in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "update_educationassignmentdefaults"
+}
+-->
+``` http
+PATCH https://graph.microsoft.com/beta/education/classes/{id}/assignmentDefaults
+Content-Type: application/json
+Content-length: 181
+
+{
+ "addedStudentAction": "assignIfOpen",
+ "notificationChannelUrl": "https://graph.microsoft.com/beta/teams('id')/channels('id')"
+}
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.educationAssignmentDefaults"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "addedStudentAction": "assignIfOpen",
+ "dueTime": "23:59:00",
+ "notificationChannelUrl": "https://graph.microsoft.com/beta/teams('id')/channels('id')"
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/educationassignmentsettings-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/educationassignmentsettings-get.md
One of the following permissions is required to call this API. To learn more, in
|Permission type|Permissions (from least to most privileged)| |:|:|
-|Delegated (work or school account)|EduAssignments.ReadWriteBasic, EduAssignments.ReadWrite|
+|Delegated (work or school account)|EduAssignments.ReadBasic, EduAssignments.ReadWriteBasic, EduAssignments.Read, EduAssignments.ReadWrite|
|Delegated (personal Microsoft account)|Not supported.| |Application|Not supported.|
v1.0 https://docs.microsoft.com/en-us/graph/api/educationclass-list-assignments https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/educationclass-list-assignments.md
Content-length: 344
"value": [ { "id": "19002",
- "addedStudentAction": "String",
+ "addedStudentAction": "none",
"allowLateSubmissions": true, "allowStudentsToAddResourcesToSubmission": true, "assignDateTime": "2014-02-01T00:00:00Z",
Content-length: 344
} }, "lastModifiedDateTime": "2014-02-01T00:00:00Z",
- "notificationChannelUrl": "String",
+ "notificationChannelUrl": null,
"status": "published" } ]
v1.0 https://docs.microsoft.com/en-us/graph/api/educationsubmission-list-submittedresources https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/educationsubmission-list-submittedresources.md
Content-length: 1045
"displayName": null } },
- "link": "https://www.microsoft.com
- },
- "@odata.type": "microsoft.graph.educationSubmittedSubmissionResource"
+ "link": "https://www.microsoft.com"
+ },
+ "@odata.type": "microsoft.graph.educationSubmittedSubmissionResource"
} ] }
Content-length: 1045
"tocPath": "", "suppressions": [] }>
+-->
v1.0 https://docs.microsoft.com/en-us/graph/api/entitlementmanagementsettings-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/entitlementmanagementsettings-get.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All | | Delegated (personal Microsoft account) | Not supported. |
-| Application | Not supported. |
+| Application | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/entitlementmanagementsettings-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/entitlementmanagementsettings-update.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) | EntitlementManagement.ReadWrite.All | |Delegated (personal Microsoft account) | Not supported. |
-|Application | Not supported. |
+|Application | EntitlementManagement.ReadWrite.All |
## HTTP request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/fido2authenticationmethod-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/fido2authenticationmethod-get.md
For delegated scenarios where an admin is acting on another user, the admin need
} --> ``` http
-GET /me/authentication/fido2AuthenticationMethod/{id}
-GET /users/{id | userPrincipalName}/authentication/fido2AuthenticationMethod/{id}
+GET /me/authentication/fido2Methods/{id}
+GET /users/{id | userPrincipalName}/authentication/fido2Methods/{id}
``` ## Request headers
If successful, this method returns a `200 OK` response code and the requested [f
### Request
-# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "get_fido2authenticationmethod" } --> ``` http
-GET https://graph.microsoft.com/beta/me/authentication/fido2AuthenticationMethod/-2_GRUg2-HYz6_1YG4YRAQ2
+GET https://graph.microsoft.com/beta/me/authentication/fido2Methods/-2_GRUg2-HYz6_1YG4YRAQ2
```
-# [C#](#tab/csharp)
-
-# [JavaScript](#tab/javascript)
-
-# [Objective-C](#tab/objc)
-
-# [Java](#tab/java)
---- ### Response The following is an example of the response.
v1.0 https://docs.microsoft.com/en-us/graph/api/group-list-members https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/group-list-members.md
One of the following permissions is required to call this API. To learn more, in
| Permission type | Permissions (from least to most privileged) | |: |:- |
-| Delegated (work or school account) | Group.Read.All, Directory.Read.All |
+| Delegated (work or school account) | GroupMember.Read.All, Group.Read.All, GroupMember.ReadWrite.All, Group.ReadWrite.All, Directory.Read.All |
| Delegated (personal Microsoft account) | Not supported. |
-| Application | Group.Read.All, Directory.Read.All |
+| Application | GroupMember.Read.All, Group.Read.All, GroupMember.ReadWrite.All, Group.ReadWrite.All, Directory.Read.All |
> **Note:** To list the members of a hidden membership group, the Member.Read.Hidden permission is required.
v1.0 https://docs.microsoft.com/en-us/graph/api/group-list-owners https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/group-list-owners.md
One of the following permissions is required to call this API. To learn more, in
|Permission type | Permissions (from least to most privileged) | |:--|:|
-|Delegated (work or school account) | Group.Read.All and User.ReadBasic.All, Group.Read.All and User.Read.All, Group.Read.All and User.ReadWrite.All, Group.Read.All and User.Read.All and Application.Read.All |
+|Delegated (work or school account) | GroupMember.Read.All, Group.Read.All, GroupMember.ReadWrite.All, Group.ReadWrite.All, Directory.Read.All, Directory.AccessAsUser.All |
|Delegated (personal Microsoft account) | Not supported. |
-|Application | Group.Read.All and User.Read.All, Group.Read.All and User.ReadWrite.All, Group.Read.All and User.Read.All and Application.Read.All |
+|Application | GroupMember.Read.All, Group.Read.All, GroupMember.ReadWrite.All, Group.ReadWrite.All, Directory.Read.All, Directory.AccessAsUser.All |
[!INCLUDE [limited-info](../../includes/limited-info.md)]
v1.0 https://docs.microsoft.com/en-us/graph/api/group-list-transitivemembers https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/group-list-transitivemembers.md
One of the following permissions is required to call this API. To learn more, in
| Permission type | Permissions (from least to most privileged) | |: |:- |
-| Delegated (work or school account) | Directory.Read.All, Directory.AccessAsUser.All, User.ReadBasic.All, User.Read.All |
+| Delegated (work or school account) | GroupMember.Read.All, Group.Read.All, GroupMember.ReadWrite.All, Group.ReadWrite.All, Directory.Read.All, Directory.AccessAsUser.All |
| Delegated (personal Microsoft account) | Not supported. |
-| Application | Directory.Read.All, User.Read.All |
+| Application | GroupMember.Read.All, Group.Read.All, GroupMember.ReadWrite.All, Group.ReadWrite.All, Directory.Read.All |
> **Note:** To list the members of a hidden membership group, the Member.Read.Hidden permission is required.
v1.0 https://docs.microsoft.com/en-us/graph/api/identitycontainer-post-b2cuserflows https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/identitycontainer-post-b2cuserflows.md
Content-type: application/json
"section": "documentation", "tocPath": "", "suppressions": [
- "Error: create_b2cUserFlow_from_b2cUserFlows/userFlowTypeVersion:\r\n Expected type Single but actual was Int64. Property: userFlowTypeVersion, actual value: '1'",
- "Error: create_b2cUserFlow_from_b2cUserFlows_identityProviders/userFlowTypeVersion:\r\n Expected type Single but actual was Int64. Property: userFlowTypeVersion, actual value: '1'",
"Error: create_b2cUserFlow_from_b2cuserflows_apiconnectors/userFlowTypeVersion:\r\n Expected type Single but actual was Int64. Property: userFlowTypeVersion, actual value: '1'" ] }-->
v1.0 https://docs.microsoft.com/en-us/graph/api/identityuserflow-post-userflows https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/identityuserflow-post-userflows.md
POST https://graph.microsoft.com/beta/identity/userFlows
Content-type: application/json {
+ "id": "Pol1",
"userFlowType": "signUpOrSignIn", "userFlowTypeVersion": 1 }
v1.0 https://docs.microsoft.com/en-us/graph/api/onlinemeeting-createorget https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/onlinemeeting-createorget.md
One of the following permissions is required to call this API. To learn more, in
> \* Administrators must create an [application access policy](/graph/cloud-communication-online-meeting-application-access-policy) and grant it to a user, authorizing the app configured in the policy to create or get an online meeting with external ID on behalf of that user (user ID specified in the request path). ## HTTP request-
-Request when using a delegated token:
+To call **createOrGet** API with delegated token:
<!-- { "blockType": "ignored" } --> ```http POST /me/onlineMeetings/createOrGet ```
-Request when using an application token:
+To call **createOrGet** API with application token:
<!-- { "blockType": "ignored" } --> ```http POST /users/{userId}/onlineMeetings/createOrGet
v1.0 https://docs.microsoft.com/en-us/graph/api/onlinemeeting-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/onlinemeeting-delete.md
DELETE https://graph.microsoft.com/beta/users/{userId}/onlineMeetings/{meetingId
> **Note:** > > - `userId` is the object ID of a user in [Azure user management portal](https://portal.azure.com/#blade/Microsoft_AAD_IAM/UsersManagementMenuBlade). For more details, see [application access policy](/graph/cloud-communication-online-meeting-application-access-policy).
-> - `meetingId` is the **id** of an [onlineMeeting entity](../resources/onlinemeeting.md).
+> - `meetingId` is the **id** of an [onlineMeeting](../resources/onlinemeeting.md) object.
## Request headers | Name | Description |
v1.0 https://docs.microsoft.com/en-us/graph/api/onlinemeeting-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/onlinemeeting-get.md
One of the following permissions is required to call this API. To learn more, in
## HTTP request
-To get the specified onlineMeeting using meeting ID:
+To get the specified onlineMeeting using meeting ID with delegated permission:
<!-- { "blockType": "ignored" } --> ```http GET /me/onlineMeetings/{meetingId}
+```
+
+To get the specified onlineMeeting using meeting ID with application permission:
+<!-- { "blockType": "ignored" } -->
+```http
GET /users/{userId}/onlineMeetings/{meetingId} ``` To get the specified onlineMeeting using **videoTeleconferenceId**: <!-- { "blockType": "ignored" } --> ```http
-GET /app/onlineMeetings/?$filter=VideoTeleconferenceId%20eq%20'{id}'
-GET /communications/onlineMeetings/?$filter=VideoTeleconferenceId%20eq%20'{id}'
+GET /app/onlineMeetings/?$filter=VideoTeleconferenceId%20eq%20'{videoTeleconferenceId}'
+GET /communications/onlineMeetings/?$filter=VideoTeleconferenceId%20eq%20'{videoTeleconferenceId}'
``` To get the specified onlineMeeting using **joinWebUrl**:
GET /users/{userId}/onlineMeetings/{meetingId}/alternativeRecording
>**Notes:** >- The `/app` path is deprecated. Going forward, use the `/communications` path.
->- `id` in the first two routes refers to [VTC conference id](/microsoftteams/cloud-video-interop-for-teams-set-up).
>- `userId` is the object ID of a user in [Azure user management portal](https://portal.azure.com/#blade/Microsoft_AAD_IAM/UsersManagementMenuBlade). For more details, see [application access policy](/graph/cloud-communication-online-meeting-application-access-policy).
->- `meetingId` is the **id** of an [onlineMeeting entity](../resources/onlinemeeting.md).
+>- `meetingId` is the **id** of an [onlineMeeting](../resources/onlinemeeting.md) object.
+> - **videoTeleconferenceId** is generated for Cloud-Video-Interop licensed users and can be found in an [onlineMeeting](../resources/onlinemeeting.md) object. Refer to [VTC conference id](/microsoftteams/cloud-video-interop-for-teams-set-up) for more details.
>- `joinWebUrl` must be URL encoded and this route can only be used to retrieve meetings created by `userId`. ## Optional query parameters
Content-Length: 1574
``` ### Example 2: Retrieve an online meeting by meeting ID
-You can retrieve meeting information via meeting ID with either a user or application token. The meeting ID is provided in the response object when creating an [onlineMeeting](../resources/onlinemeeting.md). This option is available to support use cases where the meeting ID is known, such as when an application first creates the meeting, then retrieves meeting information later as a seperate action.
+You can retrieve meeting information via meeting ID with either a user or application token. The meeting ID is provided in the response object when creating an [onlineMeeting](../resources/onlinemeeting.md). This option is available to support use cases where the meeting ID is known, such as when an application first creates the online meeting using Graph API first then retrieves meeting information later as a separate action.
#### Request
+> **Note:** The meeting ID has been truncated for readability.
+ The following request uses a user token. <!-- { "blockType": "ignored" } --> ```http
-GET https://graph.microsoft.com/betQyNTEtNTQ2NS00YjQxLTlkM2EtZWVkODYxODYzMmY2@thread.v2
+GET https://graph.microsoft.com/beta/me/onlineMeetings/MSpkYzE3Njc0Yy04MWQ5LTRhZGItYmZiMi04ZdFpHRTNaR1F6WGhyZWFkLnYy
``` The following request uses an app token. <!-- { "blockType": "ignored" } --> ```http
-GET https://graph.microsoft.com/betQyNTEtNTQ2NS00YjQxLTlkM2EtZWVkODYxODYzMmY2@thread.v2
+GET https://graph.microsoft.com/beta/users/dc17674c-81d9-4adb-bfb2-8f6a442e4622/onlineMeetings/MSpkYzE3Njc0Yy04MWQ5LTRhZGItYmZiMi04ZdFpHRTNaR1F6WGhyZWFkLnYy
``` #### Response
GET https://graph.microsoft.com/beta/users/dc17674c-81d9-4adb-bfb2-8f6a442e4622/
```json {
- "id": "dc17674c-81d9-4adb-bfb2-8f6a442e4622_19:meeting_MGQ4MDQyNTEtNTQ2NS00YjQxLTlkM2EtZWVkODYxODYzMmY2@thread.v2",
+ "id": "MSpkYzE3Njc0Yy04MWQ5LTRhZGItYmZiMi04ZdFpHRTNaR1F6WGhyZWFkLnYy",
"creationDateTime": "2020-09-29T22:35:33.1594516Z", "startDateTime": "2020-09-29T22:35:31.389759Z", "endDateTime": "2020-09-29T23:35:31.389759Z",
v1.0 https://docs.microsoft.com/en-us/graph/api/onlinemeeting-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/onlinemeeting-update.md
Update the **startDateTime**, **endDateTime**, **participants**, and **subject**
> \* Administrators must create an [application access policy](/graph/cloud-communication-online-meeting-application-access-policy) and grant it to a user, authorizing the app configured in the policy to update an online meeting on behalf of that user (user ID specified in the request path). ## HTTP request-
-Request using a delegated token:
+To update the specified onlineMeeting by meeting ID with delegated token:
<!-- { "blockType": "ignored" } --> ```http
-PATCH https://graph.microsoft.com/beta/me/onlineMeetings/{meetingId}
+PATCH /me/onlineMeetings/{meetingId}
```
-Request using an application token:
+To update the specified onlineMeeting by meeting ID with application token:
<!-- { "blockType": "ignored" } --> ```http
-PATCH https://graph.microsoft.com/beta/users/{userId}/onlineMeetings/{meetingId}
+PATCH /users/{userId}/onlineMeetings/{meetingId}
``` > **Notes:**
->
> - `userId` is the object ID of a user in [Azure user management portal](https://portal.azure.com/#blade/Microsoft_AAD_IAM/UsersManagementMenuBlade). For more details, see [application access policy](/graph/cloud-communication-online-meeting-application-access-policy).
-> - `meetingId` is the **id** of an [onlineMeeting entity](../resources/onlinemeeting.md).
+> - `meetingId` is the **id** of an [onlineMeeting](../resources/onlinemeeting.md) object.
## Request headers | Name | Description |
v1.0 https://docs.microsoft.com/en-us/graph/api/openshiftchangerequest-approve https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/openshiftchangerequest-approve.md
One of the following permissions is required to call this API. To learn more, in
<!-- { "blockType": "ignored" } --> ```http
-POST /teams/{id}/schedule/openShiftsChangeRequests/{openShiftChangeRequestId}/approve
+POST /teams/{id}/schedule/openShiftChangeRequests/{openShiftChangeRequestId}/approve
``` ## Request headers
The following is an example of a request.
}--> ```http
-POST https://graph.microsoft.com/beta/teams/{id}/schedule/openShiftsChangeRequests/{openShiftChangeRequestId}/approve
+POST https://graph.microsoft.com/beta/teams/{id}/schedule/openShiftChangeRequests/{openShiftChangeRequestId}/approve
Content-type: application/json {
v1.0 https://docs.microsoft.com/en-us/graph/api/openshiftchangerequest-decline https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/openshiftchangerequest-decline.md
One of the following permissions is required to call this API. To learn more, in
<!-- { "blockType": "ignored" } --> ```http
-POST /teams/{id}/schedule/openShiftsChangeRequests/{openShiftChangeRequestId}/decline
+POST /teams/{id}/schedule/openShiftChangeRequests/{openShiftChangeRequestId}/decline
``` ## Request headers
The following is an example of the request.
}--> ```http
-POST https://graph.microsoft.com/beta/teams/{id}/schedule/openShiftsChangeRequests/{openShiftChangeRequestId}/decline
+POST https://graph.microsoft.com/beta/teams/{id}/schedule/openShiftChangeRequests/{openShiftChangeRequestId}/decline
Content-type: application/json {
v1.0 https://docs.microsoft.com/en-us/graph/api/openshiftchangerequest-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/openshiftchangerequest-get.md
One of the following permissions is required to call this API. To learn more, in
<!-- { "blockType": "ignored" } --> ```http
-GET /teams/{id}/schedule/openShiftsChangeRequests/{openShiftsChangeRequestId}
+GET /teams/{id}/schedule/openShiftChangeRequests/{openShiftsChangeRequestId}
``` ## Optional query parameters
The following is an example of the request.
}--> ```http
-GET https://graph.microsoft.com/beta/teams/{id}/schedule/openShiftsChangeRequests/SREQ_0b87dd20-d5ed-4764-9c3e-cfc8516def09
+GET https://graph.microsoft.com/beta/teams/{id}/schedule/openShiftChangeRequests/SREQ_0b87dd20-d5ed-4764-9c3e-cfc8516def09
``` ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/openshiftchangerequest-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/openshiftchangerequest-list.md
One of the following permissions is required to call this API. To learn more, in
<!-- { "blockType": "ignored" } --> ```http
-GET /teams/{id}/schedule/openShiftsChangeRequests
+GET /teams/{id}/schedule/openShiftChangeRequests
``` ## Optional query parameters
The following is an example of the request.
}--> ```http
-GET https://graph.microsoft.com/beta/teams/{id}/schedule/openShiftsChangeRequests
+GET https://graph.microsoft.com/beta/teams/{id}/schedule/openShiftChangeRequests
``` ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/openshiftchangerequest-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/openshiftchangerequest-post.md
One of the following permissions is required to call this API. To learn more, in
<!-- { "blockType": "ignored" } --> ```http
-POST /teams/{id}/schedule/openShiftsChangeRequests
+POST /teams/{id}/schedule/openShiftChangeRequests
``` ## Optional query parameters
The following is an example of the request.
}--> ```http
-POST https://graph.microsoft.com/beta/teams/788b75d2-a911-48c0-a5e2-dc98480457e3/schedule/openShiftsChangeRequests
+POST https://graph.microsoft.com/beta/teams/788b75d2-a911-48c0-a5e2-dc98480457e3/schedule/openShiftChangeRequests
Authorization: Bearer {token} Content-type: application/json Content-length: 244
v1.0 https://docs.microsoft.com/en-us/graph/api/participant-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/participant-delete.md
Title: "Delete participant"
description: "Delete a specific participant in a call." - localization_priority: Normal ms.prod: "cloud-communications" doc_type: apiPageType
v1.0 https://docs.microsoft.com/en-us/graph/api/participant-invite https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/participant-invite.md
With tenant admin credentials, call the following cmdlets on the tenant remote P
PS C:\> Set-CsOnlineVoiceApplicationInstance -Identity <UPN> -TelephoneNumber <TelephoneNumber> PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId> ```
-> **Note:** If a tenant has Australian PSTN numbers assigned to any application instances, this call might fail. If a tenant is newly created, it might take several days for this feature to be available.
#### Request
v1.0 https://docs.microsoft.com/en-us/graph/api/permission-grant https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/permission-grant.md
- Title: Grant permission description: Grant a list of users access to use the specified link localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/personresponsibility-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/personresponsibility-delete.md
One of the following permissions is required to call this API. To learn more, in
} --> ``` http
-DELETE /me/profile/responsibilities/{id}
-DELETE /users/{id | userPrincipalName}/profile/responsibilities/{id}
+DELETE /me/responsibilities/{id}
+DELETE /users/{id | userPrincipalName}/responsibilities/{id}
``` ## Request headers
If successful, this method returns a `204 No Content` response code.
} --> ``` http
-DELETE https://graph.microsoft.com/beta/me/profile/responsibilities/0fb4c1e3-c1e3-0fb4-e3c1-b40fe3c1b40f
+DELETE https://graph.microsoft.com/beta/me/responsibilities/0fb4c1e3-c1e3-0fb4-e3c1-b40fe3c1b40f
``` ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/personresponsibility-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/personresponsibility-get.md
One of the following permissions is required to call this API. To learn more, in
} --> ``` http
-GET /me/profile/responsibilities/{id}
-GET /users/{id | userPrincipalName}/profile/responsibilities/{id}
+GET /me/responsibilities/{id}
+GET /users/{id | userPrincipalName}/responsibilities/{id}
``` ## Optional query parameters
If successful, this method returns a `200 OK` response code and a [personRespons
## Examples ### Request
-# [HTTP](#tab/http)
+ <!-- { "blockType": "request", "sampleKeys": ["0fb4c1e3-c1e3-0fb4-e3c1-b40fe3c1b40f"],
If successful, this method returns a `200 OK` response code and a [personRespons
} --> ``` http
-GET https://graph.microsoft.com/beta/me/profile/responsibilities/0fb4c1e3-c1e3-0fb4-e3c1-b40fe3c1b40f
+GET https://graph.microsoft.com/beta/me/responsibilities/0fb4c1e3-c1e3-0fb4-e3c1-b40fe3c1b40f
```
-# [C#](#tab/csharp)
-
-# [JavaScript](#tab/javascript)
-
-# [Objective-C](#tab/objc)
-- ### Response **Note:** The response object shown here might be shortened for readability.
v1.0 https://docs.microsoft.com/en-us/graph/api/personresponsibility-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/personresponsibility-update.md
One of the following permissions is required to call this API. To learn more, in
} --> ``` http
-PATCH /me/profile/responsibilities/{id}
-PATCH /users/{id | userPrincipalName}/profile/responsibilities/{id}
+PATCH /me/responsibilities/{id}
+PATCH /users/{id | userPrincipalName}/responsibilities/{id}
``` ## Request headers
If successful, this method returns a `200 OK` response code and an updated [pers
## Examples ### Request
-# [HTTP](#tab/http)
+ <!-- { "blockType": "request", "sampleKeys": ["0fb4c1e3-c1e3-0fb4-e3c1-b40fe3c1b40f"],
If successful, this method returns a `200 OK` response code and an updated [pers
} --> ``` http
-PATCH https://graph.microsoft.com/beta/me/profile/responsibilities/0fb4c1e3-c1e3-0fb4-e3c1-b40fe3c1b40f
+PATCH https://graph.microsoft.com/beta/me/responsibilities/0fb4c1e3-c1e3-0fb4-e3c1-b40fe3c1b40f
Content-Type: application/json Content-length: 446
Content-length: 446
] } ```
-# [C#](#tab/csharp)
-
-# [JavaScript](#tab/javascript)
-
-# [Objective-C](#tab/objc)
-- ### Response **Note:** The response object shown here might be shortened for readability.
v1.0 https://docs.microsoft.com/en-us/graph/api/place-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/place-list.md
Content-type: application/json
"section": "documentation", "tocPath": "", "suppressions": [
- "Error: Malformed function params 'id-of-roomlist'"
] }-->
v1.0 https://docs.microsoft.com/en-us/graph/api/planner-post-rosters https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/planner-post-rosters.md
+
+ Title: "Create plannerRoster"
+description: "Create a new plannerRoster object."
+
+localization_priority: Normal
++
+# Create plannerRoster
+Namespace: microsoft.graph
++
+Create a new [plannerRoster](../resources/plannerroster.md) object.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Tasks.ReadWrite|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+POST /planner/rosters
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+|Content-Type|application/json. Required.|
+
+## Request body
+In the request body, supply a JSON representation of the [plannerRoster](../resources/plannerroster.md) object.
+
+There are no writable properties on [plannerRoster](../resources/plannerroster.md).
+
+## Response
+
+If successful, this method returns a `201 Created` response code and a [plannerRoster](../resources/plannerroster.md) object in the response body.
+
+## Examples
+
+### Request
+
+# [HTTP](#tab/http)
+<!-- {
+ "blockType": "request",
+ "name": "create_plannerroster_from_"
+}
+-->
+``` http
+POST https://graph.microsoft.com/beta/planner/rosters
+Content-Type: application/json
+Content-length: 55
+
+{
+ "@odata.type": "#microsoft.graph.plannerRoster"
+}
+```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.plannerRoster"
+}
+-->
+``` http
+HTTP/1.1 201 Created
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.plannerRoster",
+ "id": "6519868f-868f-6519-8f86-19658f861965"
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/plannerroster-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/plannerroster-delete.md
+
+ Title: "Delete plannerRoster"
+description: "Deletes a plannerRoster object."
+
+localization_priority: Normal
++
+# Delete plannerRoster
+Namespace: microsoft.graph
++
+Delete a [plannerRoster](../resources/plannerroster.md) object.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Tasks.ReadWrite|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+DELETE /planner/rosters/{plannerRosterId}
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `204 No Content` response code.
+
+## Examples
+
+### Request
+
+# [HTTP](#tab/http)
+<!-- {
+ "blockType": "request",
+ "name": "delete_plannerroster"
+}
+-->
+``` http
+DELETE https://graph.microsoft.com/beta/planner/rosters/5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38
+```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++++
+### Response
+<!-- {
+ "blockType": "response",
+ "truncated": true
+}
+-->
+``` http
+HTTP/1.1 204 No Content
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/plannerroster-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/plannerroster-get.md
+
+ Title: "Get plannerRoster"
+description: "Read the properties and relationships of a plannerRoster object."
+
+localization_priority: Normal
++
+# Get plannerRoster
+Namespace: microsoft.graph
++
+Read the properties and relationships of a [plannerRoster](../resources/plannerroster.md) object.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Tasks.Read, Tasks.ReadWrite|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /planner/rosters/{plannerRosterId}
+```
+
+## Optional query parameters
+This method only supports following OData query parameters:
+
+- $expand
+
+For general information, see [OData query parameters](/graph/query-parameters).
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `200 OK` response code and a [plannerRoster](../resources/plannerroster.md) object in the response body.
+
+## Examples
+
+### Request
+
+# [HTTP](#tab/http)
+<!-- {
+ "blockType": "request",
+ "name": "get_plannerroster"
+}
+-->
+``` http
+GET https://graph.microsoft.com/beta/planner/rosters/6519868f-868f-6519-8f86-19658f861965
+```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.plannerRoster"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "value": {
+ "@odata.type": "#microsoft.graph.plannerRoster",
+ "id": "6519868f-868f-6519-8f86-19658f861965"
+ }
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/plannerroster-list-members https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/plannerroster-list-members.md
+
+ Title: "List members of a roster"
+description: "Get the plannerRosterMember resources from the members navigation property."
+
+localization_priority: Normal
++
+# List members of a roster
+Namespace: microsoft.graph
++
+Get the list of [plannerRosterMembers](../resources/plannerrostermember.md) from a [plannerRoster](../resources/plannerroster.md).
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Tasks.Read, Tasks.ReadWrite|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /planner/rosters/{plannerRosterId}/members
+```
+
+## Optional query parameters
+This method only supports following OData query parameters:
+
+- $select
+
+For general information, see [OData query parameters](/graph/query-parameters).
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `200 OK` response code and a collection of [plannerRosterMember](../resources/plannerrostermember.md) objects in the response body.
+
+## Examples
+
+### Request
+
+# [HTTP](#tab/http)
+<!-- {
+ "blockType": "request",
+ "name": "list_plannerrostermember"
+}
+-->
+``` http
+GET https://graph.microsoft.com/beta/planner/rosters/6519868f-868f-6519-8f86-19658f861965/members
+```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "Collection(microsoft.graph.plannerRosterMember)"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.plannerRosterMember",
+ "id": "670095cd-95cd-6700-cd95-0067cd950067",
+ "userId": "5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38",
+ "tenantId": "7084c257-c1b7-4286-98b0-20ea7b5c1319",
+ "roles": [
+ ]
+ }
+ ]
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/plannerroster-list-plans https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/plannerroster-list-plans.md
+
+ Title: "List plans"
+description: "Get the plannerPlan resources from the plans navigation property."
+
+localization_priority: Normal
++
+# List plans
+Namespace: microsoft.graph
++
+Get the [plannerPlans](../resources/plannerplan.md) contained by the [plannerRoster](../resources/plannerRoster.md).
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Tasks.Read, Tasks.ReadWrite|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /planner/rosters/{plannerRosterId}/plans
+```
+
+## Optional query parameters
+This method only supports following OData query parameters:
+
+- $select
+
+For general information, see [OData query parameters](/graph/query-parameters).
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `200 OK` response code and a collection of [plannerPlan](../resources/plannerplan.md) objects in the response body.
+
+## Examples
+
+### Request
+
+# [HTTP](#tab/http)
+<!-- {
+ "blockType": "request",
+ "name": "list_plannerplan"
+}
+-->
+``` http
+GET https://graph.microsoft.com/beta/planner/rosters/6519868f-868f-6519-8f86-19658f861965/plans
+```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "Collection(microsoft.graph.plannerPlan)"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.plannerPlan",
+ "id": "c6442b38-2b38-c644-382b-44c6382b44c6",
+ "createdBy": {
+ "@odata.type": "microsoft.graph.identitySet"
+ },
+ "title": "Test plan",
+ "container": {
+ "@odata.type": "microsoft.graph.plannerPlanContainer",
+ "url": "https://graph.microsoft.com/beta/planner/rosters/6519868f-868f-6519-8f86-19658f861965",
+ "containerId": "6519868f-868f-6519-8f86-19658f861965",
+ "type": "roster"
+ }
+ }
+ ]
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/plannerroster-post-members https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/plannerroster-post-members.md
+
+ Title: "Create plannerRosterMember"
+description: "Create a new plannerRosterMember object."
+
+localization_priority: Normal
++
+# Create plannerRosterMember
+Namespace: microsoft.graph
++
+Add a member to the [plannerRoster](../resources/plannerrostermember.md) object.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Tasks.ReadWrite|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+POST /planner/rosters/{plannerRosterId}/members
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+|Content-Type|application/json. Required.|
+
+## Request body
+In the request body, supply a JSON representation of the [plannerRosterMember](../resources/plannerrostermember.md) object.
+
+The following table shows the properties that are required when you create the [plannerRosterMember](../resources/plannerrostermember.md).
+
+|Property|Type|Description|
+|:|:|:|
+|userId|String|Identifier of the .|
+|tenantId|String|Identifier of the tenant the user belongs to. Optional. Currently roster members cannot be from different tenants.|
+|roles|String collection|Additional roles assigned to the user. Optional. Currently there are no additional roles available for users.|
+++
+## Response
+
+If successful, this method returns a `201 Created` response code and a [plannerRosterMember](../resources/plannerrostermember.md) object in the response body.
+
+## Examples
+
+### Request
+
+# [HTTP](#tab/http)
+<!-- {
+ "blockType": "request",
+ "name": "create_plannerrostermember_from_"
+}
+-->
+``` http
+POST https://graph.microsoft.com/beta/planner/rosters/6519868f-868f-6519-8f86-19658f861965/members
+Content-Type: application/json
+Content-length: 78
+
+{
+ "@odata.type": "#microsoft.graph.plannerRosterMember",
+ "userId": "String"
+}
+```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.plannerRosterMember"
+}
+-->
+``` http
+HTTP/1.1 201 Created
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.plannerRosterMember",
+ "id": "670095cd-95cd-6700-cd95-0067cd950067",
+ "userId": "5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38",
+ "roles": [
+ ]
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/plannerrostermember-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/plannerrostermember-delete.md
+
+ Title: "Delete plannerRosterMember"
+description: "Deletes a plannerRosterMember object."
+
+localization_priority: Normal
++
+# Delete plannerRosterMember
+Namespace: microsoft.graph
++
+Delete a [plannerRosterMember](../resources/plannerrostermember.md) object.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Tasks.ReadWrite|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+DELETE /planner/rosters/{plannerRosterId}/members/{plannerRosterMemberId}
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `204 No Content` response code.
+
+## Examples
+
+### Request
+
+# [HTTP](#tab/http)
+<!-- {
+ "blockType": "request",
+ "name": "delete_plannerrostermember"
+}
+-->
+``` http
+DELETE https://graph.microsoft.com/beta/planner/rosters/523a9d5a-f9d5-45c1-929f-b8525393515c/members/5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38
+```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++++
+### Response
+<!-- {
+ "blockType": "response",
+ "truncated": true
+}
+-->
+``` http
+HTTP/1.1 204 No Content
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/plannerrostermember-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/plannerrostermember-get.md
+
+ Title: "Get plannerRosterMember"
+description: "Read the properties and relationships of a plannerRosterMember object."
+
+localization_priority: Normal
++
+# Get plannerRosterMember
+Namespace: microsoft.graph
++
+Read the properties and relationships of a [plannerRosterMember](../resources/plannerrostermember.md) object.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Tasks.Read, Tasks.ReadWrite|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /planner/rosters/{plannerRosterId}/members/{plannerRosterMemberId}
+```
+
+## Optional query parameters
+This method only supports following OData query parameters:
+
+- $select
+
+For general information, see [OData query parameters](/graph/query-parameters).
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `200 OK` response code and a [plannerRosterMember](../resources/plannerrostermember.md) object in the response body.
+
+## Examples
+
+### Request
+
+# [HTTP](#tab/http)
+<!-- {
+ "blockType": "request",
+ "name": "get_plannerrostermember"
+}
+-->
+``` http
+GET https://graph.microsoft.com/beta/planner/rosters/523a9d5a-f9d5-45c1-929f-b8525393515c/members/5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38
+```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.plannerRosterMember"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.plannerRosterMember",
+ "id": "670095cd-95cd-6700-cd95-0067cd950067",
+ "userId": "5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38",
+ "tenantId": "7084c257-c1b7-4286-98b0-20ea7b5c1319",
+ "roles": [
+ ]
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/plannertask-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/plannertask-update.md
In the request body, supply the values for relevant fields that should be update
|dueDateTime|DateTimeOffset|Date and time at which the task is due. 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 would look like this: `'2014-01-01T00:00:00Z'`| |orderHint|String|Hint used to order items of this type in a list view. The format is defined as outlined [here](../resources/planner-order-hint-format.md).| |percentComplete|Int32|Percentage of task completion. When set to `100`, the task is considered completed. |
+|planId|String|Plan id to which the task belongs.|
|priority|Int32|Priority of the task. Valid range of values is between `0` and `10` (inclusive), with increasing value being lower priority (`0` has the highest priority and `10` has the lowest priority). Currently, Planner interprets values `0` and `1` as "urgent", `2` and `3` and `4` as "important", `5`, `6`, and `7` as "medium", and `8`, `9`, and `10` as "low". Currently, Planner sets the value `1` for "urgent", `3` for "important", `5` for "medium", and `9` for "low".| |startDateTime|DateTimeOffset|Date and time at which the task starts. 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 would look like this: `'2014-01-01T00:00:00Z'`| |title|String|Title of the task.|
v1.0 https://docs.microsoft.com/en-us/graph/api/planneruser-list-rosterplans https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/planneruser-list-rosterplans.md
+
+ Title: "List rosterPlans"
+description: "Get the plannerPlan resources from the rosterPlans navigation property."
+
+localization_priority: Normal
++
+# List rosterPlans
+Namespace: microsoft.graph
++
+Get the list of [plannerPlans](../resources/plannerplan.md) that are contained by the [plannerRosters](../resources/plannerroster.md) of which the user is a member.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Tasks.Read, Tasks.ReadWrite|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Not supported.|
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /users/{usersId}/planner/rosterPlans
+```
+
+## Optional query parameters
+This method only supports following OData query parameters:
+
+- $select
+
+For general information, see [OData query parameters](/graph/query-parameters).
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `200 OK` response code and a collection of [plannerPlan](../resources/plannerplan.md) objects in the response body.
+
+## Examples
+
+### Request
+
+# [HTTP](#tab/http)
+<!-- {
+ "blockType": "request",
+ "name": "list_plannerplan"
+}
+-->
+``` http
+GET https://graph.microsoft.com/beta/users/{usersId}/planner/rosterPlans
+```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "Collection(microsoft.graph.plannerPlan)"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.plannerPlan",
+ "id": "c6442b38-2b38-c644-382b-44c6382b44c6",
+ "createdBy": {
+ "@odata.type": "microsoft.graph.identitySet"
+ },
+ "title": "Test plan",
+ "container": {
+ "@odata.type": "microsoft.graph.plannerPlanContainer",
+ "url": "https://graph.microsoft.com/beta/planner/rosters/5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38",
+ "containerId": "5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38",
+ "type": "roster"
+ }
+ }
+ ]
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/printershare-delete-alloweduser https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/printershare-delete-alloweduser.md
To use the Universal Print service, the user or app's tenant must have an active
## HTTP request <!-- { "blockType": "ignored" } --> ```http
-DELETE /print/printerShare/{id}/allowedUsers/{id}/$ref
+DELETE /print/printerShares/{id}/allowedUsers/{id}/$ref
``` ## Request headers | Name | Description |
The following is an example of the request.
"name": "delete_alloweduser" }--> ```http
-DELETE https://graph.microsoft.com/beta/print/printerShare/{id}/allowedUsers/{id}/$ref
+DELETE https://graph.microsoft.com/beta/print/printerShares/{id}/allowedUsers/{id}/$ref
``` ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/profile-list-accounts https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/profile-list-accounts.md
One of the following permissions is required to call this API. To learn more, in
<!-- { "blockType": "ignored" } --> ```http
-GET /me/profile/accounts
-GET /users/{id | userPrincipalName}/profile/accounts
+GET /me/profile/account
+GET /users/{id | userPrincipalName}/profile/account
``` ## Optional query parameters
If successful, this method returns a `200 OK` response code and a collection of
The following is an example of the request.
-# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "get_account" }--> ```msgraph-interactive
-GET https://graph.microsoft.com/beta/me/profile/accounts
+GET https://graph.microsoft.com/beta/me/profile/account
```
-# [C#](#tab/csharp)
-
-# [JavaScript](#tab/javascript)
-
-# [Objective-C](#tab/objc)
-- ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/profile-list-responsibilities https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/profile-list-responsibilities.md
One of the following permissions is required to call this API. To learn more, in
} --> ``` http
-GET /me/profile/responsibilities
-GET /users/{id | userPrincipalName}/profile/responsibilities
+GET /me/responsibilities
+GET /users/{id | userPrincipalName}/responsibilities
``` ## Optional query parameters
If successful, this method returns a `200 OK` response code and a collection of
## Examples
-# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "get_responsibilities_from_profile" } --> ```msgraph-interactive
-GET https://graph.microsoft.com/beta/me/profile/responsibilities
+GET https://graph.microsoft.com/beta/me/responsibilities
```
-# [C#](#tab/csharp)
-
-# [JavaScript](#tab/javascript)
-
-# [Objective-C](#tab/objc)
-- ### Response **Note:** The response object shown here might be shortened for readability.
v1.0 https://docs.microsoft.com/en-us/graph/api/profile-post-accounts https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/profile-post-accounts.md
One of the following permissions is required to call this API. To learn more, in
} --> ``` http
-POST /me/profile/accounts
-POST /users/{id | userPrincipalName}/profile/accounts
+POST /me/profile/account
+POST /users/{id | userPrincipalName}/profile/account
``` ## Request headers
If successful, this method returns a `201 Created` response code and a [userAcco
## Examples
-# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_useraccountinformation_from_profile" } --> ``` http
-POST https://graph.microsoft.com/beta/me/profile/accounts
+POST https://graph.microsoft.com/beta/me/profile/account
Content-Type: application/json Content-length: 494
Content-length: 494
"countryCode": "NO", } ```
-# [C#](#tab/csharp)
-
-# [JavaScript](#tab/javascript)
-
-# [Objective-C](#tab/objc)
-- ### Response **Note:** The response object shown here might be shortened for readability.
v1.0 https://docs.microsoft.com/en-us/graph/api/profile-post-educationalactivities https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/profile-post-educationalactivities.md
One of the following permissions is required to call this API. To learn more, in
<!-- { "blockType": "ignored" } --> ```http
-POST /user/profile/educationalActivities
+POST /me/profile/educationalActivities
POST /users/{id | userPrincipalName}/profile/educationalActivities ```
v1.0 https://docs.microsoft.com/en-us/graph/api/profile-post-responsibilities https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/profile-post-responsibilities.md
One of the following permissions is required to call this API. To learn more, in
} --> ``` http
-POST /me/profile/responsibilities
-POST /users/{id | userPrincipalName}/profile/responsibilities
+POST /me/responsibilities
+POST /users/{id | userPrincipalName}/responsibilities
``` ## Request headers
If successful, this method returns a `201 Created` response code and a [personRe
## Examples
-# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_personresponsibility_from_profile" } --> ``` http
-POST https://graph.microsoft.com/beta/me/profile/responsibilities
+POST https://graph.microsoft.com/beta/me/responsibilities
Content-Type: application/json Content-length: 413
Content-length: 413
] } ```
-# [C#](#tab/csharp)
-
-# [JavaScript](#tab/javascript)
-
-# [Objective-C](#tab/objc)
-- ### Response **Note:** The response object shown here might be shortened for readability.
v1.0 https://docs.microsoft.com/en-us/graph/api/riskyusers-dismiss https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/riskyusers-dismiss.md
Namespace: microsoft.graph
>**Note:** Using the riskyUsers API requires an Azure AD Premium P2 license.
-Dismiss the risk of one or more [riskyUser](../resources/riskyuser.md) objects. This action sets the targeted user's risk level to none.
+Dismiss the risk of one or more [riskyUser](../resources/riskyuser.md) objects. This action sets the targeted user's risk level to none. The maximum count of users to dismiss in one call is 60.
+ ## Permissions One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
v1.0 https://docs.microsoft.com/en-us/graph/api/serviceprincipal-addkey https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/serviceprincipal-addkey.md
The following is an example of the response.
<!-- { "blockType": "response",
- "truncated": true
+ "truncated": true,
+ "@odata.type": "microsoft.graph.keyCredential"
} --> ```http
Content-Type: application/json
"section": "documentation", "tocPath": "", "suppressions": [
- "Error: serviceprincipal_addkey:\r\n Resource type was null or missing, so we assume there is no response to validate."
- ]
+ ]
}-->
v1.0 https://docs.microsoft.com/en-us/graph/api/signin-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/signin-list.md
Do not supply a request body for this method.
## Response
-If successful, this method returns a `200 OK` response code and collection of [signIn](../resources/signin.md) objects in the response body.
+If successful, this method returns a `200 OK` response code and collection of [signIn](../resources/signin.md) objects in the response body. The collection of objects is listed in descending order based on **createdDateTime**.
## Examples
v1.0 https://docs.microsoft.com/en-us/graph/api/site-delete-permission https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/site-delete-permission.md
If successful, this method returns `204 No Content` response code. It does not r
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "delete_permission"
If successful, this method returns `204 No Content` response code. It does not r
``` http DELETE https://graph.microsoft.com/beta/sites/{sitesId}/permissions/{permissionId} ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/site-get-permission https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/site-get-permission.md
If successful, this method returns a `200 OK` response code and the [permission]
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "get_permission"
If successful, this method returns a `200 OK` response code and the [permission]
``` http GET https://graph.microsoft.com/beta/sites/{sitesId}/permissions/{permissionId} ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
Content-Type: application/json
"type": "#page.annotation", "section": "documentation", "tocPath": "Sites/Permissions/Get site permission"
-} -->
+} -->
v1.0 https://docs.microsoft.com/en-us/graph/api/site-list-permissions https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/site-list-permissions.md
If successful, this method returns a `200 OK` response code and a collection of
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "list_permission"
If successful, this method returns a `200 OK` response code and a collection of
``` http GET https://graph.microsoft.com/beta/sites/{sitesId}/permissions ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
Content-Type: application/json
"type": "#page.annotation", "section": "documentation", "tocPath": "Sites/Permissions/List site permissions"
-} -->
+} -->
v1.0 https://docs.microsoft.com/en-us/graph/api/site-post-permissions https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/site-post-permissions.md
If successful, this method returns a `201 Created` response code and a [permissi
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "create_permission_from_"
Content-Type: application/json
}] } ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/site-update-permission https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/site-update-permission.md
If successful, this method returns a `200 OK` response code and a [permission](.
## Examples ### Request+
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "update_permission_from_"
Content-Type: application/json
"roles": ["read"] } ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/smsauthenticationmethodconfiguration-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/smsauthenticationmethodconfiguration-delete.md
+
+ Title: "Delete smsAuthenticationMethodConfiguration"
+description: "Delete a smsAuthenticationMethodConfiguration object."
+
+localization_priority: Normal
++
+# Delete smsAuthenticationMethodConfiguration
+Namespace: microsoft.graph
++
+Remove changes made to the [Text Message authentication method policy](../resources/smsauthenticationmethodconfiguration.md) by reverting the policy to its default configuration.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Policy.ReadWrite.AuthenticationMethod|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Policy.ReadWrite.AuthenticationMethod|
+
+For delegated scenarios, the administrator needs the Global admin role. For more information, see [role](/azure/active-directory/users-groups-roles/directory-assign-admin-roles#available-roles).
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+DELETE /policies/authenticationMethodsPolicy/authenticationMethodConfigurations/sms
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `204 No Content` response code.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "delete_smsauthenticationmethodconfiguration"
+}
+-->
+``` http
+DELETE https://graph.microsoft.com/beta/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/sms
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true
+}
+-->
+``` http
+HTTP/1.1 204 No Content
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/smsauthenticationmethodconfiguration-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/smsauthenticationmethodconfiguration-get.md
+
+ Title: "Get smsAuthenticationMethodConfiguration"
+description: "Read the properties and relationships of a smsAuthenticationMethodConfiguration object."
+
+localization_priority: Normal
++
+# Get smsAuthenticationMethodConfiguration
+Namespace: microsoft.graph
++
+Read the properties and relationships of a [smsAuthenticationMethodConfiguration](../resources/smsauthenticationmethodconfiguration.md) object, which represents the Text Message authentication method policy for the Azure AD tenant.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Policy.ReadWrite.AuthenticationMethod|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Policy.ReadWrite.AuthenticationMethod|
+
+For delegated scenarios, the administrator needs the Global admin role. For more information, see [role](/azure/active-directory/users-groups-roles/directory-assign-admin-roles#available-roles).
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /policies/authenticationMethodsPolicy/authenticationMethodConfigurations/sms
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `200 OK` response code and a [smsAuthenticationMethodConfiguration](../resources/smsauthenticationmethodconfiguration.md) object in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "get_smsauthenticationmethodconfiguration"
+}
+-->
+``` http
+GET https://graph.microsoft.com/beta/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/sms
+```
+
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.smsAuthenticationMethodConfiguration"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "value": {
+ "@odata.type": "#microsoft.graph.smsAuthenticationMethodConfiguration",
+ "id": "713980c7-80c7-7139-c780-3971c7803971",
+ "state": "String"
+ }
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/smsauthenticationmethodconfiguration-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/smsauthenticationmethodconfiguration-update.md
+
+ Title: "Update smsAuthenticationMethodConfiguration"
+description: "Update the properties of a smsAuthenticationMethodConfiguration object."
+
+localization_priority: Normal
++
+# Update smsAuthenticationMethodConfiguration
+Namespace: microsoft.graph
++
+Update the properties of a [smsAuthenticationMethodConfiguration](../resources/smsauthenticationmethodconfiguration.md) object, which represents the Text Message authentication method policy for the Azure AD tenant.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Policy.ReadWrite.AuthenticationMethod|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Policy.ReadWrite.AuthenticationMethod|
+
+For delegated scenarios, the administrator needs the Global admin role. For more information, see [role](/azure/active-directory/users-groups-roles/directory-assign-admin-roles#available-roles).
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+PATCH /policies/authenticationMethodsPolicy/authenticationMethodConfigurations/sms
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+|Content-Type|application/json. Required.|
+
+## Request body
+In the request body, supply a JSON representation of the [smsAuthenticationMethodConfiguration](../resources/smsauthenticationmethodconfiguration.md) object with the values of fields that should be updated. Existing properties that are not included in the request body will maintain their previous values or be recalculated based on changes to other property values. For best performance, don't include existing values that haven't changed.
+
+The following table shows the properties that are required when you update the [smsAuthenticationMethodConfiguration](../resources/smsauthenticationmethodconfiguration.md) object.
+
+|Property|Type|Description|
+|:|:|:|
+|id|String|The authentication method policy identifier.|
+|state|authenticationMethodState|Possible values are: `enabled`, `disabled`.|
+
+>**Note:** The `@odata.type` property with a value of `#microsoft.graph.smsAuthenticationMethodConfiguration` must be included in the body.
+
+## Response
+
+If successful, this method returns a `200 OK` response code and an updated [smsAuthenticationMethodConfiguration](../resources/smsauthenticationmethodconfiguration.md) object in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "update_smsauthenticationmethodconfiguration"
+}
+-->
+``` http
+PATCH https://graph.microsoft.com/beta/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/sms
+Content-Type: application/json
+Content-length: 100
+
+{
+ "@odata.type": "#microsoft.graph.smsAuthenticationMethodConfiguration",
+ "id": "Sms",
+ "state": "enabled"
+}
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.smsAuthenticationMethodConfiguration"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.smsAuthenticationMethodConfiguration",
+ "id": "713980c7-80c7-7139-c780-3971c7803971",
+ "state": "String"
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/api/subscriptions-socketio https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/subscriptions-socketio.md
- Title: "Get websocket endpoint" description: "Use of these APIs in production applications is not supported." localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronization-acquireaccesstoken https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronization-acquireaccesstoken.md
One of the following permissions is required to call this API. To learn more, in
|:|:| |Delegated (work or school account)|Directory.ReadWrite.All| |Delegated (personal Microsoft account)|Not supported.|
-|Application|Not supported.|
+|Application|Application.ReadWrite.OwnedBy, Directory.ReadWrite.All|
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationjob-delete.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported. |
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationjob-get.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported. |
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationjob-list.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported. |
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-pause https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationjob-pause.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported. |
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationjob-post.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-provision-on-demand https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationjob-provision-on-demand.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported. |
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-restart https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationjob-restart.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported. |
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-start https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationjob-start.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported. |
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationjob-validatecredentials https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationjob-validatecredentials.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported. |
-|Application |Not supported.|
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationschema-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationschema-delete.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported.|
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationschema-filteroperators https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationschema-filteroperators.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationschema-functions https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationschema-functions.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationschema-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationschema-get.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported. |
-|Application |Not supported. |
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationschema-parseexpression https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationschema-parseexpression.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported.|
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationschema-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationschema-update.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported.|
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
## HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationtemplate-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationtemplate-get.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported.|
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
### HTTP Request
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationtemplate-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationtemplate-list.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported.|
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
### HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationtemplate-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationtemplate-post.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported.|
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
### HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/synchronization-synchronizationtemplate-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/synchronization-synchronizationtemplate-update.md
One of the following permissions is required to call this API. To learn more, in
|:--|:| |Delegated (work or school account) |Directory.ReadWrite.All | |Delegated (personal Microsoft account) |Not supported.|
-|Application |Not supported.|
+|Application |Application.ReadWrite.OwnedBy, Directory.ReadWrite.All |
### HTTP Request <!-- { "blockType": "ignored" } -->
v1.0 https://docs.microsoft.com/en-us/graph/api/temporaryaccesspassauthenticationmethod-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/temporaryaccesspassauthenticationmethod-delete.md
+
+ Title: "Delete temporaryAccessPassAuthenticationMethod"
+description: "Deletes a temporaryAccessPassAuthenticationMethod object."
++
+localization_priority: Normal
++
+# Delete temporaryAccessPassAuthenticationMethod
+Namespace: microsoft.graph
++
+Delete a [temporaryAccessPassAuthenticationMethod](../resources/temporaryaccesspassauthenticationmethod.md) object.
+
+While the current Temporary Access Pass on the user is valid, it needs to be deleted before a new Temporary Access Pass can be created on the user.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+### Permissions acting on self
+
+|Permission type | Permissions (from least to most privileged) |
+|:|:-|
+| Delegated (work or school account) | UserAuthenticationMethod.ReadWrite |
+| Delegated (personal Microsoft account) | Not supported. |
+| Application | Not supported. |
+
+### Permissions acting on other users
+
+|Permission type | Permissions (from least to most privileged) |
+|:|:-|:--|
+| Delegated (work or school account) | UserAuthenticationMethod.ReadWrite.All |
+| Delegated (personal Microsoft account) | Not supported. |
+| Application | UserAuthenticationMethod.ReadWrite.All |
+
+For delegated scenarios where an admin is acting on another user, the admin needs [one of the following roles](/azure/active-directory/users-groups-roles/directory-assign-admin-roles#available-roles):
+* Global admin
+* Privileged authentication admin
+* Authentication admin
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+DELETE /users/{id | userPrincipalName}/authentication/temporaryAccessPassMethods/{id}
+DELETE /me/authentication/temporaryAccessPassMethods/{id}
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `204 No Content` response code. It does not return anything in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "delete_temporaryaccesspassauthenticationmethod"
+}
+-->
+``` http
+DELETE https://graph.microsoft.com/beta/users/kim@contoso.com/authentication/temporaryAccessPassMethods/{id}
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true
+}
+-->
+``` http
+HTTP/1.1 204 No Content
+```
v1.0 https://docs.microsoft.com/en-us/graph/api/temporaryaccesspassauthenticationmethod-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/temporaryaccesspassauthenticationmethod-get.md
+
+ Title: "Get temporaryAccessPassAuthenticationMethod"
+description: "Read the properties and relationships of a temporaryAccessPassAuthenticationMethod object."
++
+localization_priority: Normal
++
+# Get temporaryAccessPassAuthenticationMethod
+Namespace: microsoft.graph
++
+Retrieve a user's single [temporaryAccessPassAuthenticationMethod](../resources/temporaryaccesspassauthenticationmethod.md) object.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+### Permissions acting on self
+
+|Permission type | Permissions (from least to most privileged) |
+|:|:-|
+| Delegated (work or school account) | UserAuthenticationMethod.Read, UserAuthenticationMethod.ReadWrite |
+| Delegated (personal Microsoft account) | Not supported. |
+| Application | Not supported. |
+
+### Permissions acting on other users
+
+|Permission type | Permissions (from least to most privileged) |
+|:|:-|:--|
+| Delegated (work or school account) | UserAuthenticationMethod.Read.All, UserAuthenticationMethod.ReadWrite.All |
+| Delegated (personal Microsoft account) | Not supported. |
+| Application | UserAuthenticationMethod.Read.All, UserAuthenticationMethod.ReadWrite.All |
+
+For delegated scenarios where an admin is acting on another user, the admin needs [one of the following roles](/azure/active-directory/users-groups-roles/directory-assign-admin-roles#available-roles):
+* Global admin
+* Global reader
+* Privileged authentication admin
+* Authentication admin
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /me/authentication/temporaryAccessPassMethods/{temporaryAccessPassAuthenticationMethodId}
+GET /users/{id | userPrincipalName}/authentication/temporaryAccessPassMethods/{temporaryAccessPassAuthenticationMethodId}
+```
++
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
++
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `200 OK` response code and a [temporaryAccessPassAuthenticationMethod](../resources/temporaryaccesspassauthenticationmethod.md) object in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "get_temporaryaccesspassauthenticationmethod"
+}
+-->
+``` http
+GET https://graph.microsoft.com/beta/users/kim@contoso.com/authentication/temporaryAccessPassMethods/30fd0dfc-0dfc-30fd-fc0d-fd30fc0dfd30
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.temporaryAccessPassAuthenticationMethod"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "value": {
+ "@odata.type": "#microsoft.graph.temporaryAccessPassAuthenticationMethod",
+ "id": "30fd0dfc-0dfc-30fd-fc0d-fd30fc0dfd30",
+ "temporaryAccessPass": null,
+ "createdDateTime": "String (timestamp)",
+ "startDateTime": "String (timestamp)",
+ "lifetimeInMinutes": "Integer",
+ "isUsableOnce": "Boolean",
+ "isUsable": "Boolean",
+ "methodUsabilityReason": "String"
+ }
+}
+```
v1.0 https://docs.microsoft.com/en-us/graph/api/temporaryaccesspassauthenticationmethod-list https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/temporaryaccesspassauthenticationmethod-list.md
+
+ Title: "List temporaryAccessPassAuthenticationMethods"
+description: "Get a list of the temporaryAccessPassAuthenticationMethod objects and their properties."
++
+localization_priority: Normal
++
+# List temporaryAccessPassAuthenticationMethods
+Namespace: microsoft.graph
++
+Retrieve a list of a user's [temporaryAccessPassAuthenticationMethod](../resources/temporaryaccesspassauthenticationmethod.md) objects and their properties. This call will only return a single object as only one Temporary Access Pass method can be set on users.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+### Permissions acting on self
+
+|Permission type | Permissions (from least to most privileged) |
+|:|:-|
+| Delegated (work or school account) | UserAuthenticationMethod.Read, UserAuthenticationMethod.ReadWrite |
+| Delegated (personal Microsoft account) | Not supported. |
+| Application | Not supported. |
+
+### Permissions acting on other users
+
+|Permission type | Permissions (from least to most privileged) |
+|:|:-|:--|
+| Delegated (work or school account) | UserAuthenticationMethod.Read.All, UserAuthenticationMethod.ReadWrite.All |
+| Delegated (personal Microsoft account) | Not supported. |
+| Application | UserAuthenticationMethod.Read.All, UserAuthenticationMethod.ReadWrite.All |
++
+For delegated scenarios where an admin is acting on another user, the admin needs one of the following [roles](/azure/active-directory/users-groups-roles/directory-assign-admin-roles#available-roles):
+
+* Global admin
+* Global reader
+* Privileged authentication admin
+* Authentication admin
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /me/authentication/temporaryAccessPassMethods
+GET /users/{id | userPrincipalName}/authentication/temporaryAccessPassMethods
+```
+
+## Optional query parameters
+This method does not support optional query parameters to customize the response.
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `200 OK` response code and a collection of [temporaryAccessPassAuthenticationMethod](../resources/temporaryaccesspassauthenticationmethod.md) objects in the response body. This call will only return a single object because only one **temporaryAccessPassAuthenticationMethod** can be set on users.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "list_temporaryaccesspassauthenticationmethod"
+}
+-->
+``` http
+GET https://graph.microsoft.com/beta/me/authentication/temporaryAccessPassMethods
+```
++
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "Collection(microsoft.graph.temporaryAccessPassAuthenticationMethod)"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-Type: application/json
+
+{
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.temporaryAccessPassAuthenticationMethod",
+ "id": "String",
+ "temporaryAccessPass": "String",
+ "createdDateTime": "String (timestamp)",
+ "startDateTime": "String (timestamp)",
+ "lifetimeInMinutes": "Integer",
+ "isUsableOnce": "Boolean",
+ "isUsable": "Boolean",
+ "methodUsabilityReason": "String"
+ }
+ ]
+}
+```
v1.0 https://docs.microsoft.com/en-us/graph/api/temporaryaccesspassauthenticationmethod-post https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/temporaryaccesspassauthenticationmethod-post.md
+
+ Title: "Create temporaryAccessPassAuthenticationMethod"
+description: "Create a new temporaryAccessPassAuthenticationMethod object."
++
+localization_priority: Normal
++
+# Create temporaryAccessPassAuthenticationMethod
+Namespace: microsoft.graph
++
+Create a new [temporaryAccessPassAuthenticationMethod](../resources/temporaryaccesspassauthenticationmethod.md) object on a user. A user can only have one Temporary Access Pass. The passcode can be used between the start and end time of the Temporary Access Pass. If the user requires a new Temporary Access Pass:
+* While the current Temporary Access Pass is valid ΓÇô the admin needs to delete the existing Temporary Access Pass and create a new pass on the user. Deleting a valid Temporary Access Pass will revoke the userΓÇÖs sessions.
+* After the Temporary Access Pass has expired ΓÇô a new temporary access pass overrides the current temporary access pass and doesn't revoke the userΓÇÖs sessions.
++
+## Permissions
+
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+### Permissions acting on self
+
+|Permission type | Permissions (from least to most privileged) |
+|:|:-|
+| Delegated (work or school account) | UserAuthenticationMethod.ReadWrite |
+| Delegated (personal Microsoft account) | Not supported. |
+| Application | Not supported. |
+
+### Permissions acting on other users
+
+|Permission type | Permissions (from least to most privileged) |
+|:|:-|:--|
+| Delegated (work or school account) | UserAuthenticationMethod.ReadWrite.All |
+| Delegated (personal Microsoft account) | Not supported. |
+| Application | UserAuthenticationMethod.ReadWrite.All |
+
+For delegated scenarios where an admin is acting on another user, the admin needs [one of the following roles](/azure/active-directory/users-groups-roles/directory-assign-admin-roles#available-roles):
+* Global admin
+* Privileged authentication admin
+* Authentication admin
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+POST /users/{id | userPrincipalName}/authentication/temporaryAccessPassMethods
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+|Content-Type|application/json. Required.|
+
+## Request body
+In the request body, supply a JSON representation of the [temporaryAccessPassAuthenticationMethod](../resources/temporaryaccesspassauthenticationmethod.md) object.
+
+The following table describes optional properties that can be used when creating the [temporaryAccessPassAuthenticationMethod](../resources/temporaryaccesspassauthenticationmethod.md).
+
+|Property|Type|Description|Required|
+|:|:|:|:|
+|startDateTime|DateTimeOffset|The date and time when the temporaryAccessPass becomes available to use, if not set the Temporary Access Pass is available to use at creation time.| No|
+|lifetimeInMinutes|Int32|The lifetime of the temporaryAccessPass in minutes starting at creation time or at startDateTime, if set. Minimum 10, Maximum 43200 (equivalent to 30 days).| No|
+|isUsableOnce|Boolean|Determines if the pass is limited to a one time use. If True ΓÇô the pass can be used once, if False ΓÇô the pass can be used multiple times within the temporaryAccessPass life time. A multi-use Temporary Access Pass (isUsableOnce = false), can only be created and used for sign-in if it is allowed by the Temporary Access Pass Authentication method policy.| No|
+++
+## Response
+
+If successful, this method returns a `201 Created` response code and a [temporaryAccessPassAuthenticationMethod](../resources/temporaryaccesspassauthenticationmethod.md) object in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "create_temporaryaccesspassauthenticationmethod_from_"
+}
+-->
+``` http
+POST https://graph.microsoft.com/beta/users/kim@contoso.com/authentication/temporaryAccessPassMethods
+Content-Type: application/json
+Content-length: 209
+
+{
+ "@odata.type": "#microsoft.graph.temporaryAccessPassAuthenticationMethod",
+ "startDateTime": "2021-01-26T00:00:00.000Z",
+ "lifetimeInMinutes": 60,
+ "isUsableOnce": false
+}
+```
+
+### Response
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.temporaryAccessPassAuthenticationMethod"
+}
+-->
+``` http
+HTTP/1.1 201 Created
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.temporaryAccessPassAuthenticationMethod",
+ "id": "81757535-e21e-4330-a338-33b8038ff12b",
+ "temporaryAccessPass": "nc+&G=xwDKCz",
+ "createdDateTime": "2021-01-25T23:53:35.5026721Z",
+ "startDateTime": "2021-01-26T00:00:00Z",
+ "lifetimeInMinutes": 60,
+ "isUsableOnce": false,
+ "isUsable": false,
+ "methodUsabilityReason": "NotYetValid"
+
+}
+```
v1.0 https://docs.microsoft.com/en-us/graph/api/temporaryaccesspassauthenticationmethodconfiguration-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/temporaryaccesspassauthenticationmethodconfiguration-delete.md
+
+ Title: "Delete temporaryAccessPassAuthenticationMethodConfiguration"
+description: "Remove changes made to a temporaryAccessPassAuthenticationMethodConfiguration object."
++
+localization_priority: Normal
++
+# Delete temporaryAccessPassAuthenticationMethodConfiguration
+Namespace: microsoft.graph
++
+Remove changes made to the [temporaryAccessPassAuthenticationMethodConfiguration](../resources/temporaryaccesspassauthenticationmethodconfiguration.md) object by reverting the policy to its default configuration.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Policy.ReadWrite.AuthenticationMethod|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Policy.ReadWrite.AuthenticationMethod|
+
+ For delegated scenarios, the administrator needs the Global admin role. For more information, see [roles](/azure/active-directory/users-groups-roles/directory-assign-admin-roles#available-roles).
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+DELETE /policies/authenticationMethodsPolicy/authenticationMethodConfigurations/TemporaryAccessPass
+```
++
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+## Response
+
+If successful, this method returns a `204 No Content` response code.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "delete_fido2authenticationmethodconfiguration"
+}
+-->
+``` http
+DELETE https://graph.microsoft.com/beta/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/TemporaryAccessPass
+```
++
+### Response
+
+<!-- {
+ "blockType": "response",
+ "truncated": true
+}
+-->
+``` http
+HTTP/1.1 204 No Content
+```
v1.0 https://docs.microsoft.com/en-us/graph/api/temporaryaccesspassauthenticationmethodconfiguration-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/temporaryaccesspassauthenticationmethodconfiguration-get.md
+
+ Title: "Get temporaryAccessPassAuthenticationMethodConfiguration"
+description: "Read the properties and relationships of a temporaryAccessPassAuthenticationMethodConfiguration object."
++
+localization_priority: Normal
++
+# Get temporaryAccessPassAuthenticationMethodConfiguration
+Namespace: microsoft.graph
++
+Read the properties and relationships of a [temporaryAccessPassAuthenticationMethodConfiguration](../resources/temporaryaccesspassauthenticationmethodconfiguration.md) object, which represents the Temporary Access Pass [authentication method policy](../resources/authenticationmethodspolicies-overview.md) for the Azure Active Directory (Azure AD) tenant.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Policy.ReadWrite.AuthenticationMethod|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Policy.ReadWrite.AuthenticationMethod|
+
+ For delegated scenarios, the administrator needs the Global admin role. For more information, see[roles](/azure/active-directory/users-groups-roles/directory-assign-admin-roles#available-roles).
+
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+GET /policies/authenticationMethodsPolicy/authenticationMethodConfigurations/TemporaryAccessPass
+```
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+
+## Request body
+Do not supply a request body for this method.
+
+### Response
+The following is an example of the response.
+
+**Note:** The response object shown here might be shortened for readability.
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.fido2AuthenticationMethodConfiguration"
+}
+-->
+``` http
+HTTP/1.1 200 OK
+Content-type: application/json
+
+{
+ "@odata.context": "https://graph.microsoft.com/beta/$metadata#authenticationMethodConfigurations/$entity",
+ "@odata.type": "#microsoft.graph.temporaryAccessPassAuthenticationMethodConfiguration",
+ "id": "TemporaryAccessPass",
+ "state": "enabled",
+ "defaultLifetimeInMinutes": 60,
+ "defaultLength": 12,
+ "minimumLifetimeInMinutes": 60,
+ "maximumLifetimeInMinutes": 1440,
+ "isUsableOnce": false,
+ "includeTargets@odata.context": "https://graph.microsoft.com/beta/$metadata#policies/authenticationMethodsPolicy/authenticationMethodConfigurations('TemporaryAccessPass')/microsoft.graph.temporaryAccessPassAuthenticationMethodConfiguration/includeTargets",
+ "includeTargets": [
+ {
+ "targetType": "group",
+ "id": "all_users",
+ "isRegistrationRequired": false
+ }
+ ]
+}
+```
v1.0 https://docs.microsoft.com/en-us/graph/api/temporaryaccesspassauthenticationmethodconfiguration-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/temporaryaccesspassauthenticationmethodconfiguration-update.md
+
+ Title: "Update temporaryAccessPassAuthenticationMethodConfiguration"
+description: "Update the properties of a temporaryAccessPassAuthenticationMethodConfiguration object."
++
+localization_priority: Normal
++
+# Update temporaryAccessPassAuthenticationMethodConfiguration
+Namespace: microsoft.graph
++
+Update the properties of a [temporaryAccessPassAuthenticationMethodConfiguration](../resources/temporaryaccesspassauthenticationmethodconfiguration.md) object, which represents the Temporary Access Pass authentication method policy for the Azure AD tenant.
+
+## Permissions
+One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference).
+
+|Permission type|Permissions (from least to most privileged)|
+|:|:|
+|Delegated (work or school account)|Policy.ReadWrite.AuthenticationMethod|
+|Delegated (personal Microsoft account)|Not supported.|
+|Application|Policy.ReadWrite.AuthenticationMethod|
+
+ For delegated scenarios, the administrator needs the Global admin role. For more information, see[roles](/azure/active-directory/users-groups-roles/directory-assign-admin-roles#available-roles).
++
+## HTTP request
+
+<!-- {
+ "blockType": "ignored"
+}
+-->
+``` http
+PATCH /policies/authenticationMethodsPolicy/authenticationMethodConfigurations/TemporaryAccessPass
+```
+
+## Request headers
+|Name|Description|
+|:|:|
+|Authorization|Bearer {token}. Required.|
+|Content-Type|application/json. Required.|
+
+## Request body
+In the request body, supply a JSON representation of the [temporaryAccessPassAuthenticationMethodConfiguration](../resources/temporaryaccesspassauthenticationmethodconfiguration.md) object with the values of fields that should be updated. Existing properties that are not included in the request body will maintain their previous values or be recalculated based on changes to other property values. For best performance, don't include existing values that haven't changed.
+
+All properties of the object can be updated. For a list of properties, see [temporaryAccessPassAuthenticationMethodConfiguration](../resources/temporaryaccesspassauthenticationmethodconfiguration.md).
+
+>**Note:** The `@odata.type` property with a value of `#microsoft.graph.temporaryAccessPassAuthenticationMethodConfiguration` must be included in the body.
+
+## Response
+
+If successful, this method returns a `204 No Content` response code. It does not return anything in the response body.
+
+## Examples
+
+### Request
+<!-- {
+ "blockType": "request",
+ "name": "update_temporaryaccesspassauthenticationmethodconfiguration"
+}
+-->
+``` http
+PATCH https://graph.microsoft.com/beta/policies/authenticationMethodsPolicy/authenticationMethodConfigurations/TemporaryAccessPass
+Content-Type: application/json
+
+{
+ "@odata.type":"#microsoft.graph.temporaryAccessPassAuthenticationMethodConfiguration",
+ "state":"enabled",
+ "defaultLifetimeInMinutes":60,
+ "defaultLength":8,
+ "minimumLifetimeInMinutes":60,
+ "maximumLifetimeInMinutes":1440,"
+ isUsableOnce":false,
+ "includeTargets": [
+ {
+ "targetType": "group",
+ "id": "all_users",
+ "isRegistrationRequired": false,
+ "useForSignIn": true
+ }
+ ]
+}
++
+```
+
+### Response
+<!-- {
+ "blockType": "response",
+ "truncated": true
+}
+-->
+``` http
+HTTP/1.1 204 No Content
+```
v1.0 https://docs.microsoft.com/en-us/graph/api/tiindicator-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/tiindicator-update.md
In the request body, supply the values for relevant fields that should be update
|additionalInformation|String|A catchall area into which extra data from the indicator not covered by the other tiIndicator properties may be placed. Data placed into additionalInformation will typically not be utilized by the targetProduct security tool.| |confidence|Int32|An integer representing the confidence the data within the indicator accurately identifies malicious behavior. Acceptable values are 0 ΓÇô 100 with 100 being the highest.| |description|String|Brief description (100 characters or less) of the threat represented by the indicator.|
-|diamondModel|[diamondModel](#diamondmodel-values)|The area of the Diamond Model in which this indicator exists. Possible values are: `unknown`, `adversary`, `capability`, `infrastructure`, `victim`.|
+|diamondModel|[diamondModel](../resources/tiindicator.md#diamondmodel-values)|The area of the Diamond Model in which this indicator exists. Possible values are: `unknown`, `adversary`, `capability`, `infrastructure`, `victim`.|
|expirationDateTime|DateTimeOffset| DateTime string indicating when the Indicator expires. All indicators must have an expiration date to avoid stale indicators persisting in the system. 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 would look like this: `2014-01-01T00:00:00Z`.| |externalId|String|An identification number that ties the indicator back to the indicator providerΓÇÖs system (e.g. a foreign key).| |isActive|Boolean|Used to deactivate indicators within system. By default, any indicator submitted is set as active. However, providers may submit existing indicators with this set to ΓÇÿFalseΓÇÖ to deactivate indicators in the system.|
-|killChain|[killChain](#killchain-values) collection|A JSON array of strings that describes which point or points on the Kill Chain this indicator targets. See "killChain values" below for exact values.|
+|killChain|[killChain](../resources/tiindicator.md#killchain-values) collection|A JSON array of strings that describes which point or points on the Kill Chain this indicator targets. See "killChain values" below for exact values.|
|knownFalsePositives|String|Scenarios in which the indicator may cause false positives. This should be human-readable text.| |lastReportedDateTime|DateTimeOffset|The last time the indicator was seen. 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 would look like this: `2014-01-01T00:00:00Z`| |malwareFamilyNames|String collection|The malware family name associated with an indicator if it exists. Microsoft prefers the Microsoft malware family name if at all possible which can be found via the Windows Defender Security Intelligence [threat encyclopedia](https://www.microsoft.com/wdsi/threats).| |passiveOnly|Boolean|Determines if the indicator should trigger an event that is visible to an end-user. When set to ΓÇÿtrue,ΓÇÖ security tools will not notify the end user that a ΓÇÿhitΓÇÖ has occurred. This is most often treated as audit or silent mode by security products where they will simply log that a match occurred but will not perform the action. Default value is false.| |severity|Int32|An integer representing the severity of the malicious behavior identified by the data within the indicator. Acceptable values are 0 ΓÇô 5 where 5 is the most severe and zero is not severe at all. Default value is 3.| |tags|String collection|A JSON array of strings that stores arbitrary tags/keywords.|
-|tlpLevel|[tlpLevel](#tlplevel-values)| Traffic Light Protocol value for the indicator. Possible values are: `unknown`, `white`, `green`, `amber`, `red`.|
+|tlpLevel|[tlpLevel](../resources/tiindicator.md#tlplevel-values)| Traffic Light Protocol value for the indicator. Possible values are: `unknown`, `white`, `green`, `amber`, `red`.|
-### diamondModel values
-
-For information about this model, see [The diamond model](http://diamondmodel.org).
-
-| Values | Description |
-|:-|:|
-|adversary|The indicator describes the adversary.|
-|capability|The indicator is a capability of the adversary.|
-|infrastructure|The indicator describes infrastructure of the adversary.|
-|victim|The indicator describes the victim of the adversary.|
-
-### killChain values
-
-| Values | Description |
-|:-|:|
-|Actions|Represents ΓÇ£Actions on ObjectivesΓÇ¥. The attacker is leveraging the compromised system to take actions such as a distributed denial of service attack.|
-|C2|Represents the control channel by which a compromised system is manipulated.|
-|Delivery|The process of distributing the exploit code to victims (for example USB, email, websites).|
-|Exploitation|The exploit code taking advantage of vulnerabilities (for example, code execution).|
-|Installation|Installing malware after a vulnerability has been exploited.|
-|Reconnaissance|Indicator is evidence of an activity group harvesting information to be used in a future attack.|
-|Weaponization|Turning a vulnerability into exploit code (for example, malware).|
-
-### tlpLevel values
-
-Every indicator must have a Traffic Light Protocol (tlp) value when it is submitted. This value represents the sensitivity and sharing scope of a given indicator.
-
-| Values | Description |
-|:-|:|
-|White| Sharing scope: Unlimited. Indicators can be shared freely, without restriction.|
-|Green| Sharing scope: Community. Indicators can be shared with the security community.|
-|Amber| Sharing scope: Limited. This is the default setting for indicators and restricts sharing to only those with a need-to-know: 1) Services and service operators that implement threat intelligence; 2) Customers whose system(s) exhibit behavior consistent with the indicator.|
-|Red| Sharing scope: Personal. These indicators are to only be shared directly and, preferably, in person. Typically, TLP Red indicators are not ingested due to their pre-defined restrictions. If TLP Red indicators are submitted, the **passiveOnly** property should be set to `True` as well. |
## Response
v1.0 https://docs.microsoft.com/en-us/graph/api/user-findmeetingtimes https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/user-findmeetingtimes.md
Preference-Applied: outlook.timezone="Pacific Standard Time"
"section": "documentation", "tocPath": "", "suppressions": [
- "Warning: /api-reference/bet:\r\n Failed to parse any rows out of table with headers: |activityDomain value|Suggestions for meeting times|",
- "Error: user_findmeetingtimes/meetingTimeSuggestions/member/confidence:\r\n Expected type Float but actual was Int64. Property: confidence, actual value: '100'",
"Error: user_findmeetingtimes/meetingTimeSuggestions/member/confidence:\r\n Expected type Double but actual was Int64. Property: confidence, actual value: '100'" ] }
v1.0 https://docs.microsoft.com/en-us/graph/api/user-getmembergroups https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/user-getmembergroups.md
One of the following permissions is required to call this API. To learn more, in
| Permission type | Permissions (from least to most privileged) | | :- | : |
-| Delegated (work or school account) | User.ReadBasic.All and GroupMember.Read.All, User.Read and GroupMember.Read.All, User.Read.All and GroupMember.Read.All, User.ReadBasic.All and Group.Read.All, User.Read and Group.Read.All, User.Read.All and Group.Read.All, Directory.Read.All, Directory.ReadWrite.All, Directory.AccessAsUser.All |
+| Delegated (work or school account) | User.ReadBasic.All, User.Read, User.Read.All, Directory.Read.All, Directory.ReadWrite.All, Directory.AccessAsUser.All |
| Delegated (personal Microsoft account) | Not supported. |
-| Application | User.Read.All and GroupMember.Read.All, User.Read.All and Group.Read.All, Directory.Read.All, Directory.ReadWrite.All |
+| Application | User.Read.All, Directory.Read.All, Directory.ReadWrite.All |
## HTTP request
v1.0 https://docs.microsoft.com/en-us/graph/api/user-list-messages https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/user-list-messages.md
Namespace: microsoft.graph
Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders).
-Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request.
+Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000.
+
+To improve the operation response time, use `$select` to specify the exact properties you need; see [example 1](#example-1-list-all-messages) below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the [gateway timeout](/graph/errors#http-status-codes) (HTTP 504).
+
+To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request.
Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see [Paging Microsoft Graph data in your app](/graph/paging).
Do not supply a request body for this method.
If successful, this method returns a `200 OK` response code and collection of [message](../resources/message.md) objects in the response body.
-## Example
-##### Request 1
+## Examples
+### Example 1: List all messages
+#### Request
The first example gets the default, top 10 messages in the signed-in user's mailbox. It uses `$select` to return a subset of the properties of each message in the response. # [HTTP](#tab/http)
GET https://graph.microsoft.com/beta/me/messages?$select=sender,subject
-##### Response 1
+#### Response
Here is an example of the response. To get the next page of messages, apply the URL returned in `@odata.nextLink` to a subsequent GET request. <!-- {
Content-type: application/json
} ``` -
-##### Request 2
-The next example filters all messages in the signed-in user's mailbox for those that mention the user. It also uses `$select`
-to return a subset of the properties of each message in the response.
+### Example 2: Use $filter to get all messages satisfying a specific condition
+#### Request
+The next example filters all messages in the signed-in user's mailbox for those that mention the user. It also uses `$select` to return a subset of the properties of each message in the response.
The example also incorporates URL encoding for the space characters in the query parameter string.
GET https://graph.microsoft.com/beta/me/messages?$filter=MentionsPreview/IsMenti
-##### Response 2
+#### Response
Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call. <!-- { "blockType": "response",
Content-length: 987
} ```
-##### Request 3
+### Example 3: Use prefer header to get the message body and uniqueBody is text format
+#### Request
The third example shows how to use a `Prefer: outlook.body-content-type="text"` header to get the **body** and **uniqueBody** properties of each message in text format. # [HTTP](#tab/http)
Prefer: outlook.body-content-type="text"
-##### Response 3
+#### Response
Here is an example of the response. <!--
v1.0 https://docs.microsoft.com/en-us/graph/api/user-translateexchangeids https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/user-translateexchangeids.md
POST /users/{id|userPrincipalName}/translateExchangeIds
### exchangeIdFormat values
-| Values | Description |
+| Member | Description |
|:-|:| | entryId | The binary entry ID format used by MAPI clients. | | ewsId | The ID format used by Exchange Web Services clients. |
v1.0 https://docs.microsoft.com/en-us/graph/api/useraccountinformation-delete https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/useraccountinformation-delete.md
One of the following permissions is required to call this API. To learn more, in
<!-- { "blockType": "ignored" } --> ```http
-DELETE /me/profile/accounts/{id}
-DELETE /users/{id | userPrincipalName}/profile/accounts/{id}
+DELETE /me/profile/account/{id}
+DELETE /users/{id | userPrincipalName}/profile/account/{id}
``` ## Request headers
The following is an example of the request.
}--> ```http
-DELETE https://graph.microsoft.com/beta/me/profile/accounts/{id}
+DELETE https://graph.microsoft.com/beta/me/profile/account/{id}
``` ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/useraccountinformation-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/useraccountinformation-get.md
One of the following permissions is required to call this API. To learn more, in
<!-- { "blockType": "ignored" } --> ```http
-GET /me/profile/accounts/{id}
-GET /users/{id | userPrincipalName}/profile/accounts/{id}
+GET /me/profile/account/{id}
+GET /users/{id | userPrincipalName}/profile/account/{id}
``` ## Optional query parameters
The following is an example of the request.
}--> ```http
-GET https://graph.microsoft.com/beta/user/profile/accounts/{id}
+GET https://graph.microsoft.com/beta/me/profile/account/{id}
``` ### Response
v1.0 https://docs.microsoft.com/en-us/graph/api/useraccountinformation-update https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/useraccountinformation-update.md
One of the following permissions is required to call this API. To learn more, in
<!-- { "blockType": "ignored" } --> ```http
-PATCH /me/profile/accounts/{id}
-PATCH /users/{id | userPrincipalName}/profile/accounts/{id}
+PATCH /me/profile/account/{id}
+PATCH /users/{id | userPrincipalName}/profile/account/{id}
``` ## Request headers
v1.0 https://docs.microsoft.com/en-us/graph/api/usersource-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/api/usersource-get.md
If successful, this method returns a `200 OK` response code and a [userSource](.
### Request +
+# [HTTP](#tab/http)
<!-- { "blockType": "request", "name": "get_usersource"
If successful, this method returns a `200 OK` response code and a [userSource](.
``` http GET https://graph.microsoft.com/beta/compliance/ediscovery/cases4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/userSources/46384443-4137-3032-3437-363939433735 ```
+# [C#](#tab/csharp)
+
+# [JavaScript](#tab/javascript)
+
+# [Objective-C](#tab/objc)
+
+# [Java](#tab/java)
+++ ### Response
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-csharp-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var accessPackageResourceRequest = new AccessPackageResourceRequestObject
+{
+ CatalogId = "de9315c1-272b-4905-924b-cc112ca180c7",
+ AccessPackageResource = new AccessPackageResource
+ {
+ DisplayName = "Community Outreach",
+ Description = "https://contoso.sharepoint.com/sites/CSR",
+ ResourceType = "SharePoint Online Site",
+ OriginId = "https://contoso.sharepoint.com/sites/CSR",
+ OriginSystem = "SharePointOnline",
+ AdditionalData = new Dictionary<string, object>()
+ {
+ {"accessPackageResourceEnvironment@odata.bind", "accessPackageResourceEnvironments/615f2218-678f-471f-a60a-02c2f4f80c57"}
+ }
+ },
+ RequestType = "AdminAdd"
+};
+
+await graphClient.IdentityGovernance.EntitlementManagement.AccessPackageResourceRequests
+ .Request()
+ .AddAsync(accessPackageResourceRequest);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-new-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-new-csharp-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var accessPackageResourceRequest = new AccessPackageResourceRequestObject
+{
+ CatalogId = "de9315c1-272b-4905-924b-cc112ca180c7",
+ AccessPackageResource = new AccessPackageResource
+ {
+ DisplayName = "Community Outreach",
+ Description = "https://contoso.sharepoint.com/sites/CSR",
+ ResourceType = "SharePoint Online Site",
+ OriginId = "https://contoso.sharepoint.com/sites/CSR",
+ OriginSystem = "SharePointOnline",
+ AccessPackageResourceEnvironment = new AccessPackageResourceEnvironment
+ {
+ OriginId = "https://contoso-admin.sharepoint.com/"
+ }
+ },
+ RequestType = "AdminAdd"
+};
+
+await graphClient.IdentityGovernance.EntitlementManagement.AccessPackageResourceRequests
+ .Request()
+ .AddAsync(accessPackageResourceRequest);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-chatmessage-from-channel-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-chatmessage-from-channel-csharp-snippets.md
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var chatMessage = new ChatMessage {
- Subject = null,
Body = new ItemBody {
- ContentType = BodyType.Html,
- Content = "<attachment id=\"74d20c7f34aa4a7fb74e2b30004247c5\"></attachment>"
- },
- Attachments = new List<ChatMessageAttachment>()
- {
- new ChatMessageAttachment
- {
- Id = "74d20c7f34aa4a7fb74e2b30004247c5",
- ContentType = "application/vnd.microsoft.card.adaptive",
- ContentUrl = null,
- Content = "{\r\n \"$schema\": \"http://adaptivecards.io/schemas/adaptive-card.json\",\r\n \"type\": \"AdaptiveCard\",\r\n \"version\": \"1.2\",\r\n \"speak\": \"The Seattle Seahawks beat the Carolina Panthers 40-7\",\r\n \"body\": [\r\n {\r\n \"type\": \"Container\",\r\n \"items\": [\r\n {\r\n \"type\": \"ColumnSet\",\r\n \"columns\": [\r\n {\r\n \"type\": \"Column\",\r\n \"width\": \"auto\",\r\n \"items\": [\r\n {\r\n \"type\": \"Image\",\r\n \"url\": \"../hostedContents/1/$value\",\r\n \"size\": \"Medium\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"SHADES\",\r\n \"horizontalAlignment\": \"Center\",\r\n \"weight\": \"Bolder\"\r\n }\r\n ]\r\n },\r\n {\r\n \"type\": \"Column\",\r\n \"width\": \"stretch\",\r\n \"separator\": true,\r\n \"spacing\": \"Medium\",\r\n \"items\": [\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"2019-08-31T19:30:00Z\",\r\n \"horizontalAlignment\": \"Center\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"Final\",\r\n \"spacing\": \"None\",\r\n \"horizontalAlignment\": \"Center\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"40 - 7\",\r\n \"size\": \"ExtraLarge\",\r\n \"horizontalAlignment\": \"Center\"\r\n }\r\n ]\r\n },\r\n {\r\n \"type\": \"Column\",\r\n \"width\": \"auto\",\r\n \"separator\": true,\r\n \"spacing\": \"Medium\",\r\n \"items\": [\r\n {\r\n \"type\": \"Image\",\r\n \"url\": \"../hostedContents/2/$value\",\r\n \"size\": \"Medium\",\r\n \"horizontalAlignment\": \"Center\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"SKINS\",\r\n \"horizontalAlignment\": \"Center\",\r\n \"weight\": \"Bolder\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}",
- Name = null,
- ThumbnailUrl = null
- }
- },
- HostedContents = new ChatMessageHostedContentsCollectionPage()
- {
- new ChatMessageHostedContent
- {
- ContentBytes = Encoding.ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaK6UvXb169ToGNuA0Cp+oYVHlxsYGK2QVEFqnT5/eej8/+9nPtr73LwjvFZPxeK84GsMpJHueEniGFJ7785///Ox73/vell/84hcUaoSff/WrX92aOMeCz64UVo389eTJk//1ne98Z/OnP/3p22+99dZ7NlZpaORGw6Ure0Kk72GD73/vfFU0BjQ6KT5lI8UsRjiS6vNFpFibhecoKaBTh9QXv/jF2Y9+9KPZr371K1qDJkqs09jhL14cPLzxxhtudzhogoZNW/ZEe4zLYSECC4ViRRwCghODxWOFOsIO4YzOwV47lxQhdf/9928dCfUJ8GXwnDgiHbpOU4Ijfzu6+pDtD280dJqyJ0A4ud3sahE65pBhhXDKdUEyAnDIQdgnpBBOL774In1fqQ1dp6lBnXONgUU0fNaxB2KuCad09Ek94bA/53wOdgwGAtsWbxiEQwRz15DCkZPHEeY6eE0cgbL3IumhT7L94IWG0Cr2oGNm0HNUwCmX99+gmP/wOF1pC6e8Oefn2obUww8/3Gu+KRX8BVb6POZY4C8Ftg880CBi7JezrzRdx7NT5twJTeBoARP1bFtTaxNSJ0+epNs7lKGOPqco5aVjq9BAitkvIqCyrzRtAp0y9Sc+Q5x3N5VjADYNqVxzT13gFJ29N0kHZzI5Tu9pKC2yX8JSeJfveE8pxeBF0XP97dAHQpRtfypNQqrkgAq86yR55qdoMAX2C5ggH3z+qam+p0OY+2HPWyLPAbgupGoIqEBB5c/7aIqGE9gPiz3FW6bPqV/Jp3jLeJ36rQqpmgIq0KmfL3yIxeqeyCkaUGA/zLL+KTUEVdtP/YZaYpCCx3KMZSFV2iR5G7k+dJgi9EFW8wRwkLRrWUANdsVzCjhtY8VkHAucRZdQXoeFFJYZsNevBeqk5Ql+WM17wjTT1l1EWUBluW+xtyaL+zC4S1gH1VebUG6ChVQJ66D6Sl0nucVhHG3fnYGFVFXzUMs0+ZvT+Vw6q5SnM3FIYSU5e80aaWW6j8QfOp1azKQ4oHAHA/agKq36ZAcBxh5TK/xNlvK0LwQUrsVD4LPXrJHH6bEkDakdN+NbDCh8mlfNcoOmlk0s1/hp3jqpPsX68pe/vB1SNX6at44+7UsvUUjRu4Vu/4f9wqiOogIszowLOrajqABHCfF77eIHP/jB9lEUe53a6WgqPVbnlpbeznj7P+yXil9V3lU8NzXGo6ig79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg=="),
- ContentType = "image/png",
- AdditionalData = new Dictionary<string, object>()
- {
- {"@microsoft.graph.temporaryId", "1"}
- }
- },
- new ChatMessageHostedContent
- {
- ContentBytes = Encoding.ASCII.GetBytes("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEar6WzSnk5E4cUVpKz16yRVqb7SPym08nFTIoDCncwYA+q0qp3dhBg7DG1wt9kKS/7QkDhs3gIfPaaNfK4PJakIbXrZnyLAYV386pZbtDUsonlGt/NWyfVu1hPPfXUTkjV+G7eOnq3L71EIUXvFrrzH/YLozqLCrA4My7o2M6iApwlxPvaxSuvvLJzFsVep3Y6m0qP1bmlpbcz3vkP+6XiV5V3Fc9NjfEsKui7duq5557bCakzZ87Q1xgDzU2lg7WJrMYtrLzf+vY/7JdwXyj24FFYPL3H36BjmmOJ4UPXix2orbfeemsnpMZcJ8zhsf2X9np+GP9Hk+TM9j/sF4u6u0Fqix0yx2eNhtZnPdBXX321HVK45S977jHRrYjTwF+MrL5rYP6bfglEbPsf8wewJxqN0CFr+ABxX10vZbCMAX8QUmOcMI9pAr2/jouhscyp8de9I6BGsXhznTBwx3wJE7A3C5r4/PPPrU/8EFJjWOS6Tt9LY+n0rh6+NarVNygjpHCnTfZko4KBm2CCrwpd3uXDXFT4c+7cOfq8Y8RqIc20nIvC2dN+6140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC"),
- ContentType = "image/png",
- AdditionalData = new Dictionary<string, object>()
- {
- {"@microsoft.graph.temporaryId", "2"}
- }
- }
+ Content = "Hello World"
} };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-directoryobject-from-orgcontact-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-directoryobject-from-orgcontact-csharp-snippets.md
var directoryObject = new DirectoryObject
} };
-await graphClient.Contacts["{id}"].MemberOf
+await graphClient.Contacts["{id}"].DirectReports
.Request() .AddAsync(directoryObject);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-educationclass-from-educationschool-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-educationclass-from-educationschool-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-await graphClient.Education.Schools["10001"].Users["13006"]
+var educationClass = new EducationClass
+{
+ AdditionalData = new Dictionary<string, object>()
+ {
+ {"@odata.id", "https://graph.microsoft.com/beta/education/classes/11006"}
+ }
+};
+
+await graphClient.Education.Schools["10002"].Classes.References
.Request()
- .DeleteAsync();
+ .AddAsync(educationClass);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-identityuserflow-from-identitycontainer-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-identityuserflow-from-identitycontainer-csharp-snippets.md
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var identityUserFlow = new IdentityUserFlow {
+ Id = "Pol1",
UserFlowType = UserFlowType.SignUpOrSignIn, UserFlowTypeVersion = 1f };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-identityuserflowattributeassignment-from--csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-identityuserflowattributeassignment-from--csharp-snippets.md
var identityUserFlowAttributeAssignment = new IdentityUserFlowAttributeAssignmen
} };
-await graphClient.Identity.B2cUserFlows["B2C_1_Consumer"].UserAttributeAssignments
+await graphClient.Identity.B2xUserFlows["B2X_1_Partner"].UserAttributeAssignments
.Request() .AddAsync(identityUserFlowAttributeAssignment);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-permission-from--csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-permission-from--csharp-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var permission = new Permission
+{
+ Roles = new List<String>()
+ {
+ "write"
+ },
+ GrantedToIdentities = new List<IdentitySet>()
+ {
+ new IdentitySet
+ {
+ Application = new Identity
+ {
+ Id = "89ea5c94-7736-4e25-95ad-3fa95f62b66e",
+ DisplayName = "Foo App"
+ }
+ }
+ }
+};
+
+await graphClient.Sites["{sitesId}"].Permissions
+ .Request()
+ .AddAsync(permission);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-plannerroster-from--csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-plannerroster-from--csharp-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var plannerRoster = new PlannerRoster
+{
+};
+
+await graphClient.Planner.Rosters
+ .Request()
+ .AddAsync(plannerRoster);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-plannerrostermember-from--csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-plannerrostermember-from--csharp-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var plannerRosterMember = new PlannerRosterMember
+{
+ UserId = "String"
+};
+
+await graphClient.Planner.Rosters["6519868f-868f-6519-8f86-19658f861965"].Members
+ .Request()
+ .AddAsync(plannerRosterMember);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/create-printjob-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/create-printjob-csharp-snippets.md
var printJob = new PrintJob
} };
-await graphClient.Print.Printers["{id}"].Jobs
+await graphClient.Print.Shares["{id}"].Jobs
.Request() .AddAsync(printJob);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/delete-b2xuserflows-identityproviders-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/delete-b2xuserflows-identityproviders-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-await graphClient.Identity.B2xUserFlows["B2X_1_PartnerSignUp"].IdentityProviders["Facebook-OAUTH"].Reference
+await graphClient.Identity.B2cUserFlows["B2C_1_CustomerSignUp"].IdentityProviders["Facebook-OAUTH"].Reference
.Request() .DeleteAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/delete-call-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/delete-call-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-await graphClient.Communications.Calls["57dab8b1-894c-409a-b240-bd8beae78896"]
+await graphClient.Me.OnlineMeetings["550fae72-d251-43ec-868c-373732c2704f_19:meeting_M2IzYzczNTItYmY3OC00MDlmLWJjMzUtYmFiMjNlOTY4MGEz@thread.skype"]
.Request() .DeleteAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/delete-organizationalbrandingproperties-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/delete-organizationalbrandingproperties-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-await graphClient.Organization["d69179bf-f4a4-41a9-a9de-249c0f2efb1d"].Branding.Localizations["fr"]
+await graphClient.Organization["d69179bf-f4a4-41a9-a9de-249c0f2efb1d"].Branding
.Request() .DeleteAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/delete-plannerroster-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/delete-plannerroster-csharp-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+await graphClient.Planner.Rosters["5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38"]
+ .Request()
+ .DeleteAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/delete-plannerrostermember-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/delete-plannerrostermember-csharp-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+await graphClient.Planner.Rosters["523a9d5a-f9d5-45c1-929f-b8525393515c"].Members["5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38"]
+ .Request()
+ .DeleteAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/educationassignment-publish-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/educationassignment-publish-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-await graphClient.Education.Classes["11021"].Assignments["19002"]
- .Publish()
+var @string = await graphClient.Education.Classes["11012"].Assignments["19002"]
+ .GetResourcesFolderUrl()
.Request()
- .PostAsync();
+ .GetAsync();
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-a-count-endswith-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-a-count-endswith-csharp-snippets.md
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var users = await graphClient.Users .Request() .Header("ConsistencyLevel","eventual")
- .Filter("endswith(mail,'a@contoso.com'),")
- .OrderBy("userPrincipalName ")
+ .Filter("endswith(mail,'a@contoso.com')")
+ .OrderBy("userPrincipalName")
.GetAsync(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-accesspackageresourceenvironment-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-accesspackageresourceenvironment-csharp-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var accessPackageResourceEnvironment = await graphClient.IdentityGovernance.EntitlementManagement.AccessPackageResourceEnvironments["{accessPackageResourceEnvironmentId}"]
+ .Request()
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-accesspackageresourceroles-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-accesspackageresourceroles-csharp-snippets.md
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var accessPackageResourceRoles = await graphClient.IdentityGovernance.EntitlementManagement.AccessPackageCatalogs["15d889df-3eb8-4e9b-bfb4-b1908849aec4"].AccessPackageResourceRoles .Request()
- .Filter("(originSystem eq 'AadGroup' and accessPackageResource/id eq 'a35bef72-a8aa-4ca3-af30-f6b2ece7208f'),")
+ .Filter("(originSystem eq 'AadGroup' and accessPackageResource/id eq 'a35bef72-a8aa-4ca3-af30-f6b2ece7208f')")
.Expand("accessPackageResource/id%20eq%20'a35bef72-a8aa-4ca3-af30-f6b2ece7208f')") .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-accessreviews-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-accessreviews-csharp-snippets.md
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var accessReviews = await graphClient.AccessReviews .Request()
- .Filter("businessFlowTemplateId eq '6e4f3d20-c5c3-407f-9695-8460952bcc68',")
+ .Filter("businessFlowTemplateId eq '6e4f3d20-c5c3-407f-9695-8460952bcc68'")
.Skip(0) .Top(100) .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-classes-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-classes-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var classes = await graphClient.Education.Classes
+var classes = await graphClient.Education.Schools["10002"].Classes
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-cloudpconpremisesconnection-withdetails-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-cloudpconpremisesconnection-withdetails-csharp-snippets.md
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var cloudPcOnPremisesConnection = await graphClient.DeviceManagement.VirtualEndpoint.OnPremisesConnections["{id}"] .Request()
- .Select("id,displayName,subscriptionId,subscriptionName,adDomainName,adDomainUsername,organizationalUnit,virtualNetworkId,subnetId,healthCheckStatus,healthCheckStatusDetails,inUse")
+ .Select("id,displayName,healthCheckStatus,healthCheckStatusDetails,inUse")
.GetAsync(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-connector-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-connector-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var connector = await graphClient.OnPremisesPublishingProfiles["applicationProxy"].Connectors["{id}"]
+var printConnector = await graphClient.Print.Connectors["{id}"]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-connectors-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-connectors-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var connectors = await graphClient.OnPremisesPublishingProfiles["applicationProxy"].Connectors
+var connectors = await graphClient.Print.Printers["{id}"].Connectors
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-educationuser-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-educationuser-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var educationUser = await graphClient.Education.Users["13012"]
+var user = await graphClient.Education.Me.User
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-group-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-group-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var groups = await graphClient.TermStore.Groups
+var group = await graphClient.TermStore.Groups["{groupId}"]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-grouplifecyclepolicy-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-grouplifecyclepolicy-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var groupLifecyclePolicies = await graphClient.GroupLifecyclePolicies
+var groupLifecyclePolicy = await graphClient.GroupLifecyclePolicies["{id}"]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-identityprovider-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-identityprovider-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var identityProvider = await graphClient.IdentityProviders["{id}"]
+var identityProviders = await graphClient.IdentityProviders
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-identityuserflowattributeassignment-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-identityuserflowattributeassignment-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var userAttributeAssignments = await graphClient.Identity.B2xUserFlows["{id}"].UserAttributeAssignments
+var identityUserFlowAttributeAssignment = await graphClient.Identity.B2cUserFlows["{id}"].UserAttributeAssignments["{id}"]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-identityuserflowattributeassignment-expand-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-identityuserflowattributeassignment-expand-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var userAttributeAssignments = await graphClient.Identity.B2xUserFlows["{id}"].UserAttributeAssignments
+var identityUserFlowAttributeAssignment = await graphClient.Identity.B2cUserFlows["{id}"].UserAttributeAssignments["{id}"]
.Request() .Expand("userAttribute") .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-messages-with-mentions-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-messages-with-mentions-csharp-snippets.md
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var messages = await graphClient.Me.Messages .Request()
- .Filter("MentionsPreview/IsMentioned eq true,")
+ .Filter("MentionsPreview/IsMentioned eq true")
.Select("subject,sender,receivedDateTime,mentionsPreview") .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-names-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-names-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var names = await graphClient.Me.Drive.Items["{id}"].Workbook.Names
+var names = await graphClient.Me.Profile.Names
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-offershiftrequest-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-offershiftrequest-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var offerShiftRequests = await graphClient.Teams["{teamId}"].Schedule.OfferShiftRequests
+var offerShiftRequest = new OfferShiftRequestObject
+{
+ SenderShiftId = "SHFT_f7e484ed-fdd6-421c-92d9-0bc9e62e2c29",
+ SenderMessage = "Having a family emergency, could you take this shift for me?",
+ RecipientUserId = "fe278b61-21ac-4872-8b41-1962bbb98e3c"
+};
+
+await graphClient.Teams["788b75d2-a911-48c0-a5e2-dc98480457e3"].Schedule.OfferShiftRequests
.Request()
- .GetAsync();
+ .Header("Authorization","Bearer {token}")
+ .AddAsync(offerShiftRequest);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-opentypeextension-3-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-opentypeextension-3-csharp-snippets.md
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var message = await graphClient.Me.Messages["AAMkAGE1M2IyNGNmLTI5MTktNDUyZi1iOTVl==="] .Request()
- .Filter("id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')")
.Expand("extensions($filter=id%20eq%20'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')") .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-organizationalbrandingproperties-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-organizationalbrandingproperties-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var localizations = await graphClient.Organization["d69179bf-f4a4-41a9-a9de-249c0f2efb1d"].Branding.Localizations["en-US"]
- .Request()
- .Select("SignInPageText")
- .GetAsync();
+var organizationalBrandingLocalization = new OrganizationalBrandingLocalization
+{
+ BackgroundColor = "#00000F",
+ Id = "fr"
+};
-var signInPageText = localizations.SignInPageText;
+await graphClient.Organization["d69179bf-f4a4-41a9-a9de-249c0f2efb1d"].Branding.Localizations
+ .Request()
+ .AddAsync(organizationalBrandingLocalization);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-permission-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-permission-csharp-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var permission = await graphClient.Sites["{sitesId}"].Permissions["{permissionId}"]
+ .Request()
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-plannerroster-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-plannerroster-csharp-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var plannerRoster = await graphClient.Planner.Rosters["6519868f-868f-6519-8f86-19658f861965"]
+ .Request()
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-plannerrostermember-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-plannerrostermember-csharp-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var plannerRosterMember = await graphClient.Planner.Rosters["523a9d5a-f9d5-45c1-929f-b8525393515c"].Members["5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38"]
+ .Request()
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-plans-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-plans-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var plans = await graphClient.Planner.Plans
+var plans = await graphClient.Groups["ebf3b108-5234-4e22-b93d-656d7dae5874"].Planner.Plans
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-roleassignments-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-roleassignments-csharp-snippets.md
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var roleAssignments = await graphClient.RoleManagement.Directory.RoleAssignments .Request()
- .Filter(" principalId eq 'f1847572-48aa-47aa-96a3-2ec61904f41f'")
.GetAsync(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-schools-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-schools-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var schools = await graphClient.Education.Classes["11014"].Schools
+var schools = await graphClient.Education.Me.Schools
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-settings-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-settings-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var analytics = await graphClient.Me.Analytics
+var settings = await graphClient.Settings
.Request()
- .Select("Settings")
.GetAsync();
-var settings = analytics.Settings;
- ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-signin-last-time-filter-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-signin-last-time-filter-csharp-snippets.md
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var users = await graphClient.Users .Request()
- .Filter("startswith(displayName,'Eric'),")
+ .Filter("startswith(displayName,'Eric')")
.Select("displayName,signInActivity") .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-singlevaluelegacyextendedproperty-1-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-singlevaluelegacyextendedproperty-1-csharp-snippets.md
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var message = await graphClient.Me.Messages["AAMkAGE1M2_bs88AACHsLqWAAA="] .Request()
- .Filter("id eq 'String {66f5a359-4659-4830-9070-00047ec6ac6e} Name Color')")
.Expand("singleValueExtendedProperties($filter=id%20eq%20'String%20%7B66f5a359-4659-4830-9070-00047ec6ac6e%7D%20Name%20Color')") .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-sitesource-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-sitesource-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var siteSource = await graphClient.Compliance.Ediscovery.Cases["4c8f8f70-7785-4bd4-b296-c98376a2c5e1"].Custodians["2192ca408ea2410eba3bec8ae873be6b"].SiteSources["38304445-3741-3333-4233-344238454333"]
+var siteSources = await graphClient.Compliance.Ediscovery.Cases["4c8f8f70-7785-4bd4-b296-c98376a2c5e1"].Custodians["2192ca408ea2410eba3bec8ae873be6b"].SiteSources
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-synchronizationschema-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-synchronizationschema-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var synchronizationSchema = await graphClient.ServicePrincipals["{id}"].Synchronization.Jobs["{jobId}"].Schema
+var synchronizationSchema = await graphClient.ServicePrincipals["{servicePrincipalId}"].Synchronization.Jobs["{jobId}"].Schema
.Request()
+ .Header("Authorization","Bearer {Token}")
.GetAsync(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-timeoffrequest-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-timeoffrequest-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var timeOffRequests = await graphClient.Teams["{teamId}"].Schedule.TimeOffRequests
+var timeOffRequest = await graphClient.Teams["{teamId}"].Schedule.TimeOffRequests["{timeOffRequestId}"]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-todotask-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-todotask-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var todoTask = await graphClient.Me.Todo.Lists["AAMkADA1MTHgwAAA="].Tasks["721a35e2-35e2-721a-e235-1a72e2351a72"]
+var tasks = await graphClient.Me.Todo.Lists["35e2-35e2-721a-e235-1a72e2351a7"].Tasks
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-todotasklist-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-todotasklist-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var lists = await graphClient.Me.Todo.Lists
+var todoTaskList = await graphClient.Me.Todo.Lists["AAMkADIyAAAAABrJAAA="]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-unifiedgroupsource-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-unifiedgroupsource-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var unifiedGroupSources = await graphClient.Compliance.Ediscovery.Cases["4c8f8f70-7785-4bd4-b296-c98376a2c5e1"].Custodians["2192ca408ea2410eba3bec8ae873be6b"].UnifiedGroupSources
+var unifiedGroupSource = await graphClient.Compliance.Ediscovery.Cases["4c8f8f70-7785-4bd4-b296-c98376a2c5e1"].Custodians["2192ca408ea2410eba3bec8ae873be6b"].UnifiedGroupSources["33434233-3030-3739-3043-393039324633"]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-unifiedroleassignmentmultiple-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-unifiedroleassignmentmultiple-csharp-snippets.md
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var roleAssignments = await graphClient.RoleManagement.DeviceManagement.RoleAssignments .Request()
- .Filter(" principalIds/any(x:x eq '564ae70c-73d9-476b-820b-fb61eb7384b9')")
.GetAsync(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-userflowlanguageconfiguration-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-userflowlanguageconfiguration-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var languages = await graphClient.Identity.B2cUserFlows["B2C_1_CustomerSignUp"].Languages
+var languages = await graphClient.Identity.B2xUserFlows["B2X_1_PartnerSignUp"].Languages
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-userflowlanguagepage-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-userflowlanguagepage-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var stream = await graphClient.Identity.B2cUserFlows["B2C_1_Customer"].Languages["en"].DefaultPages["idpselections"].Content
+var defaultPages = await graphClient.Identity.B2cUserFlows["B2C_1_Customer"].Languages["en"].DefaultPages
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/get-usersource-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/get-usersource-csharp-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var userSources = await graphClient.Compliance.Ediscovery.Cases["4c8f8f70-7785-4bd4-b296-c98376a2c5e1"].Custodians["2192ca408ea2410eba3bec8ae873be6b"].UserSources
+ .Request()
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-accesspackageresourceenvironment-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/list-accesspackageresourceenvironment-csharp-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var accessPackageResourceEnvironments = await graphClient.IdentityGovernance.EntitlementManagement.AccessPackageResourceEnvironments
+ .Request()
+ .Filter("originSystem eq 'SharePointOnline'")
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-permission-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/list-permission-csharp-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var permissions = await graphClient.Sites["{sitesId}"].Permissions
+ .Request()
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-plannerplan-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/list-plannerplan-csharp-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var rosterPlans = await graphClient.Users["{usersId}"].Planner.RosterPlans
+ .Request()
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-plannerrostermember-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/list-plannerrostermember-csharp-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var members = await graphClient.Planner.Rosters["6519868f-868f-6519-8f86-19658f861965"].Members
+ .Request()
+ .GetAsync();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-teamsapp-with-filter-expand-appdefinitions-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/list-teamsapp-with-filter-expand-appdefinitions-csharp-snippets.md
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var teamsApps = await graphClient.AppCatalogs.TeamsApps .Request()
- .Filter("id eq '876df28f-2e78-423b-94a5-44181bd0e225',")
+ .Filter("id eq '876df28f-2e78-423b-94a5-44181bd0e225'")
.Expand("appDefinitions") .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/list-usageright-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/list-usageright-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var usageRights = await graphClient.Users["{userId}"].UsageRights
+var usageRights = await graphClient.Devices["{objectId}"].UsageRights
.Request() .Filter("state in ('active', 'suspended') and serviceIdentifier in ('ABCD')") .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/sendreminder-accessreview-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/sendreminder-accessreview-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-await graphClient.AccessReviews["2975E9B5-44CE-4E71-93D3-30F03B5AA992"]
+await graphClient.IdentityGovernance.AccessReviews.Definitions["04e5c3b2-9db2-40d3-a204-128f4956ae8e"].Instances["70463350-742e-4909-bfa5-bc23447bd002"]
.SendReminder() .Request() .PostAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/shift-get-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/shift-get-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var shiftPreferences = await graphClient.Users["871dbd5c-3a6a-4392-bfe1-042452793a50"].ShiftPreferences
+var shift = await graphClient.Teams["{teamId}"].Schedule.Shifts["{shiftId}"]
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/tablerowcollection-add-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/tablerowcollection-add-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+Int32? index = null;
+ var values = JToken.Parse("[[1,2,3],[4,5,6]]"); await graphClient.Me.Drive.Items["{id}"].Workbook.Tables["{id|name}"].Rows
- .Add(null,values)
+ .Add(index,values)
.Request() .PostAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-connectorgroup-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-connectorgroup-csharp-snippets.md
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
var connectorGroup = new ConnectorGroup {
- Name = "Connector Group Demo"
+ Name = "name-value",
+ Region = ConnectorGroupRegion.Nam
};
-await graphClient.OnPremisesPublishingProfiles["applicationProxy"].ConnectorGroups
+await graphClient.OnPremisesPublishingProfiles["applicationProxy"].ConnectorGroups["{id}"]
.Request()
- .AddAsync(connectorGroup);
+ .UpdateAsync(connectorGroup);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-member-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-member-csharp-snippets.md
var conversationMember = new AadUserConversationMember
} };
-await graphClient.Teams["ece6f0a1-7ca4-498b-be79-edf6c8fc4d82"].Channels["19:56eb04e133944cf69e603c5dac2d292e@thread.skype"].Members["ZWUwZjVhZTItOGJjNi00YWU1LTg0NjYtN2RhZWViYmZhMDYyIyM3Mzc2MWYwNi0yYWM5LTQ2OWMtOWYxMC0yNzlhOGNjMjY3Zjk="]
+await graphClient.Teams["ece6f0a1-7ca4-498b-be79-edf6c8fc4d82"].Members["ZWUwZjVhZTItOGJjNi00YWU1LTg0NjYtN2RhZWViYmZhMDYyIyM3Mzc2MWYwNi0yYWM5LTQ2OWMtOWYxMC0yNzlhOGNjMjY3Zjk="]
.Request() .UpdateAsync(conversationMember);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-organizationalbrandingproperties-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-organizationalbrandingproperties-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var organizationalBrandingLocalization = new OrganizationalBrandingLocalization
+var organizationalBranding = new OrganizationalBranding
{
- BackgroundColor = "#00000F",
- SignInPageText = "fr"
+ BackgroundColor = "#FFFF33"
};
-await graphClient.Organization["d69179bf-f4a4-41a9-a9de-249c0f2efb1d"].Branding.Localizations["fr"]
+await graphClient.Organization["d69179bf-f4a4-41a9-a9de-249c0f2efb1d"].Branding
.Request()
- .PutAsync(organizationalBrandingLocalization);
+ .PutAsync(organizationalBranding);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-page-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-page-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var stream = new List<Stream>()
-{
- new Stream
- {
- Target = "#para-id",
- Action = "insert",
- Position = "before",
- Content = "<img src=\"image-url-or-part-name\" alt=\"image-alt-text\" />"
- },
- new Stream
- {
- Target = "#list-id",
- Action = "append",
- Content = "<li>new-page-content</li>"
- }
-};
+var stream = new System.IO.MemoryStream(Encoding.UTF8.GetBytes(@"[
+ {
+ 'target':'#para-id',
+ 'action':'insert',
+ 'position':'before',
+ 'content':'<img src=""image-url-or-part-name"" alt=""image-alt-text"" />'
+ },
+ {
+ 'target':'#list-id',
+ 'action':'append',
+ 'content':'<li>new-page-content</li>'
+ }
+]
+"));
var pages = new OnenotePage();
-pages.Content = content;
+pages.Content = stream;
-await graphClient.Me.Onenote.Pages["{id}"].Content
+await graphClient.Me.Onenote.Pages["{id}"]
.Request() .UpdateAsync(pages);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/update-permission-from--csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/update-permission-from--csharp-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```csharp
+
+GraphServiceClient graphClient = new GraphServiceClient( authProvider );
+
+var permission = new Permission
+{
+ Roles = new List<String>()
+ {
+ "read"
+ }
+};
+
+await graphClient.Sites["{sitesId}"].Permissions["{permissionId}"]
+ .Request()
+ .UpdateAsync(permission);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/csharp/user-list-teamsapps-csharp-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/csharp/user-list-teamsapps-csharp-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
GraphServiceClient graphClient = new GraphServiceClient( authProvider );
-var userScopeTeamsAppInstallation = await graphClient.Users["{id}"].Teamwork.InstalledApps["{id}"]
+var installedApps = await graphClient.Users["{id}"].Teamwork.InstalledApps
.Request() .GetAsync();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-java-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+AccessPackageResourceRequest accessPackageResourceRequest = new AccessPackageResourceRequest();
+accessPackageResourceRequest.catalogId = "de9315c1-272b-4905-924b-cc112ca180c7";
+AccessPackageResource accessPackageResource = new AccessPackageResource();
+accessPackageResource.displayName = "Community Outreach";
+accessPackageResource.description = "https://contoso.sharepoint.com/sites/CSR";
+accessPackageResource.resourceType = "SharePoint Online Site";
+accessPackageResource.originId = "https://contoso.sharepoint.com/sites/CSR";
+accessPackageResource.originSystem = "SharePointOnline";
+accessPackageResource.additionalDataManager().put("accessPackageResourceEnvironment@odata.bind", new JsonPrimitive("accessPackageResourceEnvironments/615f2218-678f-471f-a60a-02c2f4f80c57"));
+accessPackageResourceRequest.accessPackageResource = accessPackageResource;
+accessPackageResourceRequest.requestType = "AdminAdd";
+
+graphClient.identityGovernance().entitlementManagement().accessPackageResourceRequests()
+ .buildRequest()
+ .post(accessPackageResourceRequest);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-new-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-new-java-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+AccessPackageResourceRequest accessPackageResourceRequest = new AccessPackageResourceRequest();
+accessPackageResourceRequest.catalogId = "de9315c1-272b-4905-924b-cc112ca180c7";
+AccessPackageResource accessPackageResource = new AccessPackageResource();
+accessPackageResource.displayName = "Community Outreach";
+accessPackageResource.description = "https://contoso.sharepoint.com/sites/CSR";
+accessPackageResource.resourceType = "SharePoint Online Site";
+accessPackageResource.originId = "https://contoso.sharepoint.com/sites/CSR";
+accessPackageResource.originSystem = "SharePointOnline";
+AccessPackageResourceEnvironment accessPackageResourceEnvironment = new AccessPackageResourceEnvironment();
+accessPackageResourceEnvironment.originId = "https://contoso-admin.sharepoint.com/";
+accessPackageResource.accessPackageResourceEnvironment = accessPackageResourceEnvironment;
+accessPackageResourceRequest.accessPackageResource = accessPackageResource;
+accessPackageResourceRequest.requestType = "AdminAdd";
+
+graphClient.identityGovernance().entitlementManagement().accessPackageResourceRequests()
+ .buildRequest()
+ .post(accessPackageResourceRequest);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-chatmessage-from-channel-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-chatmessage-from-channel-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient(); ChatMessage chatMessage = new ChatMessage();
-chatMessage.subject = null;
ItemBody body = new ItemBody();
-body.contentType = BodyType.HTML;
-body.content = "<attachment id=\"74d20c7f34aa4a7fb74e2b30004247c5\"></attachment>";
+body.content = "Hello World";
chatMessage.body = body;
-LinkedList<ChatMessageAttachment> attachmentsList = new LinkedList<ChatMessageAttachment>();
-ChatMessageAttachment attachments = new ChatMessageAttachment();
-attachments.id = "74d20c7f34aa4a7fb74e2b30004247c5";
-attachments.contentType = "application/vnd.microsoft.card.adaptive";
-attachments.contentUrl = null;
-attachments.content = "{\r\n \"$schema\": \"http://adaptivecards.io/schemas/adaptive-card.json\",\r\n \"type\": \"AdaptiveCard\",\r\n \"version\": \"1.2\",\r\n \"speak\": \"The Seattle Seahawks beat the Carolina Panthers 40-7\",\r\n \"body\": [\r\n {\r\n \"type\": \"Container\",\r\n \"items\": [\r\n {\r\n \"type\": \"ColumnSet\",\r\n \"columns\": [\r\n {\r\n \"type\": \"Column\",\r\n \"width\": \"auto\",\r\n \"items\": [\r\n {\r\n \"type\": \"Image\",\r\n \"url\": \"../hostedContents/1/$value\",\r\n \"size\": \"Medium\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"SHADES\",\r\n \"horizontalAlignment\": \"Center\",\r\n \"weight\": \"Bolder\"\r\n }\r\n ]\r\n },\r\n {\r\n \"type\": \"Column\",\r\n \"width\": \"stretch\",\r\n \"separator\": true,\r\n \"spacing\": \"Medium\",\r\n \"items\": [\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"2019-08-31T19:30:00Z\",\r\n \"horizontalAlignment\": \"Center\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"Final\",\r\n \"spacing\": \"None\",\r\n \"horizontalAlignment\": \"Center\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"40 - 7\",\r\n \"size\": \"ExtraLarge\",\r\n \"horizontalAlignment\": \"Center\"\r\n }\r\n ]\r\n },\r\n {\r\n \"type\": \"Column\",\r\n \"width\": \"auto\",\r\n \"separator\": true,\r\n \"spacing\": \"Medium\",\r\n \"items\": [\r\n {\r\n \"type\": \"Image\",\r\n \"url\": \"../hostedContents/2/$value\",\r\n \"size\": \"Medium\",\r\n \"horizontalAlignment\": \"Center\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"SKINS\",\r\n \"horizontalAlignment\": \"Center\",\r\n \"weight\": \"Bolder\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}";
-attachments.name = null;
-attachments.thumbnailUrl = null;
-attachmentsList.add(attachments);
-chatMessage.attachments = attachmentsList;
-LinkedList<ChatMessageHostedContent> hostedContentsList = new LinkedList<ChatMessageHostedContent>();
-ChatMessageHostedContent hostedContents = new ChatMessageHostedContent();
-hostedContents.additionalDataManager().put("@microsoft.graph.temporaryId", new JsonPrimitive("1"));
-hostedContents.contentBytes = Base64.getDecoder().decode("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaK6UvXb169ToGNuA0Cp+oYVHlxsYGK2QVEFqnT5/eej8/+9nPtr73LwjvFZPxeK84GsMpJHueEniGFJ7785///Ox73/vell/84hcUaoSff/WrX92aOMeCz64UVo389eTJk//1ne98Z/OnP/3p22+99dZ7NlZpaORGw6Ure0Kk72GD73/vfFU0BjQ6KT5lI8UsRjiS6vNFpFibhecoKaBTh9QXv/jF2Y9+9KPZr371K1qDJkqs09jhL14cPLzxxhtudzhogoZNW/ZEe4zLYSECC4ViRRwCghODxWOFOsIO4YzOwV47lxQhdf/9928dCfUJ8GXwnDgiHbpOU4Ijfzu6+pDtD280dJqyJ0A4ud3sahE65pBhhXDKdUEyAnDIQdgnpBBOL774In1fqQ1dp6lBnXONgUU0fNaxB2KuCad09Ek94bA/53wOdgwGAtsWbxiEQwRz15DCkZPHEeY6eE0cgbL3IumhT7L94IWG0Cr2oGNm0HNUwCmX99+gmP/wOF1pC6e8Oefn2obUww8/3Gu+KRX8BVb6POZY4C8Ftg880CBi7JezrzRdx7NT5twJTeBoARP1bFtTaxNSJ0+epNs7lKGOPqco5aVjq9BAitkvIqCyrzRtAp0y9Sc+Q5x3N5VjADYNqVxzT13gFJ29N0kHZzI5Tu9pKC2yX8JSeJfveE8pxeBF0XP97dAHQpRtfypNQqrkgAq86yR55qdoMAX2C5ggH3z+qam+p0OY+2HPWyLPAbgupGoIqEBB5c/7aIqGE9gPiz3FW6bPqV/Jp3jLeJ36rQqpmgIq0KmfL3yIxeqeyCkaUGA/zLL+KTUEVdtP/YZaYpCCx3KMZSFV2iR5G7k+dJgi9EFW8wRwkLRrWUANdsVzCjhtY8VkHAucRZdQXoeFFJYZsNevBeqk5Ql+WM17wjTT1l1EWUBluW+xtyaL+zC4S1gH1VebUG6ChVQJ66D6Sl0nucVhHG3fnYGFVFXzUMs0+ZvT+Vw6q5SnM3FIYSU5e80aaWW6j8QfOp1azKQ4oHAHA/agKq36ZAcBxh5TK/xNlvK0LwQUrsVD4LPXrJHH6bEkDakdN+NbDCh8mlfNcoOmlk0s1/hp3jqpPsX68pe/vB1SNX6at44+7UsvUUjRu4Vu/4f9wqiOogIszowLOrajqABHCfF77eIHP/jB9lEUe53a6WgqPVbnlpbeznj7P+yXil9V3lU8NzXGo6ig79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==");
-hostedContents.contentType = "image/png";
-hostedContentsList.add(hostedContents);
-ChatMessageHostedContent hostedContents1 = new ChatMessageHostedContent();
-hostedContents1.additionalDataManager().put("@microsoft.graph.temporaryId", new JsonPrimitive("2"));
-hostedContents1.contentBytes = Base64.getDecoder().decode("iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEar6WzSnk5E4cUVpKz16yRVqb7SPym08nFTIoDCncwYA+q0qp3dhBg7DG1wt9kKS/7QkDhs3gIfPaaNfK4PJakIbXrZnyLAYV386pZbtDUsonlGt/NWyfVu1hPPfXUTkjV+G7eOnq3L71EIUXvFrrzH/YLozqLCrA4My7o2M6iApwlxPvaxSuvvLJzFsVep3Y6m0qP1bmlpbcz3vkP+6XiV5V3Fc9NjfEsKui7duq5557bCakzZ87Q1xgDzU2lg7WJrMYtrLzf+vY/7JdwXyj24FFYPL3H36BjmmOJ4UPXix2orbfeemsnpMZcJ8zhsf2X9np+GP9Hk+TM9j/sF4u6u0Fqix0yx2eNhtZnPdBXX321HVK45S977jHRrYjTwF+MrL5rYP6bfglEbPsf8wewJxqN0CFr+ABxX10vZbCMAX8QUmOcMI9pAr2/jouhscyp8de9I6BGsXhznTBwx3wJE7A3C5r4/PPPrU/8EFJjWOS6Tt9LY+n0rh6+NarVNygjpHCnTfZko4KBm2CCrwpd3uXDXFT4c+7cOfq8Y8RqIc20nIvC2dN+6140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC");
-hostedContents1.contentType = "image/png";
-hostedContentsList.add(hostedContents1);
-ChatMessageHostedContentCollectionResponse chatMessageHostedContentCollectionResponse = new ChatMessageHostedContentCollectionResponse();
-chatMessageHostedContentCollectionResponse.value = hostedContentsList;
-ChatMessageHostedContentCollectionPage chatMessageHostedContentCollectionPage = new ChatMessageHostedContentCollectionPage(chatMessageHostedContentCollectionResponse, null);
-chatMessage.hostedContents = chatMessageHostedContentCollectionPage;
graphClient.teams("{id}").channels("{id}").messages() .buildRequest()
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-educationclass-from-educationschool-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-educationclass-from-educationschool-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-graphClient.education().schools("10001").users("13006")
+EducationClass educationClass = new EducationClass();
+educationClass.additionalDataManager().put("@odata.id", new JsonPrimitive("https://graph.microsoft.com/beta/education/classes/11006"));
+
+graphClient.education().schools("10002").classes().references()
.buildRequest()
- .delete();
+ .post(educationClass);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-identityuserflow-from-identitycontainer-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-identityuserflow-from-identitycontainer-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient(); IdentityUserFlow identityUserFlow = new IdentityUserFlow();
+identityUserFlow.id = "Pol1";
identityUserFlow.userFlowType = UserFlowType.SIGN_UP_OR_SIGN_IN; identityUserFlow.userFlowTypeVersion = 1;
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-identityuserflowattributeassignment-from--java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-identityuserflowattributeassignment-from--java-snippets.md
IdentityUserFlowAttribute userAttribute = new IdentityUserFlowAttribute();
userAttribute.id = "extension_guid_shoeSize"; identityUserFlowAttributeAssignment.userAttribute = userAttribute;
-graphClient.identity().b2cUserFlows("B2C_1_Consumer").userAttributeAssignments()
+graphClient.identity().b2xUserFlows("B2X_1_Partner").userAttributeAssignments()
.buildRequest() .post(identityUserFlowAttributeAssignment);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-permission-from--java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-permission-from--java-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Permission permission = new Permission();
+LinkedList<String> rolesList = new LinkedList<String>();
+rolesList.add("write");
+permission.roles = rolesList;
+LinkedList<IdentitySet> grantedToIdentitiesList = new LinkedList<IdentitySet>();
+IdentitySet grantedToIdentities = new IdentitySet();
+Identity application = new Identity();
+application.id = "89ea5c94-7736-4e25-95ad-3fa95f62b66e";
+application.displayName = "Foo App";
+grantedToIdentities.application = application;
+grantedToIdentitiesList.add(grantedToIdentities);
+permission.grantedToIdentities = grantedToIdentitiesList;
+
+graphClient.sites("{sitesId}").permissions()
+ .buildRequest()
+ .post(permission);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-plannerroster-from--java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-plannerroster-from--java-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+PlannerRoster plannerRoster = new PlannerRoster();
+
+graphClient.planner().rosters()
+ .buildRequest()
+ .post(plannerRoster);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-plannerrostermember-from--java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-plannerrostermember-from--java-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+PlannerRosterMember plannerRosterMember = new PlannerRosterMember();
+plannerRosterMember.userId = "String";
+
+graphClient.planner().rosters("6519868f-868f-6519-8f86-19658f861965").members()
+ .buildRequest()
+ .post(plannerRosterMember);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/create-printjob-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/create-printjob-java-snippets.md
configuration.scaling = PrintScaling.SHRINK_TO_FIT;
configuration.fitPdfToPage = false; printJob.configuration = configuration;
-graphClient.print().printers("{id}").jobs()
+graphClient.print().shares("{id}").jobs()
.buildRequest() .post(printJob);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/delete-b2xuserflows-identityproviders-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/delete-b2xuserflows-identityproviders-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-graphClient.identity().b2xUserFlows("B2X_1_PartnerSignUp").identityProviders("Facebook-OAUTH").reference()
+graphClient.identity().b2cUserFlows("B2C_1_CustomerSignUp").identityProviders("Facebook-OAUTH").reference()
.buildRequest() .delete();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/delete-call-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/delete-call-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-graphClient.communications().calls("57dab8b1-894c-409a-b240-bd8beae78896")
+graphClient.me().onlineMeetings("550fae72-d251-43ec-868c-373732c2704f_19:meeting_M2IzYzczNTItYmY3OC00MDlmLWJjMzUtYmFiMjNlOTY4MGEz@thread.skype")
.buildRequest() .delete();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/delete-organizationalbrandingproperties-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/delete-organizationalbrandingproperties-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-graphClient.organization("d69179bf-f4a4-41a9-a9de-249c0f2efb1d").branding().localizations("fr")
+graphClient.organization("d69179bf-f4a4-41a9-a9de-249c0f2efb1d").branding()
.buildRequest() .delete();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/delete-plannerroster-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/delete-plannerroster-java-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+graphClient.planner().rosters("5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38")
+ .buildRequest()
+ .delete();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/delete-plannerrostermember-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/delete-plannerrostermember-java-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+graphClient.planner().rosters("523a9d5a-f9d5-45c1-929f-b8525393515c").members("5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38")
+ .buildRequest()
+ .delete();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/educationassignment-publish-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/educationassignment-publish-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-graphClient.education().classes("11021").assignments("19002")
- .publish()
+String string = graphClient.education().classes("11012").assignments("19002")
+ .getResourcesFolderUrl()
.buildRequest()
- .post();
+ .get();
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-a-count-endswith-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-a-count-endswith-java-snippets.md
requestOptions.add(new HeaderOption("ConsistencyLevel", "eventual"));
IUserCollectionPage users = graphClient.users() .buildRequest( requestOptions )
- .filter("endswith(mail,'a@contoso.com'),")
- .orderBy("userPrincipalName ")
+ .filter("endswith(mail,'a@contoso.com')")
+ .orderBy("userPrincipalName")
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-accesspackageresourceenvironment-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-accesspackageresourceenvironment-java-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+AccessPackageResourceEnvironment accessPackageResourceEnvironment = graphClient.identityGovernance().entitlementManagement().accessPackageResourceEnvironments("{accessPackageResourceEnvironmentId}")
+ .buildRequest()
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-accesspackageresourceroles-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-accesspackageresourceroles-java-snippets.md
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
IAccessPackageResourceRoleCollectionPage accessPackageResourceRoles = graphClient.identityGovernance().entitlementManagement().accessPackageCatalogs("15d889df-3eb8-4e9b-bfb4-b1908849aec4").accessPackageResourceRoles() .buildRequest()
- .filter("(originSystem eq 'AadGroup' and accessPackageResource/id eq 'a35bef72-a8aa-4ca3-af30-f6b2ece7208f'),")
+ .filter("(originSystem eq 'AadGroup' and accessPackageResource/id eq 'a35bef72-a8aa-4ca3-af30-f6b2ece7208f')")
.expand("accessPackageResource/id%20eq%20'a35bef72-a8aa-4ca3-af30-f6b2ece7208f')") .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-accessreviews-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-accessreviews-java-snippets.md
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
IAccessReviewCollectionPage accessReviews = graphClient.accessReviews() .buildRequest()
- .filter("businessFlowTemplateId eq '6e4f3d20-c5c3-407f-9695-8460952bcc68',")
+ .filter("businessFlowTemplateId eq '6e4f3d20-c5c3-407f-9695-8460952bcc68'")
.skip(0) .top(100) .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-classes-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-classes-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IEducationClassCollectionPage classes = graphClient.education().classes()
+IEducationClassCollectionWithReferencesPage classes = graphClient.education().schools("10002").classes()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-cloudpconpremisesconnection-withdetails-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-cloudpconpremisesconnection-withdetails-java-snippets.md
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
CloudPcOnPremisesConnection cloudPcOnPremisesConnection = graphClient.deviceManagement().virtualEndpoint().onPremisesConnections("{id}") .buildRequest()
- .select("id,displayName,subscriptionId,subscriptionName,adDomainName,adDomainUsername,organizationalUnit,virtualNetworkId,subnetId,healthCheckStatus,healthCheckStatusDetails,inUse")
+ .select("id,displayName,healthCheckStatus,healthCheckStatusDetails,inUse")
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-connector-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-connector-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-Connector connector = graphClient.onPremisesPublishingProfiles("applicationProxy").connectors("{id}")
+PrintConnector printConnector = graphClient.print().connectors("{id}")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-connectors-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-connectors-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IConnectorCollectionPage connectors = graphClient.onPremisesPublishingProfiles("applicationProxy").connectors()
+IPrintConnectorCollectionWithReferencesPage connectors = graphClient.print().printers("{id}").connectors()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-educationuser-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-educationuser-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-EducationUser educationUser = graphClient.education().users("13012")
+User user = graphClient.education().me().user()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-group-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-group-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IGroupCollectionPage groups = graphClient.termStore().groups()
+Group group = graphClient.termStore().groups("{groupId}")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-grouplifecyclepolicy-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-grouplifecyclepolicy-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IGroupLifecyclePolicyCollectionPage groupLifecyclePolicies = graphClient.groupLifecyclePolicies()
+GroupLifecyclePolicy groupLifecyclePolicy = graphClient.groupLifecyclePolicies("{id}")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-identityprovider-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-identityprovider-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IdentityProvider identityProvider = graphClient.identityProviders("{id}")
+IIdentityProviderCollectionPage identityProviders = graphClient.identityProviders()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-identityuserflowattributeassignment-expand-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-identityuserflowattributeassignment-expand-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IIdentityUserFlowAttributeAssignmentCollectionPage userAttributeAssignments = graphClient.identity().b2xUserFlows("{id}").userAttributeAssignments()
+IdentityUserFlowAttributeAssignment identityUserFlowAttributeAssignment = graphClient.identity().b2cUserFlows("{id}").userAttributeAssignments("{id}")
.buildRequest() .expand("userAttribute") .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-identityuserflowattributeassignment-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-identityuserflowattributeassignment-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IIdentityUserFlowAttributeAssignmentCollectionPage userAttributeAssignments = graphClient.identity().b2xUserFlows("{id}").userAttributeAssignments()
+IdentityUserFlowAttributeAssignment identityUserFlowAttributeAssignment = graphClient.identity().b2cUserFlows("{id}").userAttributeAssignments("{id}")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-messages-with-mentions-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-messages-with-mentions-java-snippets.md
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
IMessageCollectionPage messages = graphClient.me().messages() .buildRequest()
- .filter("MentionsPreview/IsMentioned eq true,")
+ .filter("MentionsPreview/IsMentioned eq true")
.select("subject,sender,receivedDateTime,mentionsPreview") .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-names-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-names-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IWorkbookNamedItemCollectionPage names = graphClient.me().drive().items("{id}").workbook().names()
+IPersonNameCollectionPage names = graphClient.me().profile().names()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-offershiftrequest-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-offershiftrequest-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IOfferShiftRequestCollectionPage offerShiftRequests = graphClient.teams("{teamId}").schedule().offerShiftRequests()
- .buildRequest()
- .get();
+LinkedList<Option> requestOptions = new LinkedList<Option>();
+requestOptions.add(new HeaderOption("Authorization", "Bearer {token}"));
+
+OfferShiftRequest offerShiftRequest = new OfferShiftRequest();
+offerShiftRequest.senderShiftId = "SHFT_f7e484ed-fdd6-421c-92d9-0bc9e62e2c29";
+offerShiftRequest.senderMessage = "Having a family emergency, could you take this shift for me?";
+offerShiftRequest.recipientUserId = "fe278b61-21ac-4872-8b41-1962bbb98e3c";
+
+graphClient.teams("788b75d2-a911-48c0-a5e2-dc98480457e3").schedule().offerShiftRequests()
+ .buildRequest( requestOptions )
+ .post(offerShiftRequest);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-opentypeextension-3-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-opentypeextension-3-java-snippets.md
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
Message message = graphClient.me().messages("AAMkAGE1M2IyNGNmLTI5MTktNDUyZi1iOTVl===") .buildRequest()
- .filter("id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')")
.expand("extensions($filter=id%20eq%20'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')") .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-organizationalbrandingproperties-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-organizationalbrandingproperties-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-String string = graphClient.customRequest("/organization/d69179bf-f4a4-41a9-a9de-249c0f2efb1d/branding/localizations/en-US/signInPageText", String.class)
+OrganizationalBrandingLocalization organizationalBrandingLocalization = new OrganizationalBrandingLocalization();
+organizationalBrandingLocalization.backgroundColor = "#00000F";
+organizationalBrandingLocalization.id = "fr";
+
+graphClient.organization("d69179bf-f4a4-41a9-a9de-249c0f2efb1d").branding().localizations()
.buildRequest()
- .get();
+ .post(organizationalBrandingLocalization);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-permission-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-permission-java-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Permission permission = graphClient.sites("{sitesId}").permissions("{permissionId}")
+ .buildRequest()
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-plannerroster-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-plannerroster-java-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+PlannerRoster plannerRoster = graphClient.planner().rosters("6519868f-868f-6519-8f86-19658f861965")
+ .buildRequest()
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-plannerrostermember-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-plannerrostermember-java-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+PlannerRosterMember plannerRosterMember = graphClient.planner().rosters("523a9d5a-f9d5-45c1-929f-b8525393515c").members("5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38")
+ .buildRequest()
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-plans-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-plans-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IPlannerPlanCollectionPage plans = graphClient.planner().plans()
+IPlannerPlanCollectionPage plans = graphClient.groups("ebf3b108-5234-4e22-b93d-656d7dae5874").planner().plans()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-roleassignments-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-roleassignments-java-snippets.md
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
IUnifiedRoleAssignmentCollectionPage roleAssignments = graphClient.roleManagement().directory().roleAssignments() .buildRequest()
- .filter(" principalId eq 'f1847572-48aa-47aa-96a3-2ec61904f41f'")
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-schools-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-schools-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IEducationSchoolCollectionWithReferencesPage schools = graphClient.education().classes("11014").schools()
+IEducationSchoolCollectionWithReferencesPage schools = graphClient.education().me().schools()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-settings-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-settings-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-Settings settings = graphClient.customRequest("/me/analytics/settings", Settings.class)
+IDirectorySettingCollectionPage settings = graphClient.settings()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-signin-last-time-filter-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-signin-last-time-filter-java-snippets.md
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
IUserCollectionPage users = graphClient.users() .buildRequest()
- .filter("startswith(displayName,'Eric'),")
+ .filter("startswith(displayName,'Eric')")
.select("displayName,signInActivity") .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-singlevaluelegacyextendedproperty-1-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-singlevaluelegacyextendedproperty-1-java-snippets.md
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
Message message = graphClient.me().messages("AAMkAGE1M2_bs88AACHsLqWAAA=") .buildRequest()
- .filter("id eq 'String {66f5a359-4659-4830-9070-00047ec6ac6e} Name Color')")
.expand("singleValueExtendedProperties($filter=id%20eq%20'String%20%7B66f5a359-4659-4830-9070-00047ec6ac6e%7D%20Name%20Color')") .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-sitesource-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-sitesource-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-SiteSource siteSource = graphClient.compliance().ediscovery().cases("4c8f8f70-7785-4bd4-b296-c98376a2c5e1").custodians("2192ca408ea2410eba3bec8ae873be6b").siteSources("38304445-3741-3333-4233-344238454333")
+ISiteSourceCollectionPage siteSources = graphClient.compliance().ediscovery().cases("4c8f8f70-7785-4bd4-b296-c98376a2c5e1").custodians("2192ca408ea2410eba3bec8ae873be6b").siteSources()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-synchronizationschema-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-synchronizationschema-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-SynchronizationSchema synchronizationSchema = graphClient.servicePrincipals("{id}").synchronization().jobs("{jobId}").schema()
- .buildRequest()
+LinkedList<Option> requestOptions = new LinkedList<Option>();
+requestOptions.add(new HeaderOption("Authorization", "Bearer {Token}"));
+
+SynchronizationSchema synchronizationSchema = graphClient.servicePrincipals("{servicePrincipalId}").synchronization().jobs("{jobId}").schema()
+ .buildRequest( requestOptions )
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-timeoffrequest-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-timeoffrequest-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-ITimeOffRequestCollectionPage timeOffRequests = graphClient.teams("{teamId}").schedule().timeOffRequests()
+TimeOffRequest timeOffRequest = graphClient.teams("{teamId}").schedule().timeOffRequests("{timeOffRequestId}")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-todotask-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-todotask-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-TodoTask todoTask = graphClient.me().todo().lists("AAMkADA1MTHgwAAA=").tasks("721a35e2-35e2-721a-e235-1a72e2351a72")
+ITodoTaskCollectionPage tasks = graphClient.me().todo().lists("35e2-35e2-721a-e235-1a72e2351a7").tasks()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-todotasklist-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-todotasklist-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-ITodoTaskListCollectionPage lists = graphClient.me().todo().lists()
+TodoTaskList todoTaskList = graphClient.me().todo().lists("AAMkADIyAAAAABrJAAA=")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-unifiedgroupsource-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-unifiedgroupsource-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IUnifiedGroupSourceCollectionPage unifiedGroupSources = graphClient.compliance().ediscovery().cases("4c8f8f70-7785-4bd4-b296-c98376a2c5e1").custodians("2192ca408ea2410eba3bec8ae873be6b").unifiedGroupSources()
+UnifiedGroupSource unifiedGroupSource = graphClient.compliance().ediscovery().cases("4c8f8f70-7785-4bd4-b296-c98376a2c5e1").custodians("2192ca408ea2410eba3bec8ae873be6b").unifiedGroupSources("33434233-3030-3739-3043-393039324633")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-unifiedroleassignmentmultiple-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-unifiedroleassignmentmultiple-java-snippets.md
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
IUnifiedRoleAssignmentMultipleCollectionPage roleAssignments = graphClient.roleManagement().deviceManagement().roleAssignments() .buildRequest()
- .filter(" principalIds/any(x:x eq '564ae70c-73d9-476b-820b-fb61eb7384b9')")
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-userflowlanguageconfiguration-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-userflowlanguageconfiguration-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IUserFlowLanguageConfigurationCollectionPage languages = graphClient.identity().b2cUserFlows("B2C_1_CustomerSignUp").languages()
+IUserFlowLanguageConfigurationCollectionPage languages = graphClient.identity().b2xUserFlows("B2X_1_PartnerSignUp").languages()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-userflowlanguagepage-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-userflowlanguagepage-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-InputStream stream = graphClient.identity().b2cUserFlows("B2C_1_Customer").languages("en").defaultPages("idpselections").content()
+IUserFlowLanguagePageCollectionPage defaultPages = graphClient.identity().b2cUserFlows("B2C_1_Customer").languages("en").defaultPages()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/get-usersource-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/get-usersource-java-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+IUserSourceCollectionPage userSources = graphClient.compliance().ediscovery().cases("4c8f8f70-7785-4bd4-b296-c98376a2c5e1").custodians("2192ca408ea2410eba3bec8ae873be6b").userSources()
+ .buildRequest()
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-accesspackageresourceenvironment-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/list-accesspackageresourceenvironment-java-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+IAccessPackageResourceEnvironmentCollectionPage accessPackageResourceEnvironments = graphClient.identityGovernance().entitlementManagement().accessPackageResourceEnvironments()
+ .buildRequest()
+ .filter("originSystem eq 'SharePointOnline'")
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-permission-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/list-permission-java-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+IPermissionCollectionPage permissions = graphClient.sites("{sitesId}").permissions()
+ .buildRequest()
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-plannerplan-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/list-plannerplan-java-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+IPlannerPlanCollectionWithReferencesPage rosterPlans = graphClient.users("{usersId}").planner().rosterPlans()
+ .buildRequest()
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-plannerrostermember-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/list-plannerrostermember-java-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+IPlannerRosterMemberCollectionPage members = graphClient.planner().rosters("6519868f-868f-6519-8f86-19658f861965").members()
+ .buildRequest()
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-teamsapp-with-filter-expand-appdefinitions-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/list-teamsapp-with-filter-expand-appdefinitions-java-snippets.md
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationPro
ITeamsAppCollectionPage teamsApps = graphClient.appCatalogs().teamsApps() .buildRequest()
- .filter("id eq '876df28f-2e78-423b-94a5-44181bd0e225',")
+ .filter("id eq '876df28f-2e78-423b-94a5-44181bd0e225'")
.expand("appDefinitions") .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/list-usageright-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/list-usageright-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-IUsageRightCollectionPage usageRights = graphClient.users("{userId}").usageRights()
+IUsageRightCollectionPage usageRights = graphClient.devices("{objectId}").usageRights()
.buildRequest() .filter("state in ('active', 'suspended') and serviceIdentifier in ('ABCD')") .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/sendreminder-accessreview-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/sendreminder-accessreview-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-graphClient.accessReviews("2975E9B5-44CE-4E71-93D3-30F03B5AA992")
+graphClient.identityGovernance().accessReviews().definitions("04e5c3b2-9db2-40d3-a204-128f4956ae8e").instances("70463350-742e-4909-bfa5-bc23447bd002")
.sendReminder() .buildRequest() .post();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/shift-get-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/shift-get-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-Content shiftPreferences = graphClient.users("871dbd5c-3a6a-4392-bfe1-042452793a50").shiftPreferences()
+Shift shift = graphClient.teams("{teamId}").schedule().shifts("{shiftId}")
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-connectorgroup-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-connectorgroup-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient(); ConnectorGroup connectorGroup = new ConnectorGroup();
-connectorGroup.name = "Connector Group Demo";
+connectorGroup.name = "name-value";
+connectorGroup.region = ConnectorGroupRegion.NAM;
-graphClient.onPremisesPublishingProfiles("applicationProxy").connectorGroups()
+graphClient.onPremisesPublishingProfiles("applicationProxy").connectorGroups("{id}")
.buildRequest()
- .post(connectorGroup);
+ .patch(connectorGroup);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-member-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-member-java-snippets.md
LinkedList<String> rolesList = new LinkedList<String>();
rolesList.add("owner"); conversationMember.roles = rolesList;
-graphClient.teams("ece6f0a1-7ca4-498b-be79-edf6c8fc4d82").channels("19:56eb04e133944cf69e603c5dac2d292e@thread.skype").members("ZWUwZjVhZTItOGJjNi00YWU1LTg0NjYtN2RhZWViYmZhMDYyIyM3Mzc2MWYwNi0yYWM5LTQ2OWMtOWYxMC0yNzlhOGNjMjY3Zjk=")
+graphClient.teams("ece6f0a1-7ca4-498b-be79-edf6c8fc4d82").members("ZWUwZjVhZTItOGJjNi00YWU1LTg0NjYtN2RhZWViYmZhMDYyIyM3Mzc2MWYwNi0yYWM5LTQ2OWMtOWYxMC0yNzlhOGNjMjY3Zjk=")
.buildRequest() .patch(conversationMember);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-organizationalbrandingproperties-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-organizationalbrandingproperties-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-OrganizationalBrandingLocalization organizationalBrandingLocalization = new OrganizationalBrandingLocalization();
-organizationalBrandingLocalization.backgroundColor = "#00000F";
-organizationalBrandingLocalization.signInPageText = "fr";
+OrganizationalBranding organizationalBranding = new OrganizationalBranding();
+organizationalBranding.backgroundColor = "#FFFF33";
-graphClient.organization("d69179bf-f4a4-41a9-a9de-249c0f2efb1d").branding().localizations("fr")
+graphClient.organization("d69179bf-f4a4-41a9-a9de-249c0f2efb1d").branding()
.buildRequest()
- .put(organizationalBrandingLocalization);
+ .put(organizationalBranding);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/update-permission-from--java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/update-permission-from--java-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```java
+
+IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
+
+Permission permission = new Permission();
+LinkedList<String> rolesList = new LinkedList<String>();
+rolesList.add("read");
+permission.roles = rolesList;
+
+graphClient.sites("{sitesId}").permissions("{permissionId}")
+ .buildRequest()
+ .patch(permission);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/java/user-list-teamsapps-java-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/java/user-list-teamsapps-java-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
IGraphServiceClient graphClient = GraphServiceClient.builder().authenticationProvider( authProvider ).buildClient();
-UserScopeTeamsAppInstallation userScopeTeamsAppInstallation = graphClient.users("{id}").teamwork().installedApps("{id}")
+IUserScopeTeamsAppInstallationCollectionPage installedApps = graphClient.users("{id}").teamwork().installedApps()
.buildRequest() .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-javascript-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const accessPackageResourceRequest = {
+ catalogId: "de9315c1-272b-4905-924b-cc112ca180c7",
+ accessPackageResource: {
+ displayName: "Community Outreach",
+ description: "https://contoso.sharepoint.com/sites/CSR",
+ resourceType: "SharePoint Online Site",
+ originId: "https://contoso.sharepoint.com/sites/CSR",
+ originSystem: "SharePointOnline",
+ accessPackageResourceEnvironment@odata.bind: "accessPackageResourceEnvironments/615f2218-678f-471f-a60a-02c2f4f80c57"
+ },
+ requestType: "AdminAdd"
+};
+
+let res = await client.api('/identityGovernance/entitlementManagement/accessPackageResourceRequests')
+ .version('beta')
+ .post(accessPackageResourceRequest);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-new-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-new-javascript-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const accessPackageResourceRequest = {
+ catalogId: "de9315c1-272b-4905-924b-cc112ca180c7",
+ accessPackageResource: {
+ displayName: "Community Outreach",
+ description: "https://contoso.sharepoint.com/sites/CSR",
+ resourceType: "SharePoint Online Site",
+ originId: "https://contoso.sharepoint.com/sites/CSR",
+ originSystem: "SharePointOnline",
+ accessPackageResourceEnvironment: {
+ originId: "https://contoso-admin.sharepoint.com/"
+ }
+ },
+ requestType: "AdminAdd"
+};
+
+let res = await client.api('/identityGovernance/entitlementManagement/accessPackageResourceRequests')
+ .version('beta')
+ .post(accessPackageResourceRequest);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-chatmessage-from-channel-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-chatmessage-from-channel-javascript-snippets.md
const options = {
const client = Client.init(options); const chatMessage = {
- subject: null,
- body: {
- contentType: "html",
- content: "<attachment id=\"74d20c7f34aa4a7fb74e2b30004247c5\"></attachment>"
- },
- attachments: [{
- id: "74d20c7f34aa4a7fb74e2b30004247c5",
- contentType: "application/vnd.microsoft.card.adaptive",
- contentUrl: null,
- content: {\r\n \"$schema\: \http://adaptivecards.io/schemas/adaptive-card.json\",\r\n \"type\: \AdaptiveCard\",\r\n \"version\: \1.2\",\r\n \"speak\: \The Seattle Seahawks beat the Carolina Panthers 40-7\",\r\n \"body\: [\r\n {\r\n \type\: \Container\",\r\n \"items\: [\r\n {\r\n \type\: \ColumnSet\",\r\n \"columns\: [\r\n {\r\n \type\: \Column\",\r\n \"width\: \auto\",\r\n \"items\: [\r\n {\r\n \type\: \Image\",\r\n \"url\: \../hostedContents/1/$value\",\r\n \"size\: \Medium\"\r\n },\r\n {\r\n \"type\: \TextBlock\",\r\n \"text\: \SHADES\",\r\n \"horizontalAlignment\: \Center\",\r\n \"weight\: \Bolder\"\r\n }\r\n ]\r\n },\r\n {\r\n \"type\: \Column\",\r\n \"width\: \stretch\",\r\n \"separator\: true,\r\n \spacing\: \Medium\",\r\n \"items\: [\r\n {\r\n \type\: \TextBlock\",\r\n \"text\: \2019-08-31T19:30:00Z\",\r\n \"horizontalAlignment\: \Center\"\r\n },\r\n {\r\n \"type\: \TextBlock\",\r\n \"text\: \Final\",\r\n \"spacing\: \None\",\r\n \"horizontalAlignment\: \Center\"\r\n },\r\n {\r\n \"type\: \TextBlock\",\r\n \"text\: \40 - 7\",\r\n \"size\: \ExtraLarge\",\r\n \"horizontalAlignment\: \Center\"\r\n }\r\n ]\r\n },\r\n {\r\n \"type\: \Column\",\r\n \"width\: \auto\",\r\n \"separator\: true,\r\n \spacing\: \Medium\",\r\n \"items\: [\r\n {\r\n \type\: \Image\",\r\n \"url\: \../hostedContents/2/$value\",\r\n \"size\: \Medium\",\r\n \"horizontalAlignment\: \Center\"\r\n },\r\n {\r\n \"type\: \TextBlock\",\r\n \"text\: \SKINS\",\r\n \"horizontalAlignment\: \Center\",\r\n \"weight\: \"Bolder\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}",
- name: null,
- thumbnailUrl: null
- }],
- hostedContents: [{
- @microsoft.graph.temporaryId: "1",
- contentBytes: "iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaK6UvXb169ToGNuA0Cp+oYVHlxsYGK2QVEFqnT5/eej8/+9nPtr73LwjvFZPxeK84GsMpJHueEniGFJ7785///Ox73/vell/84hcUaoSff/WrX92aOMeCz64UVo389eTJk//1ne98Z/OnP/3p22+99dZ7NlZpaORGw6Ure0Kk72GD73/vfFU0BjQ6KT5lI8UsRjiS6vNFpFibhecoKaBTh9QXv/jF2Y9+9KPZr371K1qDJkqs09jhL14cPLzxxhtudzhogoZNW/ZEe4zLYSECC4ViRRwCghODxWOFOsIO4YzOwV47lxQhdf/9928dCfUJ8GXwnDgiHbpOU4Ijfzu6+pDtD280dJqyJ0A4ud3sahE65pBhhXDKdUEyAnDIQdgnpBBOL774In1fqQ1dp6lBnXONgUU0fNaxB2KuCad09Ek94bA/53wOdgwGAtsWbxiEQwRz15DCkZPHEeY6eE0cgbL3IumhT7L94IWG0Cr2oGNm0HNUwCmX99+gmP/wOF1pC6e8Oefn2obUww8/3Gu+KRX8BVb6POZY4C8Ftg880CBi7JezrzRdx7NT5twJTeBoARP1bFtTaxNSJ0+epNs7lKGOPqco5aVjq9BAitkvIqCyrzRtAp0y9Sc+Q5x3N5VjADYNqVxzT13gFJ29N0kHZzI5Tu9pKC2yX8JSeJfveE8pxeBF0XP97dAHQpRtfypNQqrkgAq86yR55qdoMAX2C5ggH3z+qam+p0OY+2HPWyLPAbgupGoIqEBB5c/7aIqGE9gPiz3FW6bPqV/Jp3jLeJ36rQqpmgIq0KmfL3yIxeqeyCkaUGA/zLL+KTUEVdtP/YZaYpCCx3KMZSFV2iR5G7k+dJgi9EFW8wRwkLRrWUANdsVzCjhtY8VkHAucRZdQXoeFFJYZsNevBeqk5Ql+WM17wjTT1l1EWUBluW+xtyaL+zC4S1gH1VebUG6ChVQJ66D6Sl0nucVhHG3fnYGFVFXzUMs0+ZvT+Vw6q5SnM3FIYSU5e80aaWW6j8QfOp1azKQ4oHAHA/agKq36ZAcBxh5TK/xNlvK0LwQUrsVD4LPXrJHH6bEkDakdN+NbDCh8mlfNcoOmlk0s1/hp3jqpPsX68pe/vB1SNX6at44+7UsvUUjRu4Vu/4f9wqiOogIszowLOrajqABHCfF77eIHP/jB9lEUe53a6WgqPVbnlpbeznj7P+yXil9V3lU8NzXGo6ig79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg==",
- contentType: "image/png"
- }, {
- @microsoft.graph.temporaryId: "2",
- contentBytes: "iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEar6WzSnk5E4cUVpKz16yRVqb7SPym08nFTIoDCncwYA+q0qp3dhBg7DG1wt9kKS/7QkDhs3gIfPaaNfK4PJakIbXrZnyLAYV386pZbtDUsonlGt/NWyfVu1hPPfXUTkjV+G7eOnq3L71EIUXvFrrzH/YLozqLCrA4My7o2M6iApwlxPvaxSuvvLJzFsVep3Y6m0qP1bmlpbcz3vkP+6XiV5V3Fc9NjfEsKui7duq5557bCakzZ87Q1xgDzU2lg7WJrMYtrLzf+vY/7JdwXyj24FFYPL3H36BjmmOJ4UPXix2orbfeemsnpMZcJ8zhsf2X9np+GP9Hk+TM9j/sF4u6u0Fqix0yx2eNhtZnPdBXX321HVK45S977jHRrYjTwF+MrL5rYP6bfglEbPsf8wewJxqN0CFr+ABxX10vZbCMAX8QUmOcMI9pAr2/jouhscyp8de9I6BGsXhznTBwx3wJE7A3C5r4/PPPrU/8EFJjWOS6Tt9LY+n0rh6+NarVNygjpHCnTfZko4KBm2CCrwpd3uXDXFT4c+7cOfq8Y8RqIc20nIvC2dN+6140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC",
- contentType: "image/png"
- }]
+ body: {
+ content: "Hello World"
+ }
}; let res = await client.api('/teams/{id}/channels/{id}/messages')
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-directoryobject-from-orgcontact-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-directoryobject-from-orgcontact-javascript-snippets.md
const directoryObject = {
} };
-let res = await client.api('/contacts/{id}/memberOf')
+let res = await client.api('/contacts/{id}/directReports')
.version('beta') .post(directoryObject);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-educationclass-from-educationschool-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-educationclass-from-educationschool-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/education/schools/10001/users/13006')
+const educationClass = {
+ @odata.id:"https://graph.microsoft.com/beta/education/classes/11006"
+};
+
+let res = await client.api('/education/schools/10002/classes/$ref')
.version('beta')
- .delete();
+ .post(educationClass);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-identityuserflow-from-identitycontainer-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-identityuserflow-from-identitycontainer-javascript-snippets.md
const options = {
const client = Client.init(options); const identityUserFlow = {
+ id: "Pol1",
userFlowType: "signUpOrSignIn", userFlowTypeVersion: 1 };
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-identityuserflowattributeassignment-from--javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-identityuserflowattributeassignment-from--javascript-snippets.md
const identityUserFlowAttributeAssignment = {
} };
-let res = await client.api('/identity/b2cUserFlows/B2C_1_Consumer/userAttributeAssignments')
+let res = await client.api('/identity/b2xUserFlows/B2X_1_Partner/userAttributeAssignments')
.version('beta') .post(identityUserFlowAttributeAssignment);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-permission-from--javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-permission-from--javascript-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const permission = {
+ roles: ["write"],
+ grantedToIdentities: [{
+ application: {
+ id: "89ea5c94-7736-4e25-95ad-3fa95f62b66e",
+ displayName: "Foo App"
+ }
+ }]
+};
+
+let res = await client.api('/sites/{sitesId}/permissions')
+ .version('beta')
+ .post(permission);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-plannerroster-from--javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-plannerroster-from--javascript-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const plannerRoster = {
+ @odata.type: "#microsoft.graph.plannerRoster"
+};
+
+let res = await client.api('/planner/rosters')
+ .version('beta')
+ .post(plannerRoster);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-plannerrostermember-from--javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-plannerrostermember-from--javascript-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const plannerRosterMember = {
+ @odata.type: "#microsoft.graph.plannerRosterMember",
+ userId: "String"
+};
+
+let res = await client.api('/planner/rosters/6519868f-868f-6519-8f86-19658f861965/members')
+ .version('beta')
+ .post(plannerRosterMember);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/create-printjob-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/create-printjob-javascript-snippets.md
const printJob = {
} };
-let res = await client.api('/print/printers/{id}/jobs')
+let res = await client.api('/print/shares/{id}/jobs')
.version('beta') .post(printJob);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/delete-b2xuserflows-identityproviders-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/delete-b2xuserflows-identityproviders-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/identity/b2xUserFlows/B2X_1_PartnerSignUp/identityProviders/Facebook-OAUTH/$ref')
+let res = await client.api('/identity/b2cUserFlows/B2C_1_CustomerSignUp/identityProviders/Facebook-OAUTH/$ref')
.version('beta') .delete();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/delete-call-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/delete-call-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/communications/calls/57dab8b1-894c-409a-b240-bd8beae78896')
+let res = await client.api('/me/onlineMeetings/550fae72-d251-43ec-868c-373732c2704f_19:meeting_M2IzYzczNTItYmY3OC00MDlmLWJjMzUtYmFiMjNlOTY4MGEz@thread.skype')
.version('beta') .delete();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/delete-organizationalbrandingproperties-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/delete-organizationalbrandingproperties-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/organization/d69179bf-f4a4-41a9-a9de-249c0f2efb1d/branding/localizations/fr')
+let res = await client.api('/organization/d69179bf-f4a4-41a9-a9de-249c0f2efb1d/branding')
.version('beta') .delete();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/delete-plannerroster-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/delete-plannerroster-javascript-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/planner/rosters/5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38')
+ .version('beta')
+ .delete();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/delete-plannerrostermember-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/delete-plannerrostermember-javascript-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/planner/rosters/523a9d5a-f9d5-45c1-929f-b8525393515c/members/5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38')
+ .version('beta')
+ .delete();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/educationassignment-publish-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/educationassignment-publish-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/education/classes/11021/assignments/19002/publish')
+let res = await client.api('/education/classes/11012/assignments/19002/getResourcesFolderUrl')
.version('beta')
- .post();
+ .get();
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-a-count-endswith-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-a-count-endswith-javascript-snippets.md
const client = Client.init(options);
let res = await client.api('/users') .version('beta') .header('ConsistencyLevel','eventual')
- .filter('endswith(mail,'a@contoso.com'),')
- .orderby('userPrincipalName ')
+ .filter('endswith(mail,'a@contoso.com')')
+ .orderby('userPrincipalName')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-accesspackageresourceenvironment-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-accesspackageresourceenvironment-javascript-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/identityGovernance/entitlementManagement/accessPackageResourceEnvironments/{accessPackageResourceEnvironmentId}')
+ .version('beta')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-accesspackageresourceroles-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-accesspackageresourceroles-javascript-snippets.md
const client = Client.init(options);
let res = await client.api('/identityGovernance/entitlementManagement/accessPackageCatalogs/15d889df-3eb8-4e9b-bfb4-b1908849aec4/accessPackageResourceRoles') .version('beta')
- .filter('(originSystem eq 'AadGroup' and accessPackageResource/id eq 'a35bef72-a8aa-4ca3-af30-f6b2ece7208f'),')
+ .filter('(originSystem eq 'AadGroup' and accessPackageResource/id eq 'a35bef72-a8aa-4ca3-af30-f6b2ece7208f')')
.expand('accessPackageResource/id%20eq%20'a35bef72-a8aa-4ca3-af30-f6b2ece7208f')') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-accessreviews-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-accessreviews-javascript-snippets.md
const client = Client.init(options);
let res = await client.api('/accessReviews') .version('beta')
- .filter('businessFlowTemplateId eq '6e4f3d20-c5c3-407f-9695-8460952bcc68',')
+ .filter('businessFlowTemplateId eq '6e4f3d20-c5c3-407f-9695-8460952bcc68'')
.skip(0) .top(100) .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-classes-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-classes-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/education/classes')
+let res = await client.api('/education/schools/10002/classes')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-cloudpconpremisesconnection-withdetails-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-cloudpconpremisesconnection-withdetails-javascript-snippets.md
const client = Client.init(options);
let res = await client.api('/deviceManagement/virtualEndpoint/onPremisesConnections/{id}') .version('beta')
- .select('id,displayName,subscriptionId,subscriptionName,adDomainName,adDomainUsername,organizationalUnit,virtualNetworkId,subnetId,healthCheckStatus,healthCheckStatusDetails,inUse')
+ .select('id,displayName,healthCheckStatus,healthCheckStatusDetails,inUse')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-connector-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-connector-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/onPremisesPublishingProfiles/applicationProxy/connectors/{id}')
+let res = await client.api('/print/connectors/{id}')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-connectors-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-connectors-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/onPremisesPublishingProfiles/applicationProxy/connectors')
+let res = await client.api('/print/printers/{id}/connectors')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-educationuser-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-educationuser-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/education/users/13012')
+let res = await client.api('/education/me/user')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-group-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-group-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/termStore/groups')
+let res = await client.api('/termStore/groups/{groupId}')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-grouplifecyclepolicy-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-grouplifecyclepolicy-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/groupLifecyclePolicies')
+let res = await client.api('/groupLifecyclePolicies/{id}')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-identityprovider-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-identityprovider-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/identityProviders/{id}')
+let res = await client.api('/identityProviders')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-identityuserflowattributeassignment-expand-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-identityuserflowattributeassignment-expand-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/identity/b2xUserFlows/{id}/userAttributeAssignments')
+let res = await client.api('/identity/b2cUserFlows/{id}/userAttributeAssignments/{id}')
.version('beta') .expand('userAttribute') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-identityuserflowattributeassignment-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-identityuserflowattributeassignment-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/identity/b2xUserFlows/{id}/userAttributeAssignments')
+let res = await client.api('/identity/b2cUserFlows/{id}/userAttributeAssignments/{id}')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-messages-with-mentions-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-messages-with-mentions-javascript-snippets.md
const client = Client.init(options);
let res = await client.api('/me/messages') .version('beta')
- .filter('MentionsPreview/IsMentioned eq true,')
+ .filter('MentionsPreview/IsMentioned eq true')
.select('subject,sender,receivedDateTime,mentionsPreview') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-names-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-names-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/me/drive/items/{id}/workbook/names')
+let res = await client.api('/me/profile/names')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-offershiftrequest-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-offershiftrequest-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/teams/{teamId}/schedule/offerShiftRequests')
+const offerShiftRequest = {
+ senderShiftId: "SHFT_f7e484ed-fdd6-421c-92d9-0bc9e62e2c29",
+ senderMessage: "Having a family emergency, could you take this shift for me?",
+ recipientUserId: "fe278b61-21ac-4872-8b41-1962bbb98e3c"
+};
+
+let res = await client.api('/teams/788b75d2-a911-48c0-a5e2-dc98480457e3/schedule/offershiftrequests')
.version('beta')
- .get();
+ .post(offerShiftRequest);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-opentypeextension-3-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-opentypeextension-3-javascript-snippets.md
const client = Client.init(options);
let res = await client.api('/me/messages/AAMkAGE1M2IyNGNmLTI5MTktNDUyZi1iOTVl===/') .version('beta')
- .filter('id eq 'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')')
.expand('extensions($filter=id%20eq%20'Microsoft.OutlookServices.OpenTypeExtension.Com.Contoso.Referral')') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-organizationalbrandingproperties-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-organizationalbrandingproperties-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/organization/d69179bf-f4a4-41a9-a9de-249c0f2efb1d/branding/localizations/en-US/signInPageText')
+const organizationalBrandingLocalization = {
+ backgroundColor:"#00000F",
+ id: "fr"
+};
+
+let res = await client.api('/organization/d69179bf-f4a4-41a9-a9de-249c0f2efb1d/branding/localizations')
.version('beta')
- .get();
+ .post(organizationalBrandingLocalization);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-permission-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-permission-javascript-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/sites/{sitesId}/permissions/{permissionId}')
+ .version('beta')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-plannerroster-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-plannerroster-javascript-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/planner/rosters/6519868f-868f-6519-8f86-19658f861965')
+ .version('beta')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-plannerrostermember-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-plannerrostermember-javascript-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/planner/rosters/523a9d5a-f9d5-45c1-929f-b8525393515c/members/5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38')
+ .version('beta')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-plans-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-plans-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/planner/plans')
+let res = await client.api('/groups/ebf3b108-5234-4e22-b93d-656d7dae5874/planner/plans')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-roleassignments-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-roleassignments-javascript-snippets.md
const client = Client.init(options);
let res = await client.api('/roleManagement/directory/roleAssignments') .version('beta')
- .filter(' principalId eq 'f1847572-48aa-47aa-96a3-2ec61904f41f'')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-schools-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-schools-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/education/classes/11014/schools')
+let res = await client.api('/education/me/schools')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-settings-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-settings-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/me/analytics/settings')
+let res = await client.api('/settings')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-signin-last-time-filter-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-signin-last-time-filter-javascript-snippets.md
const client = Client.init(options);
let res = await client.api('/users') .version('beta')
- .filter('startswith(displayName,'Eric'),')
+ .filter('startswith(displayName,'Eric')')
.select('displayName,signInActivity') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-singlevaluelegacyextendedproperty-1-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-singlevaluelegacyextendedproperty-1-javascript-snippets.md
const client = Client.init(options);
let res = await client.api('/me/messages/AAMkAGE1M2_bs88AACHsLqWAAA=/') .version('beta')
- .filter('id eq 'String {66f5a359-4659-4830-9070-00047ec6ac6e} Name Color')')
.expand('singleValueExtendedProperties($filter=id%20eq%20'String%20%7B66f5a359-4659-4830-9070-00047ec6ac6e%7D%20Name%20Color')') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-sitesource-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-sitesource-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/compliance/ediscovery/cases/4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/siteSources/38304445-3741-3333-4233-344238454333')
+let res = await client.api('/compliance/ediscovery/cases/4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/siteSources')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-synchronizationschema-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-synchronizationschema-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/servicePrincipals/{id}/synchronization/jobs/{jobId}/schema')
+let res = await client.api('/servicePrincipals/{servicePrincipalId}/synchronization/jobs/{jobId}/schema')
.version('beta')
+ .header('Authorization','Bearer {Token}')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-timeoffrequest-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-timeoffrequest-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/teams/{teamId}/schedule/timeOffRequests')
+let res = await client.api('/teams/{teamId}/schedule/timeOffRequests/{timeOffRequestId}')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-todotask-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-todotask-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/me/todo/lists/AAMkADA1MTHgwAAA=/tasks/721a35e2-35e2-721a-e235-1a72e2351a72')
+let res = await client.api('/me/todo/lists/35e2-35e2-721a-e235-1a72e2351a7/tasks')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-todotasklist-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-todotasklist-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/me/todo/lists')
+let res = await client.api('/me/todo/lists/AAMkADIyAAAAABrJAAA=')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-unifiedgroupsource-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-unifiedgroupsource-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/compliance/ediscovery/cases/4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/unifiedGroupSources')
+let res = await client.api('/compliance/ediscovery/cases/4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/unifiedGroupSources/33434233-3030-3739-3043-393039324633')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-unifiedroleassignmentmultiple-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-unifiedroleassignmentmultiple-javascript-snippets.md
const client = Client.init(options);
let res = await client.api('/roleManagement/deviceManagement/roleAssignments') .version('beta')
- .filter(' principalIds/any(x:x eq '564ae70c-73d9-476b-820b-fb61eb7384b9')')
.get(); ```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-userflowlanguageconfiguration-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-userflowlanguageconfiguration-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/identity/b2cUserFlows/B2C_1_CustomerSignUp/languages')
+let res = await client.api('/identity/b2xUserFlows/B2X_1_PartnerSignUp/languages')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-userflowlanguagepage-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-userflowlanguagepage-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/identity/b2cUserFlows/B2C_1_Customer/languages/en/defaultPages/idpselections/$value')
+let res = await client.api('/identity/b2cUserFlows/B2C_1_Customer/languages/en/defaultPages')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/get-usersource-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/get-usersource-javascript-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/compliance/ediscovery/cases/4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/userSources')
+ .version('beta')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-accesspackageresourceenvironment-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/list-accesspackageresourceenvironment-javascript-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/identityGovernance/entitlementManagement/accessPackageResourceEnvironments')
+ .version('beta')
+ .filter('originSystem eq 'SharePointOnline'')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-permission-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/list-permission-javascript-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/sites/{sitesId}/permissions')
+ .version('beta')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-plannerplan-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/list-plannerplan-javascript-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/users/{usersId}/planner/rosterPlans')
+ .version('beta')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-plannerrostermember-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/list-plannerrostermember-javascript-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+let res = await client.api('/planner/rosters/6519868f-868f-6519-8f86-19658f861965/members')
+ .version('beta')
+ .get();
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-teamsapp-with-filter-expand-appdefinitions-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/list-teamsapp-with-filter-expand-appdefinitions-javascript-snippets.md
const client = Client.init(options);
let res = await client.api('/appCatalogs/teamsApps') .version('beta')
- .filter('id eq '876df28f-2e78-423b-94a5-44181bd0e225',')
+ .filter('id eq '876df28f-2e78-423b-94a5-44181bd0e225'')
.expand('appDefinitions') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/list-usageright-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/list-usageright-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/users/{userId}/usageRights')
+let res = await client.api('/devices/{objectId}/usageRights')
.version('beta') .filter('state in ('active', 'suspended') and serviceIdentifier in ('ABCD')') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/sendreminder-accessreview-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/sendreminder-accessreview-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/accessReviews/2975E9B5-44CE-4E71-93D3-30F03B5AA992/sendReminder')
+let res = await client.api('/identityGovernance/accessReviews/definitions/04e5c3b2-9db2-40d3-a204-128f4956ae8e/instances/70463350-742e-4909-bfa5-bc23447bd002/sendReminder')
.version('beta') .post();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/shift-get-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/shift-get-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/users/871dbd5c-3a6a-4392-bfe1-042452793a50/shiftPreferences')
+let res = await client.api('/teams/{teamId}/schedule/shifts/{shiftId}')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/tablerowcollection-add-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/tablerowcollection-add-javascript-snippets.md
const options = {
const client = Client.init(options); const workbookTableRow = {
+ index: null,
values: [ [1, 2, 3], [4, 5, 6]
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-connectorgroup-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-connectorgroup-javascript-snippets.md
const options = {
const client = Client.init(options); const connectorGroup = {
- name: "Connector Group Demo"
-
+ name: "name-value",
+ region: "region-value"
};
-let res = await client.api('/onPremisesPublishingProfiles/applicationProxy/connectorGroups')
+let res = await client.api('/onPremisesPublishingProfiles/applicationProxy/connectorGroups/{id}')
.version('beta')
- .post(connectorGroup);
+ .update(connectorGroup);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-member-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-member-javascript-snippets.md
const conversationMember = {
roles: ["owner"] };
-let res = await client.api('/teams/ece6f0a1-7ca4-498b-be79-edf6c8fc4d82/channels/19:56eb04e133944cf69e603c5dac2d292e@thread.skype/members/ZWUwZjVhZTItOGJjNi00YWU1LTg0NjYtN2RhZWViYmZhMDYyIyM3Mzc2MWYwNi0yYWM5LTQ2OWMtOWYxMC0yNzlhOGNjMjY3Zjk=')
+let res = await client.api('/teams/ece6f0a1-7ca4-498b-be79-edf6c8fc4d82/members/ZWUwZjVhZTItOGJjNi00YWU1LTg0NjYtN2RhZWViYmZhMDYyIyM3Mzc2MWYwNi0yYWM5LTQ2OWMtOWYxMC0yNzlhOGNjMjY3Zjk=')
.version('beta') .update(conversationMember);
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-organizationalbrandingproperties-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-organizationalbrandingproperties-javascript-snippets.md
const options = {
const client = Client.init(options);
-const organizationalBrandingLocalization = {
- backgroundColor:"#00000F",
- signInPageText: "fr"
+const organizationalBranding = {
+ backgroundColor:"#FFFF33"
};
-let res = await client.api('/organization/d69179bf-f4a4-41a9-a9de-249c0f2efb1d/branding/localizations/fr')
+let res = await client.api('/organization/d69179bf-f4a4-41a9-a9de-249c0f2efb1d/branding')
.version('beta')
- .put(organizationalBrandingLocalization);
+ .put(organizationalBranding);
```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/update-permission-from--javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/update-permission-from--javascript-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```javascript
+
+const options = {
+ authProvider,
+};
+
+const client = Client.init(options);
+
+const permission = {
+ roles: ["read"]
+};
+
+let res = await client.api('/sites/{sitesId}/permissions/{permissionId}')
+ .version('beta')
+ .update(permission);
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/javascript/user-list-teamsapps-javascript-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/javascript/user-list-teamsapps-javascript-snippets.md
const options = {
const client = Client.init(options);
-let res = await client.api('/users/{id}/teamwork/installedApps/{id}')
+let res = await client.api('/users/{id}/teamwork/installedApps')
.version('beta') .get();
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-new-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-new-objc-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identityGovernance/entitlementManagement/accessPackageResourceRequests"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphAccessPackageResourceRequest *accessPackageResourceRequest = [[MSGraphAccessPackageResourceRequest alloc] init];
+[accessPackageResourceRequest setCatalogId:@"de9315c1-272b-4905-924b-cc112ca180c7"];
+MSGraphAccessPackageResource *accessPackageResource = [[MSGraphAccessPackageResource alloc] init];
+[accessPackageResource setDisplayName:@"Community Outreach"];
+[accessPackageResource setDescription:@"https://contoso.sharepoint.com/sites/CSR"];
+[accessPackageResource setResourceType:@"SharePoint Online Site"];
+[accessPackageResource setOriginId:@"https://contoso.sharepoint.com/sites/CSR"];
+[accessPackageResource setOriginSystem:@"SharePointOnline"];
+MSGraphAccessPackageResourceEnvironment *accessPackageResourceEnvironment = [[MSGraphAccessPackageResourceEnvironment alloc] init];
+[accessPackageResourceEnvironment setOriginId:@"https://contoso-admin.sharepoint.com/"];
+[accessPackageResource setAccessPackageResourceEnvironment:accessPackageResourceEnvironment];
+[accessPackageResourceRequest setAccessPackageResource:accessPackageResource];
+[accessPackageResourceRequest setRequestType:@"AdminAdd"];
+
+NSError *error;
+NSData *accessPackageResourceRequestData = [accessPackageResourceRequest getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:accessPackageResourceRequestData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-accesspackageresourcerequest-from-accesspackageresourcerequests-with-accesspackageresourceenvironment-objc-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identityGovernance/entitlementManagement/accessPackageResourceRequests"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphAccessPackageResourceRequest *accessPackageResourceRequest = [[MSGraphAccessPackageResourceRequest alloc] init];
+[accessPackageResourceRequest setCatalogId:@"de9315c1-272b-4905-924b-cc112ca180c7"];
+MSGraphAccessPackageResource *accessPackageResource = [[MSGraphAccessPackageResource alloc] init];
+[accessPackageResource setDisplayName:@"Community Outreach"];
+[accessPackageResource setDescription:@"https://contoso.sharepoint.com/sites/CSR"];
+[accessPackageResource setResourceType:@"SharePoint Online Site"];
+[accessPackageResource setOriginId:@"https://contoso.sharepoint.com/sites/CSR"];
+[accessPackageResource setOriginSystem:@"SharePointOnline"];
+[accessPackageResourceRequest setAccessPackageResource:accessPackageResource];
+[accessPackageResourceRequest setRequestType:@"AdminAdd"];
+
+NSError *error;
+NSData *accessPackageResourceRequestData = [accessPackageResourceRequest getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:accessPackageResourceRequestData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-chatmessage-from-channel-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-chatmessage-from-channel-objc-snippets.md
NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; MSGraphChatMessage *chatMessage = [[MSGraphChatMessage alloc] init];
-[chatMessage setSubject: null];
MSGraphItemBody *body = [[MSGraphItemBody alloc] init];
-[body setContentType: [MSGraphBodyType html]];
-[body setContent:@"<attachment id=\"74d20c7f34aa4a7fb74e2b30004247c5\"></attachment>"];
+[body setContent:@"Hello World"];
[chatMessage setBody:body];
-NSMutableArray *attachmentsList = [[NSMutableArray alloc] init];
-MSGraphChatMessageAttachment *attachments = [[MSGraphChatMessageAttachment alloc] init];
-[attachments setId:@"74d20c7f34aa4a7fb74e2b30004247c5"];
-[attachments setContentType:@"application/vnd.microsoft.card.adaptive"];
-[attachments setContentUrl: null];
-[attachments setContent:@"{\r\n \"$schema\": \"http://adaptivecards.io/schemas/adaptive-card.json\",\r\n \"type\": \"AdaptiveCard\",\r\n \"version\": \"1.2\",\r\n \"speak\": \"The Seattle Seahawks beat the Carolina Panthers 40-7\",\r\n \"body\": [\r\n {\r\n \"type\": \"Container\",\r\n \"items\": [\r\n {\r\n \"type\": \"ColumnSet\",\r\n \"columns\": [\r\n {\r\n \"type\": \"Column\",\r\n \"width\": \"auto\",\r\n \"items\": [\r\n {\r\n \"type\": \"Image\",\r\n \"url\": \"../hostedContents/1/$value\",\r\n \"size\": \"Medium\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"SHADES\",\r\n \"horizontalAlignment\": \"Center\",\r\n \"weight\": \"Bolder\"\r\n }\r\n ]\r\n },\r\n {\r\n \"type\": \"Column\",\r\n \"width\": \"stretch\",\r\n \"separator\": true,\r\n \"spacing\": \"Medium\",\r\n \"items\": [\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"2019-08-31T19:30:00Z\",\r\n \"horizontalAlignment\": \"Center\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"Final\",\r\n \"spacing\": \"None\",\r\n \"horizontalAlignment\": \"Center\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"40 - 7\",\r\n \"size\": \"ExtraLarge\",\r\n \"horizontalAlignment\": \"Center\"\r\n }\r\n ]\r\n },\r\n {\r\n \"type\": \"Column\",\r\n \"width\": \"auto\",\r\n \"separator\": true,\r\n \"spacing\": \"Medium\",\r\n \"items\": [\r\n {\r\n \"type\": \"Image\",\r\n \"url\": \"../hostedContents/2/$value\",\r\n \"size\": \"Medium\",\r\n \"horizontalAlignment\": \"Center\"\r\n },\r\n {\r\n \"type\": \"TextBlock\",\r\n \"text\": \"SKINS\",\r\n \"horizontalAlignment\": \"Center\",\r\n \"weight\": \"Bolder\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n ]\r\n}"];
-[attachments setName: null];
-[attachments setThumbnailUrl: null];
-[attachmentsList addObject: attachments];
-[chatMessage setAttachments:attachmentsList];
-NSMutableArray *hostedContentsList = [[NSMutableArray alloc] init];
-MSGraphChatMessageHostedContent *hostedContents = [[MSGraphChatMessageHostedContent alloc] init];
-[hostedContents set@microsoft.graph.temporaryId:@"1"];
-[hostedContents setContentBytes:@"iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaK6UvXb169ToGNuA0Cp+oYVHlxsYGK2QVEFqnT5/eej8/+9nPtr73LwjvFZPxeK84GsMpJHueEniGFJ7785///Ox73/vell/84hcUaoSff/WrX92aOMeCz64UVo389eTJk//1ne98Z/OnP/3p22+99dZ7NlZpaORGw6Ure0Kk72GD73/vfFU0BjQ6KT5lI8UsRjiS6vNFpFibhecoKaBTh9QXv/jF2Y9+9KPZr371K1qDJkqs09jhL14cPLzxxhtudzhogoZNW/ZEe4zLYSECC4ViRRwCghODxWOFOsIO4YzOwV47lxQhdf/9928dCfUJ8GXwnDgiHbpOU4Ijfzu6+pDtD280dJqyJ0A4ud3sahE65pBhhXDKdUEyAnDIQdgnpBBOL774In1fqQ1dp6lBnXONgUU0fNaxB2KuCad09Ek94bA/53wOdgwGAtsWbxiEQwRz15DCkZPHEeY6eE0cgbL3IumhT7L94IWG0Cr2oGNm0HNUwCmX99+gmP/wOF1pC6e8Oefn2obUww8/3Gu+KRX8BVb6POZY4C8Ftg880CBi7JezrzRdx7NT5twJTeBoARP1bFtTaxNSJ0+epNs7lKGOPqco5aVjq9BAitkvIqCyrzRtAp0y9Sc+Q5x3N5VjADYNqVxzT13gFJ29N0kHZzI5Tu9pKC2yX8JSeJfveE8pxeBF0XP97dAHQpRtfypNQqrkgAq86yR55qdoMAX2C5ggH3z+qam+p0OY+2HPWyLPAbgupGoIqEBB5c/7aIqGE9gPiz3FW6bPqV/Jp3jLeJ36rQqpmgIq0KmfL3yIxeqeyCkaUGA/zLL+KTUEVdtP/YZaYpCCx3KMZSFV2iR5G7k+dJgi9EFW8wRwkLRrWUANdsVzCjhtY8VkHAucRZdQXoeFFJYZsNevBeqk5Ql+WM17wjTT1l1EWUBluW+xtyaL+zC4S1gH1VebUG6ChVQJ66D6Sl0nucVhHG3fnYGFVFXzUMs0+ZvT+Vw6q5SnM3FIYSU5e80aaWW6j8QfOp1azKQ4oHAHA/agKq36ZAcBxh5TK/xNlvK0LwQUrsVD4LPXrJHH6bEkDakdN+NbDCh8mlfNcoOmlk0s1/hp3jqpPsX68pe/vB1SNX6at44+7UsvUUjRu4Vu/4f9wqiOogIszowLOrajqABHCfF77eIHP/jB9lEUe53a6WgqPVbnlpbeznj7P+yXil9V3lU8NzXGo6ig79qpb3zjG9shdfbsWfoaY6C5qXSwNpHVuIWV91vf+of9Eu4LxR48CouH9/gbdExzLDFcdL3Ygdp64YUXtkNqzHXCHB57/9Jez4vxb5skZ7b+Yb9Y1N0NUlvskDmuNRpan/VAf/rTn7ZCCrf8Zc89JroVcRr4i5HVdw3Mf9MvgYht/WP+APZEoxE6ZA0XEPfV9VQGyxjwByE1xgnzmCbQ++u4GBrLnBp/3TsCahSLN9cJA3fMpzAB+7Cgibffftv6xEchNYZFruv0PTWWTp/q4VujWn2DMkIKd9pkTzYqGLgJJviq0OVTPsxFhT8XLlygzztGrBbSTMu5KBw97bHuRYNoldHPRwU4MpjCfFTQZr4Fn+gt/nn11Vfpc46RxwXaU4D+1fCsBFNJx6xb0QBqAiFV5d0Ouqj5bgdtNb1MBgH14YcfWl+49ec3v/kNfc4x0lKE9hoGFMIJNypodWrHIKTYC4xSx08hqtRkUhhBFgcU/rzxxhv0OcdIk+ft4Mjzj3/84/+xWs5hvSUWhvcOp0AhNVKrBt9TTz01e+WVV2z/8z/vvPMOfc4x0p07m8H6whVnIjhqwrRR40/s2lBIjRTu8BB3NIQTJsjff/992/fL/0wppHT7ltUQTpjL/cMf/vC3qHaYCMcndZ0mw9uYVEhdvXqVto8RAhmnc4Cjpt/97ne2v5v9UUhNExYB43QOfvzjH7//+uuvv2undn+x/vCa1QqBhJUA7qF0u9nH/h+sBaOnOz4IxQAAAABJRU5ErkJggg=="];
-[hostedContents setContentType:@"image/png"];
-[hostedContentsList addObject: hostedContents];
-MSGraphChatMessageHostedContent *hostedContents = [[MSGraphChatMessageHostedContent alloc] init];
-[hostedContents set@microsoft.graph.temporaryId:@"2"];
-[hostedContents setContentBytes:@"iVBORw0KGgoAAAANSUhEUgAAASkAAAEpCAYAAADPmdSCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEar6WzSnk5E4cUVpKz16yRVqb7SPym08nFTIoDCncwYA+q0qp3dhBg7DG1wt9kKS/7QkDhs3gIfPaaNfK4PJakIbXrZnyLAYV386pZbtDUsonlGt/NWyfVu1hPPfXUTkjV+G7eOnq3L71EIUXvFrrzH/YLozqLCrA4My7o2M6iApwlxPvaxSuvvLJzFsVep3Y6m0qP1bmlpbcz3vkP+6XiV5V3Fc9NjfEsKui7duq5557bCakzZ87Q1xgDzU2lg7WJrMYtrLzf+vY/7JdwXyj24FFYPL3H36BjmmOJ4UPXix2orbfeemsnpMZcJ8zhsf2X9np+GP9Hk+TM9j/sF4u6u0Fqix0yx2eNhtZnPdBXX321HVK45S977jHRrYjTwF+MrL5rYP6bfglEbPsf8wewJxqN0CFr+ABxX10vZbCMAX8QUmOcMI9pAr2/jouhscyp8de9I6BGsXhznTBwx3wJE7A3C5r4/PPPrU/8EFJjWOS6Tt9LY+n0rh6+NarVNygjpHCnTfZko4KBm2CCrwpd3uXDXFT4c+7cOfq8Y8RqIc20nIvC2dN+6140iFYZ/XxUgDODKcxHBW3mW/CO3uKf9957jz7nGHl8QHsK0L8aXpVgKmnTuhUNoCYQUlXe7aCLmu920FbTj8kgoL7//nvrC9f//OlPf6LPOUZaitBew4BCOOFGBa0u7RiEFHuBUer4LkSVmkwKI8jigMKfTz75hD7nGGnyvB2cef71r3/9P1bLOay3xMLw3uEUKKRGatXge/LJJ2fvvvuuHX/+54svvqDPOUa6c2czWF+44koEZ02YNmr8jl0bCqmRwh0e4o6GcMIE+bfffmvHfvmfKYWUbt+yGsIJc7mfffbZf0e1w0Q43qnrNBnexqRC6uOPP6btY4RAxuUc4Kzpo48+suPd7I9CapqwCBiXc/DGG298+8EHH/yXXdr9zfrDv1utEEhYCeAeSj82+8n/A1GsifSVBvjAAAAAAElFTkSuQmCC"];
-[hostedContents setContentType:@"image/png"];
-[hostedContentsList addObject: hostedContents];
-[chatMessage setHostedContents:hostedContentsList];
NSError *error; NSData *chatMessageData = [chatMessage getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-educationclass-from-educationschool-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-educationclass-from-educationschool-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/education/schools/10001/users/13006"]]];
-[urlRequest setHTTPMethod:@"DELETE"];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/education/schools/10002/classes/$ref"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphEducationClass *educationClass = [[MSGraphEducationClass alloc] init];
+
+NSError *error;
+NSData *educationClassData = [educationClass getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:educationClassData];
MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-identityuserflow-from-identitycontainer-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-identityuserflow-from-identitycontainer-objc-snippets.md
NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URL
[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; MSGraphIdentityUserFlow *identityUserFlow = [[MSGraphIdentityUserFlow alloc] init];
+[identityUserFlow setId:@"Pol1"];
[identityUserFlow setUserFlowType: [MSGraphUserFlowType signUpOrSignIn]]; [identityUserFlow setUserFlowTypeVersion: 1];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-identityuserflowattributeassignment-from--objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-identityuserflowattributeassignment-from--objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identity/b2cUserFlows/B2C_1_Consumer/userAttributeAssignments"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identity/b2xUserFlows/B2X_1_Partner/userAttributeAssignments"]]];
[urlRequest setHTTPMethod:@"POST"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-permission-from--objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-permission-from--objc-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/sites/{sitesId}/permissions"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphPermission *permission = [[MSGraphPermission alloc] init];
+NSMutableArray *rolesList = [[NSMutableArray alloc] init];
+[rolesList addObject: @"write"];
+[permission setRoles:rolesList];
+NSMutableArray *grantedToIdentitiesList = [[NSMutableArray alloc] init];
+MSGraphIdentitySet *grantedToIdentities = [[MSGraphIdentitySet alloc] init];
+MSGraphIdentity *application = [[MSGraphIdentity alloc] init];
+[application setId:@"89ea5c94-7736-4e25-95ad-3fa95f62b66e"];
+[application setDisplayName:@"Foo App"];
+[grantedToIdentities setApplication:application];
+[grantedToIdentitiesList addObject: grantedToIdentities];
+[permission setGrantedToIdentities:grantedToIdentitiesList];
+
+NSError *error;
+NSData *permissionData = [permission getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:permissionData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-plannerroster-from--objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-plannerroster-from--objc-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/planner/rosters"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphPlannerRoster *plannerRoster = [[MSGraphPlannerRoster alloc] init];
+
+NSError *error;
+NSData *plannerRosterData = [plannerRoster getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:plannerRosterData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-plannerrostermember-from--objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-plannerrostermember-from--objc-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/planner/rosters/6519868f-868f-6519-8f86-19658f861965/members"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphPlannerRosterMember *plannerRosterMember = [[MSGraphPlannerRosterMember alloc] init];
+[plannerRosterMember setUserId:@"String"];
+
+NSError *error;
+NSData *plannerRosterMemberData = [plannerRosterMember getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:plannerRosterMemberData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/create-printjob-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/create-printjob-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/print/printers/{id}/jobs"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/print/shares/{id}/jobs"]]];
[urlRequest setHTTPMethod:@"POST"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/delete-b2xuserflows-identityproviders-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/delete-b2xuserflows-identityproviders-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identity/b2xUserFlows/B2X_1_PartnerSignUp/identityProviders/Facebook-OAUTH/$ref"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identity/b2cUserFlows/B2C_1_CustomerSignUp/identityProviders/Facebook-OAUTH/$ref"]]];
[urlRequest setHTTPMethod:@"DELETE"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/delete-call-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/delete-call-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/communications/calls/57dab8b1-894c-409a-b240-bd8beae78896"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/onlineMeetings/550fae72-d251-43ec-868c-373732c2704f_19:meeting_M2IzYzczNTItYmY3OC00MDlmLWJjMzUtYmFiMjNlOTY4MGEz@thread.skype"]]];
[urlRequest setHTTPMethod:@"DELETE"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/delete-organizationalbrandingproperties-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/delete-organizationalbrandingproperties-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/organization/d69179bf-f4a4-41a9-a9de-249c0f2efb1d/branding/localizations/fr"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/organization/d69179bf-f4a4-41a9-a9de-249c0f2efb1d/branding"]]];
[urlRequest setHTTPMethod:@"DELETE"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/delete-plannerroster-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/delete-plannerroster-objc-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/planner/rosters/5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38"]]];
+[urlRequest setHTTPMethod:@"DELETE"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/delete-plannerrostermember-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/delete-plannerrostermember-objc-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/planner/rosters/523a9d5a-f9d5-45c1-929f-b8525393515c/members/5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38"]]];
+[urlRequest setHTTPMethod:@"DELETE"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/educationassignment-publish-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/educationassignment-publish-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/education/classes/11021/assignments/19002/publish"]]];
-[urlRequest setHTTPMethod:@"POST"];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/education/classes/11012/assignments/19002/getResourcesFolderUrl"]]];
+[urlRequest setHTTPMethod:@"GET"];
MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- //Request Completed
+ MSGraphString *string = [[MSGraphString alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-accesspackageresourceenvironment-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-accesspackageresourceenvironment-objc-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identityGovernance/entitlementManagement/accessPackageResourceEnvironments/{accessPackageResourceEnvironmentId}"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ MSGraphAccessPackageResourceEnvironment *accessPackageResourceEnvironment = [[MSGraphAccessPackageResourceEnvironment alloc] initWithData:data error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-classes-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-classes-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/education/classes"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/education/schools/10002/classes"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-cloudpconpremisesconnection-withdetails-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-cloudpconpremisesconnection-withdetails-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/deviceManagement/virtualEndpoint/onPremisesConnections/{id}?$select=id,displayName,subscriptionId,subscriptionName,adDomainName,adDomainUsername,organizationalUnit,virtualNetworkId,subnetId,healthCheckStatus,healthCheckStatusDetails,inUse"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/deviceManagement/virtualEndpoint/onPremisesConnections/{id}?$select=id,displayName,healthCheckStatus,healthCheckStatusDetails,inUse"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-connector-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-connector-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/onPremisesPublishingProfiles/applicationProxy/connectors/{id}"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/print/connectors/{id}"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphConnector *connector = [[MSGraphConnector alloc] initWithData:data error:&nserror];
+ MSGraphPrintConnector *printConnector = [[MSGraphPrintConnector alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-connectors-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-connectors-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/onPremisesPublishingProfiles/applicationProxy/connectors"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/print/printers/{id}/connectors"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
NSError *jsonError = nil; MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphConnector *connector = [[MSGraphConnector alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphPrintConnector *printConnector = [[MSGraphPrintConnector alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-educationuser-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-educationuser-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/education/users/13012"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/education/me/user"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphEducationUser *educationUser = [[MSGraphEducationUser alloc] initWithData:data error:&nserror];
+ MSGraphUser *user = [[MSGraphUser alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-group-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-group-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/termStore/groups"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/termStore/groups/{groupId}"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphGroup *group = [[MSGraphGroup alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphGroup *group = [[MSGraphGroup alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-grouplifecyclepolicy-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-grouplifecyclepolicy-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groupLifecyclePolicies"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groupLifecyclePolicies/{id}"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphGroupLifecyclePolicy *groupLifecyclePolicy = [[MSGraphGroupLifecyclePolicy alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphGroupLifecyclePolicy *groupLifecyclePolicy = [[MSGraphGroupLifecyclePolicy alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-identityprovider-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-identityprovider-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identityProviders/{id}"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identityProviders"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphIdentityProvider *identityProvider = [[MSGraphIdentityProvider alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphIdentityProvider *identityProvider = [[MSGraphIdentityProvider alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-identityuserflowattributeassignment-expand-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-identityuserflowattributeassignment-expand-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identity/b2xUserFlows/{id}/userAttributeAssignments?$expand=userAttribute"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identity/b2cUserFlows/{id}/userAttributeAssignments/{id}?$expand=userAttribute"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphIdentityUserFlowAttributeAssignment *identityUserFlowAttributeAssignment = [[MSGraphIdentityUserFlowAttributeAssignment alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphIdentityUserFlowAttributeAssignment *identityUserFlowAttributeAssignment = [[MSGraphIdentityUserFlowAttributeAssignment alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-identityuserflowattributeassignment-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-identityuserflowattributeassignment-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identity/b2xUserFlows/{id}/userAttributeAssignments"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identity/b2cUserFlows/{id}/userAttributeAssignments/{id}"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphIdentityUserFlowAttributeAssignment *identityUserFlowAttributeAssignment = [[MSGraphIdentityUserFlowAttributeAssignment alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphIdentityUserFlowAttributeAssignment *identityUserFlowAttributeAssignment = [[MSGraphIdentityUserFlowAttributeAssignment alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-names-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-names-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/drive/items/{id}/workbook/names"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/profile/names"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
NSError *jsonError = nil; MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphWorkbookNamedItem *workbookNamedItem = [[MSGraphWorkbookNamedItem alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphPersonName *personName = [[MSGraphPersonName alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-offershiftrequest-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-offershiftrequest-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/{teamId}/schedule/offerShiftRequests"]]];
-[urlRequest setHTTPMethod:@"GET"];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/788b75d2-a911-48c0-a5e2-dc98480457e3/schedule/offershiftrequests"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"Bearer {token}" forHTTPHeaderField:@"Authorization"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphOfferShiftRequest *offerShiftRequest = [[MSGraphOfferShiftRequest alloc] init];
+[offerShiftRequest setSenderShiftId:@"SHFT_f7e484ed-fdd6-421c-92d9-0bc9e62e2c29"];
+[offerShiftRequest setSenderMessage:@"Having a family emergency, could you take this shift for me?"];
+[offerShiftRequest setRecipientUserId:@"fe278b61-21ac-4872-8b41-1962bbb98e3c"];
+
+NSError *error;
+NSData *offerShiftRequestData = [offerShiftRequest getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:offerShiftRequestData];
MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphOfferShiftRequest *offerShiftRequest = [[MSGraphOfferShiftRequest alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ //Request Completed
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-organizationalbrandingproperties-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-organizationalbrandingproperties-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/organization/d69179bf-f4a4-41a9-a9de-249c0f2efb1d/branding/localizations/en-US/signInPageText"]]];
-[urlRequest setHTTPMethod:@"GET"];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/organization/d69179bf-f4a4-41a9-a9de-249c0f2efb1d/branding/localizations"]]];
+[urlRequest setHTTPMethod:@"POST"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphOrganizationalBrandingLocalization *organizationalBrandingLocalization = [[MSGraphOrganizationalBrandingLocalization alloc] init];
+[organizationalBrandingLocalization setBackgroundColor:@"#00000F"];
+[organizationalBrandingLocalization setId:@"fr"];
+
+NSError *error;
+NSData *organizationalBrandingLocalizationData = [organizationalBrandingLocalization getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:organizationalBrandingLocalizationData];
MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphString *string = [[MSGraphString alloc] initWithData:data error:&nserror];
+ //Request Completed
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-permission-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-permission-objc-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/sites/{sitesId}/permissions/{permissionId}"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ MSGraphPermission *permission = [[MSGraphPermission alloc] initWithData:data error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-plannerroster-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-plannerroster-objc-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/planner/rosters/6519868f-868f-6519-8f86-19658f861965"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ MSGraphPlannerRoster *plannerRoster = [[MSGraphPlannerRoster alloc] initWithData:data error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-plannerrostermember-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-plannerrostermember-objc-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/planner/rosters/523a9d5a-f9d5-45c1-929f-b8525393515c/members/5ba84f7a-aa11-4a51-a298-9f2c7ec6bb38"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ MSGraphPlannerRosterMember *plannerRosterMember = [[MSGraphPlannerRosterMember alloc] initWithData:data error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-plans-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-plans-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/planner/plans"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/groups/ebf3b108-5234-4e22-b93d-656d7dae5874/planner/plans"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-schools-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-schools-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/education/classes/11014/schools"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/education/me/schools"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-settings-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-settings-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/analytics/settings"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/settings"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphSettings *settings = [[MSGraphSettings alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphDirectorySetting *directorySetting = [[MSGraphDirectorySetting alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-sitesource-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-sitesource-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/compliance/ediscovery/cases/4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/siteSources/38304445-3741-3333-4233-344238454333"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/compliance/ediscovery/cases/4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/siteSources"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphSiteSource *siteSource = [[MSGraphSiteSource alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphSiteSource *siteSource = [[MSGraphSiteSource alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-synchronizationschema-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-synchronizationschema-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/servicePrincipals/{id}/synchronization/jobs/{jobId}/schema"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/servicePrincipals/{servicePrincipalId}/synchronization/jobs/{jobId}/schema"]]];
[urlRequest setHTTPMethod:@"GET"];
+[urlRequest setValue:@"Bearer {Token}" forHTTPHeaderField:@"Authorization"];
MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-timeoffrequest-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-timeoffrequest-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/{teamId}/schedule/timeOffRequests"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/{teamId}/schedule/timeOffRequests/{timeOffRequestId}"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphTimeOffRequest *timeOffRequest = [[MSGraphTimeOffRequest alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphTimeOffRequest *timeOffRequest = [[MSGraphTimeOffRequest alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-todotask-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-todotask-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/todo/lists/AAMkADA1MTHgwAAA=/tasks/721a35e2-35e2-721a-e235-1a72e2351a72"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/todo/lists/35e2-35e2-721a-e235-1a72e2351a7/tasks"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphTodoTask *todoTask = [[MSGraphTodoTask alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphTodoTask *todoTask = [[MSGraphTodoTask alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-todotasklist-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-todotasklist-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/todo/lists"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/me/todo/lists/AAMkADIyAAAAABrJAAA="]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphTodoTaskList *todoTaskList = [[MSGraphTodoTaskList alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphTodoTaskList *todoTaskList = [[MSGraphTodoTaskList alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-unifiedgroupsource-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-unifiedgroupsource-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/compliance/ediscovery/cases/4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/unifiedGroupSources"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/compliance/ediscovery/cases/4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/unifiedGroupSources/33434233-3030-3739-3043-393039324633"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- NSError *jsonError = nil;
- MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
- MSGraphUnifiedGroupSource *unifiedGroupSource = [[MSGraphUnifiedGroupSource alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+ MSGraphUnifiedGroupSource *unifiedGroupSource = [[MSGraphUnifiedGroupSource alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-userflowlanguageconfiguration-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-userflowlanguageconfiguration-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identity/b2cUserFlows/B2C_1_CustomerSignUp/languages"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identity/b2xUserFlows/B2X_1_PartnerSignUp/languages"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-userflowlanguagepage-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-userflowlanguagepage-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identity/b2cUserFlows/B2C_1_Customer/languages/en/defaultPages/idpselections/$value"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identity/b2cUserFlows/B2C_1_Customer/languages/en/defaultPages"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphStream *stream = [[MSGraphStream alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphUserFlowLanguagePage *userFlowLanguagePage = [[MSGraphUserFlowLanguagePage alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/get-usersource-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/get-usersource-objc-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/compliance/ediscovery/cases/4c8f8f70-7785-4bd4-b296-c98376a2c5e1/custodians/2192ca408ea2410eba3bec8ae873be6b/userSources"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphUserSource *userSource = [[MSGraphUserSource alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/list-accesspackageresourceenvironment-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/list-accesspackageresourceenvironment-objc-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identityGovernance/entitlementManagement/accessPackageResourceEnvironments?$filter=originSystem%20eq%20'SharePointOnline'"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphAccessPackageResourceEnvironment *accessPackageResourceEnvironment = [[MSGraphAccessPackageResourceEnvironment alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/list-permission-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/list-permission-objc-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/sites/{sitesId}/permissions"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphPermission *permission = [[MSGraphPermission alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/list-plannerplan-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/list-plannerplan-objc-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users/{usersId}/planner/rosterPlans"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphPlannerPlan *plannerPlan = [[MSGraphPlannerPlan alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/list-plannerrostermember-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/list-plannerrostermember-objc-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/planner/rosters/6519868f-868f-6519-8f86-19658f861965/members"]]];
+[urlRequest setHTTPMethod:@"GET"];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphPlannerRosterMember *plannerRosterMember = [[MSGraphPlannerRosterMember alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/list-usageright-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/list-usageright-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users/{userId}/usageRights?$filter=state%20in%20('active',%20'suspended')%20and%20serviceIdentifier%20in%20('ABCD')"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/devices/{objectId}/usageRights?$filter=state%20in%20('active',%20'suspended')%20and%20serviceIdentifier%20in%20('ABCD')"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/sendreminder-accessreview-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/sendreminder-accessreview-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/accessReviews/2975E9B5-44CE-4E71-93D3-30F03B5AA992/sendReminder"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/identityGovernance/accessReviews/definitions/04e5c3b2-9db2-40d3-a204-128f4956ae8e/instances/70463350-742e-4909-bfa5-bc23447bd002/sendReminder"]]];
[urlRequest setHTTPMethod:@"POST"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/shift-get-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/shift-get-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users/871dbd5c-3a6a-4392-bfe1-042452793a50/shiftPreferences"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/{teamId}/schedule/shifts/{shiftId}"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphShiftPreferences *shiftPreferences = [[MSGraphShiftPreferences alloc] initWithData:data error:&nserror];
+ MSGraphShift *shift = [[MSGraphShift alloc] initWithData:data error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-connectorgroup-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-connectorgroup-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/onPremisesPublishingProfiles/applicationProxy/connectorGroups"]]];
-[urlRequest setHTTPMethod:@"POST"];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/onPremisesPublishingProfiles/applicationProxy/connectorGroups/{id}"]]];
+[urlRequest setHTTPMethod:@"PATCH"];
[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; MSGraphConnectorGroup *connectorGroup = [[MSGraphConnectorGroup alloc] init];
-[connectorGroup setName:@"Connector Group Demo"];
+[connectorGroup setName:@"name-value"];
+[connectorGroup setRegion: [MSGraphConnectorGroupRegion nam]];
NSError *error; NSData *connectorGroupData = [connectorGroup getSerializedDataWithError:&error];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-member-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-member-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/ece6f0a1-7ca4-498b-be79-edf6c8fc4d82/channels/19:56eb04e133944cf69e603c5dac2d292e@thread.skype/members/ZWUwZjVhZTItOGJjNi00YWU1LTg0NjYtN2RhZWViYmZhMDYyIyM3Mzc2MWYwNi0yYWM5LTQ2OWMtOWYxMC0yNzlhOGNjMjY3Zjk="]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/teams/ece6f0a1-7ca4-498b-be79-edf6c8fc4d82/members/ZWUwZjVhZTItOGJjNi00YWU1LTg0NjYtN2RhZWViYmZhMDYyIyM3Mzc2MWYwNi0yYWM5LTQ2OWMtOWYxMC0yNzlhOGNjMjY3Zjk="]]];
[urlRequest setHTTPMethod:@"PATCH"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-organizationalbrandingproperties-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-organizationalbrandingproperties-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/organization/d69179bf-f4a4-41a9-a9de-249c0f2efb1d/branding/localizations/fr"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/organization/d69179bf-f4a4-41a9-a9de-249c0f2efb1d/branding"]]];
[urlRequest setHTTPMethod:@"PUT"]; [urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
-MSGraphOrganizationalBrandingLocalization *organizationalBrandingLocalization = [[MSGraphOrganizationalBrandingLocalization alloc] init];
-[organizationalBrandingLocalization setBackgroundColor:@"#00000F"];
-[organizationalBrandingLocalization setSignInPageText:@"fr"];
+MSGraphOrganizationalBranding *organizationalBranding = [[MSGraphOrganizationalBranding alloc] init];
+[organizationalBranding setBackgroundColor:@"#FFFF33"];
NSError *error;
-NSData *organizationalBrandingLocalizationData = [organizationalBrandingLocalization getSerializedDataWithError:&error];
-[urlRequest setHTTPBody:organizationalBrandingLocalizationData];
+NSData *organizationalBrandingData = [organizationalBranding getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:organizationalBrandingData];
MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/update-permission-from--objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/update-permission-from--objc-snippets.md
+
+description: "Automatically generated file. DO NOT MODIFY"
++
+```objc
+
+MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider];
+
+NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/sites/{sitesId}/permissions/{permissionId}"]]];
+[urlRequest setHTTPMethod:@"PATCH"];
+[urlRequest setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
+
+MSGraphPermission *permission = [[MSGraphPermission alloc] init];
+NSMutableArray *rolesList = [[NSMutableArray alloc] init];
+[rolesList addObject: @"read"];
+[permission setRoles:rolesList];
+
+NSError *error;
+NSData *permissionData = [permission getSerializedDataWithError:&error];
+[urlRequest setHTTPBody:permissionData];
+
+MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest
+ completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
+
+ //Request Completed
+
+}];
+
+[meDataTask execute];
+
+```
v1.0 https://docs.microsoft.com/en-us/graph/includes/snippets/objc/user-list-teamsapps-objc-snippets https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/includes/snippets/objc/user-list-teamsapps-objc-snippets.md
description: "Automatically generated file. DO NOT MODIFY"
MSHTTPClient *httpClient = [MSClientFactory createHTTPClientWithAuthenticationProvider:authenticationProvider]; NSString *MSGraphBaseURL = @"https://graph.microsoft.com/beta/";
-NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users/{id}/teamwork/installedApps/{id}"]]];
+NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:[MSGraphBaseURL stringByAppendingString:@"/users/{id}/teamwork/installedApps"]]];
[urlRequest setHTTPMethod:@"GET"]; MSURLSessionDataTask *meDataTask = [httpClient dataTaskWithRequest:urlRequest completionHandler: ^(NSData *data, NSURLResponse *response, NSError *nserror) {
- MSGraphUserScopeTeamsAppInstallation *userScopeTeamsAppInstallation = [[MSGraphUserScopeTeamsAppInstallation alloc] initWithData:data error:&nserror];
+ NSError *jsonError = nil;
+ MSCollection *collection = [[MSCollection alloc] initWithData:data error:&jsonError];
+ MSGraphUserScopeTeamsAppInstallation *userScopeTeamsAppInstallation = [[MSGraphUserScopeTeamsAppInstallation alloc] initWithDictionary:[[collection value] objectAtIndex: 0] error:&nserror];
}];
v1.0 https://docs.microsoft.com/en-us/graph/resources/accesspackageresourceenvironment https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/accesspackageresourceenvironment.md
Namespace: microsoft.graph
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
-In [Azure AD Entitlement Management](entitlementmanagement-root.md), an access package resource environment is a reference to the geolocation environment in which a resource is located. This environment is automatically provided as part of Azure AD Entilement Management. The API is only applicable to Multi-Geo SharePoint Online sites.
+In [Azure AD Entitlement Management](entitlementmanagement-root.md), an access package resource environment is a reference to the geolocation environment in which a resource is located. This environment is automatically provided as part of Azure AD Entitlement Management. The API is only applicable to Multi-Geo SharePoint Online sites.
## Methods |Method|Return type|Description|
The following is a JSON representation of the resource.
"blockType": "resource", "keyProperty": "id", "@odata.type": "microsoft.graph.accessPackageResourceEnvironment",
- "baseType": "",
"openType": false } -->
v1.0 https://docs.microsoft.com/en-us/graph/resources/accesspackageresourcerolescope https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/accesspackageresourcerolescope.md
The following is a JSON representation of the resource.
```json {
- "createdBy": "String",
- "createdDateTime": "String (timestamp)",
- "id": "String (identifier)",
- "modifiedBy": "String",
- "modifiedDateTime": "String (timestamp)",
- "accessPackageResourceRole": {
- "id": "String (identifier)",
- "displayName": "String",
- "originSystem": "String",
- "originId": "String"
- },
- "accessPackageResourceScope": {
- "id": "String (identifier)",
- "displayName": "String",
- "description": "String",
- "originId": "String (identifier)",
- "originSystem": "String"
- }
-
+ "createdBy":"String",
+ "createdDateTime":"String (timestamp)",
+ "id":"String (identifier)",
+ "modifiedBy":"String",
+ "modifiedDateTime":"String (timestamp)",
+ "accessPackageResourceRole":{
+ "id":"String (identifier)",
+ "displayName":"String",
+ "originSystem":"String",
+ "originId":"String"
+ },
+ "accessPackageResourceScope":{
+ "id":"String (identifier)",
+ "displayName":"String",
+ "description":"String",
+ "originId":"String (identifier)",
+ "originSystem":"String"
+ }
} ```
v1.0 https://docs.microsoft.com/en-us/graph/resources/album https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/album.md
- Title: album resource type description: Facet describing a bundle which is a photo album. localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/resources/approle https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/approle.md
Namespace: microsoft.graph
Represents an application role that can be requested by (and granted to) a client application, or that can be used to assign an application to users or groups in a specified role.
-The **appRoles** property of the [application](application.md) and [servicePrincipal](serviceprincipal.md) entities are a collection of **appRole**.
+To add, update, or remove app roles for an application, [update the application](../api/application-update.md) for the app or service. App roles on the application entity will be available in all tenants where the application is used. To define app roles that are only applicable in your tenant (for example, app roles representing custom roles in your instance of a multi-tenant application), you can also [update the service principal](../api/serviceprincipal-update.md) for the app, to add or update app roles to the **appRoles** collection.
With [appRoleAssignments](approleassignment.md), app roles can be assigned to users, groups, or other applications' service principals.
v1.0 https://docs.microsoft.com/en-us/graph/resources/authenticationmethods-overview https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/authenticationmethods-overview.md
The authentication method APIs are used to manage a user's authentication method
|[passwordlessmicrosoftauthenticatorauthenticationmethod](passwordlessmicrosoftauthenticatorauthenticationmethod.md) (deprecated)|Microsoft Authenticator Passwordless Phone Sign-in can be used by a user to sign-in to Azure AD|Delete a Passwordless Phone Sign-in authentication method.| |[emailAuthenticationMethod](emailauthenticationmethod.md)|An email address can be user by a user as part of the Self-Service Password Reset (SSPR) process.|See a user's authentication email address. Add, update, or remove an email address to a user.| |[windowsHelloForBusinessAuthenticationMethod](windowsHelloForBusinessAuthenticationMethod.md)|Windows Hello for Business is a passwordless sign-in method on Windows devices.|See devices where a user has enabled Windows Hello for Business sign-in. Delete a Windows Hello for Business credential.|
+|[temporaryaccesspassauthenticationmethod](temporaryaccesspassauthenticationmethod.md)|Temporary Access Pass is a time-limited passcode that serves as a strong credential and allows onboarding of passwordless credentials. | Set a new Temporary Access Pass on a user.|
+ ## Next steps
v1.0 https://docs.microsoft.com/en-us/graph/resources/authenticationmethodspolicies-overview https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/authenticationmethodspolicies-overview.md
Title: "Azure AD authentication methods policy API overview"
description: "Authentication methods policies define which authentication methods can be used by users in Azure AD." localization_priority: Normal + ms.prod: "identity-and-sign-in" doc_type: "conceptualPageType"
The authentication method policies APIs are used to manage policy settings. For
|Authentication method policy | Description | |:|:|:|
+|[smsAuthenticationMethodConfiguration](smsAuthenticationMethodConfiguration.md)| Define users who can use Text Message on the Azure AD tenant.|
|[fido2authenticationmethodconfiguration](fido2authenticationmethodconfiguration.md)| Define FIDO2 security key restrictions and users who can use them to sign in to Azure AD.| |[microsoftauthenticatorauthenticationmethodconfiguration](microsoftauthenticatorauthenticationmethodconfiguration.md)|Define users who can use Microsoft Authenticator on the Azure AD tenant.| |[emailauthenticationmethodconfiguration](emailauthenticationmethodconfiguration.md)|Define users who can use email OTP on the Azure AD tenant.| |[passwordlessmicrosoftauthenticatorauthenticationmethodconfiguration](passwordlessmicrosoftauthenticatorauthenticationmethodconfiguration.md) (deprecated)|Define users who can use Passwordless Phone Sign-in to sign in to Azure AD.|
+|[temporaryaccesspassauthenticationmethodconfiguration](temporaryaccesspassauthenticationmethodconfiguration.md)|Define users who can use Temporary Access Pass to sign in to Azure AD.|
## Next steps
v1.0 https://docs.microsoft.com/en-us/graph/resources/bundle https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/bundle.md
- Title: bundle resource type description: Facet describing a driveItem that is a logical grouping of other driveItems localization_priority: Normal
v1.0 https://docs.microsoft.com/en-us/graph/resources/calendarpermission https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/calendarpermission.md
Once a sharee or delegate has been set up for a calendar, you can [update](../ap
### calendarRoleType values
-| Values | Description |
+| Member | Description |
|:--|:| | none | Calendar is not shared with the user. | | freeBusyRead | User is a sharee who can view free/busy status of the owner on the calendar. |
v1.0 https://docs.microsoft.com/en-us/graph/resources/device https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/device.md
This resource lets you add your own data to custom properties using [extensions]
|alternativeSecurityIds|alternativeSecurityId collection| For internal use only. Not nullable. | |approximateLastSignInDateTime|DateTimeOffset| 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 would look like this: `'2014-01-01T00:00:00Z'`. Read-only. | |complianceExpirationDateTime|DateTimeOffset| The timestamp when the device is no longer deemed compliant. 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 would look like this: `'2014-01-01T00:00:00Z'`. Read-only. |
+|deviceCategory|String|User-defined property set by Intune to automatically add devices to groups and simplify managing devices.|
|deviceId|Guid| Unique identifier set by Azure Device Registration Service at the time of registration. | |deviceMetadata|String| For internal use only. Set to null. |
+|deviceOwnership|String|Ownership of the device. This property is set by Intune. Possible values are: unknown, company, personal.|
|deviceVersion|Int32| For internal use only. | |displayName|String| The display name for the device. Required. |
+|domainName|String|The on-premises domain name of Hybrid Azure AD joined devices. This property is set by Intune.|
+|enrollmentProfileName|String|Enrollment profile applied to the device. For example, Apple Device Enrollment Profile, Device enrollment - Corporate device identifiers, or Windows Autopilot profile name. This property is set by Intune.|
+|enrollmentType|String|Enrollment type of the device. This property is set by Intune. Possible values are: unknown, userEnrollment, deviceEnrollmentManager, appleBulkWithUser, appleBulkWithoutUser, windowsAzureADJoin, windowsBulkUserless, windowsAutoEnrollment, windowsBulkAzureDomainJoin, windowsCoManagement.|
|id|String|The unique identifier for the device. Inherited from [directoryObject](directoryobject.md). Key, Not nullable. Read-only.| |isCompliant|Boolean|**true** if the device complies with Mobile Device Management (MDM) policies; otherwise, **false**. Read-only. This can only be updated by Intune for any device OS type or by an [approved MDM app](/windows/client-management/mdm/azure-active-directory-integration-with-mdm) for Windows OS devices.| |isManaged|Boolean|**true** if the device is managed by a Mobile Device Management (MDM) app; otherwise, **false**. This can only be updated by Intune for any device OS type or by an [approved MDM app](/windows/client-management/mdm/azure-active-directory-integration-with-mdm) for Windows OS devices. |
+|isRooted|Boolean|**true** if device is rooted; **false** if device is jail-broken. This can only be updated by Intune.|
+|managementType|String|Management channel of the device. This property is set by Intune. Possible values are: eas, mdm, easMdm, intuneClient, easIntuneClient, configurationManagerClient, configurationManagerClientMdm, configurationManagerClientMdmEas, unknown, jamf, googleCloudDevicePolicyController.|
|manufacturer|String| Manufacturer of the device. Read-only. | |mdmAppId|String|Application identifier used to register device into MDM. <br><br>Read-only. Supports $filter.| |model|String| Model of the device. Read-only. |
This resource lets you add your own data to custom properties using [extensions]
|operatingSystemVersion|String| Operating system version of the device. Required. | |physicalIds|String collection| For internal use only. Not nullable. | |profileType|String|The profile type of the device. Possible values:<br />**RegisteredDevice** (default)<br />**SecureVM**<br />**Printer**<br />**Shared**<br />**IoT**|
+|registrationDateTime|DateTimeOffset|Date and time of when the device was registered. 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 would look like this: `'2014-01-01T00:00:00Z'`. Read-only.|
|systemLabels|String collection| List of labels applied to the device by the system. | |hostNames|String collection| List of hostNames for the device.| |trustType|String| Type of trust for the joined device. Read-only. Possible values: <br />**Workplace** - indicates *bring your own personal devices*<br />**AzureAd** - Cloud only joined devices<br />**ServerAd** - on-premises domain joined devices joined to Azure AD. For more details, see [Introduction to device management in Azure Active Directory](/azure/active-directory/device-management-introduction) |
This resource lets you add your own data to custom properties using [extensions]
|registeredOwners|[directoryObject](directoryobject.md) collection| The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Currently, there can be only one owner. Read-only. Nullable.| |registeredUsers|[directoryObject](directoryobject.md) collection| Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable.| |extensions|[extension](extension.md) collection|The collection of open extensions defined for the device. Nullable.|
-|registeredOwners|[directoryObject](directoryobject.md) collection|Users that are registered owners of the device. Read-only. Nullable.|
-|registeredUsers|[directoryObject](directoryobject.md) collection|Users that are registered users of the device. Read-only. Nullable.|
|commands | [command](command.md) collection | Set of commands sent to this device| |usageRight|[usageRight](usageright.md) collection|Represents the usage rights a device has been granted. |
The following is a JSON representation of the resource.
"accountEnabled": true, "approximateLastSignInDateTime": "String (timestamp)", "complianceExpirationDateTime": "String (timestamp)",
+ "deviceCategory": "string",
"deviceId": "string", "deviceMetadata": "string",
+ "deviceOwnership": "string",
"deviceVersion": 1024, "displayName": "string",
+ "domainName": "string",
+ "enrollmentProfileName": "string",
+ "enrollmentType": "string",
"id": "string (identifier)", "isCompliant": true, "isManaged": true,
+ "isRooted": true,
"mdmAppId": "string", "onPremisesLastSyncDateTime": "String (timestamp)", "onPremisesSyncEnabled": true,
The following is a JSON representation of the resource.
"operatingSystemVersion": "string", "physicalIds": ["string"], "profileType": "string",
+ "registrationDateTime": "String (timestamp)",
"systemLabels": ["string"], "hostNames" : ["string"], "trustType": "string",
The following is a JSON representation of the resource.
"Platform": "string", "Kind": "string", "Model": "string",
+ "managementType": "string",
"Manufacturer": "string" } ```
v1.0 https://docs.microsoft.com/en-us/graph/resources/drive https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/drive.md
- Title: drive resource type description: drive resource representing a user's onedrive or a document library in SharePoint localization_priority: Priority
v1.0 https://docs.microsoft.com/en-us/graph/resources/dynamics-vendor https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/dynamics-vendor.md
None
## JSON representation
+<!-- {
+ "blockType": "resource",
+ "optionalProperties": [],
+ "keyProperty": "id",
+ "@odata.type": "microsoft.graph.vendor"
+}-->
+ Here is a JSON representation of the vendor. ```json
Here is a JSON representation of the vendor.
"balance": "decimal", "lastModifiedDateTime": "datetime" }- ```
v1.0 https://docs.microsoft.com/en-us/graph/resources/educationassignment https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/educationassignment.md
The following is a JSON representation of the resource.
```json { "id": "String (identifier)",
- "addedStudentAction": "string",
+ "addedStudentAction": "none",
"allowLateSubmissions": true, "allowStudentsToAddResourcesToSubmission": true, "assignDateTime": "String (timestamp)",
The following is a JSON representation of the resource.
"instructions": {"@odata.type": "microsoft.graph.itemBody"}, "lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"}, "lastModifiedDateTime": "String (timestamp)",
- "notificationChannelUrl": "string",
+ "notificationChannelUrl": null,
"status": "string" } ```
v1.0 https://docs.microsoft.com/en-us/graph/resources/educationassignmentdefaults https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/educationassignmentdefaults.md
+
+ Title: "educationAssignmentDefaults resource type"
+description: "Specifies class-level defaults respected by new assignments created in the class"
+
+localization_priority: Normal
++
+# educationAssignmentDefaults resource type
+
+Namespace: microsoft.graph
++
+Specifies class-level defaults respected by new assignments created in the class. Callers can continue to specify custom values on each assignment creation if they do not want the default behaviors.
+
+## Methods
+|Method|Return type|Description|
+|:|:|:|
+|[Get educationAssignmentDefaults](../api/educationassignmentdefaults-get.md)|[educationAssignmentDefaults](../resources/educationassignmentdefaults.md)|Read the properties and relationships of an [educationAssignmentDefaults](../resources/educationassignmentdefaults.md) object.|
+|[Update educationAssignmentDefaults](../api/educationassignmentdefaults-update.md)|[educationAssignmentDefaults](../resources/educationassignmentdefaults.md)|Update the properties of an [educationAssignmentDefaults](../resources/educationassignmentdefaults.md) object.|
+
+## Properties
+|Property|Type|Description|
+|:|:|:|
+|addedStudentAction|educationAddedStudentAction|Class-level default behavior for handling students who are added after the assignment is published. Possible values are: `none`, `assignIfOpen`.|
+|dueTime|TimeOfDay|Class-level default value for due time field. Default value is `23:59:00`.|
+|notificationChannelUrl|String|Default Teams channel to which notifications will be sent. Default value is `null`.|
+
+## Relationships
+None.
+
+## JSON representation
+The following is a JSON representation of the resource.
+<!-- {
+ "blockType": "resource",
+ "keyProperty": "id",
+ "@odata.type": "microsoft.graph.educationAssignmentDefaults",
+ "openType": false
+}
+-->
+``` json
+{
+ "addedStudentAction": "none",
+ "dueTime": "23:59:00",
+ "notificationChannelUrl": "https://graph.microsoft.com/beta/teams('id')/channels('id')"
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/resources/educationclass https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/educationclass.md
The following is a JSON representation of the resource.
"section": "documentation", "tocPath": "", "suppressions": [
- "Error: Resource educationClass has documented navigation properties, but we thought it was a complex type!",
- "Resource educationClass has documented navigation properties, but we thought it was a complex type!"
] }-->
v1.0 https://docs.microsoft.com/en-us/graph/resources/educationschool https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/educationschool.md
The following is a JSON representation of the resource.
"section": "documentation", "tocPath": "", "suppressions": [
- "Error: Resource educationSchool has documented navigation properties, but we thought it was a complex type!"
] }-->
v1.0 https://docs.microsoft.com/en-us/graph/resources/educationuser https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/educationuser.md
The following is a JSON representation of the resource.
"section": "documentation", "tocPath": "", "suppressions": [
- "Error: Resource educationUser has documented navigation properties, but we thought it was a complex type!"
] }-->
v1.0 https://docs.microsoft.com/en-us/graph/resources/enums-termstore https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/enums-termstore.md
Namespace: microsoft.graph.termstore
Specifies the value types relations can take in a termstore
-|Members|
+|Member|
|:| |pin| |reuse|
Specifies the value types relations can take in a termstore
Specifies the values different group types can take within the termstore
-|Members|
+|Member|
|:| |global| |system|
v1.0 https://docs.microsoft.com/en-us/graph/resources/enums https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/enums.md
Possible values for user account types (group membership), per Windows definitio
|meeting | 2 | Indicates that the chat is a Meeting chat, which is created as a side effect of creation of an OnlineMeeting. | |unknownFutureValue | 3 | Sentinel value to indicate future values. |
+### singleSignOnMode values
+
+|Member|
+|:|
+|none|
+|onPremisesKerberos|
+|aadHeaderBased|
+|pingHeaderBased|
+ ### plannerContainerType values |Member| |:| |group|
-|unknownFutureValue|
+|unknownFutureValue|
+
+### plannerPlanContextType values
+
+|Member|
+|:|
+|teamsTab|
+|sharePointPage|
+|meetingNotes|
+|other|
+|unknownFutureValue|
+
v1.0 https://docs.microsoft.com/en-us/graph/resources/group https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/group.md
This resource supports:
|unseenConversationsCount|Int32|Count of conversations that have been delivered one or more new posts since the signed-in user's last visit to the group. This property is the same as **unseenCount**. <br><br>Returned only on $select.| |unseenCount|Int32|Count of conversations that have received new posts since the signed-in user last visited the group. This property is the same as **unseenConversationsCount**.<br><br>Returned only on $select. | |unseenMessagesCount|Int32|Count of new posts that have been delivered to the group's conversations since the signed-in user's last visit to the group. <br><br>Returned only on $select.|
-|visibility|String| Specifies the visibility of a Microsoft 365 group. Possible values are: `Private`, `Public`, or `Hiddenmembership`; blank values are treated as public. See [group visibility options](#group-visibility-options) to learn more.<br>Visibility can be set only when a group is created; it is not editable.<br>Visibility is supported only for unified groups; it is not supported for security groups. <br><br>Returned by default.|
+|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.<br> If visibility value is not specified during group creation on Microsoft Graph, a security group is created as `Private` by default and Microsoft 365 group is `Public`. See [group visibility options](#group-visibility-options) to learn more. <br><br>Returned by default.|
### Group visibility options
v1.0 https://docs.microsoft.com/en-us/graph/resources/identityuserflow https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/identityuserflow.md
User Flows enable you to define predefined, configurable policies for sign in, s
| Property | Type | Description | |:-|:|:|
-|id|String| Read-only.|
+|id|String| The identifier of the user flow. The prefix of **B2C_1_** is added to the value that you provide.|
|userFlowType|string| Possible values are: `signUp`, `signIn`, `signUpOrSignIn`, `passwordReset`, `profileUpdate`, `resourceOwner`, `unknownFutureValue`.| |userFlowTypeVersion|Single| This is the version of the user flow type. Each user flow type can have different possible versions such as 1, 1.1 or 2. |
v1.0 https://docs.microsoft.com/en-us/graph/resources/intune-devices-devicecompliancescriptdevicestate https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/intune-devices-devicecompliancescriptdevicestate.md
Contains properties for device run state of the device compliance script.
|detectionState|[runState](../resources/intune-shared-runstate.md)|Detection state from the lastest device compliance script execution. Possible values are: `unknown`, `success`, `fail`, `scriptError`, `pending`, `notApplicable`.| |lastStateUpdateDateTime|DateTimeOffset|The last timestamp of when the device compliance script executed| |expectedStateUpdateDateTime|DateTimeOffset|The next timestamp of when the device compliance script is expected to execute|
-|lastSyncDateTime|DateTimeOffset|The last time that Intune Managment Extension synced with Intune|
+|lastSyncDateTime|DateTimeOffset|The last time that Intune Management Extension synced with Intune|
|scriptOutput|String|Output of the detection script| |scriptError|String|Error from the detection script|
v1.0 https://docs.microsoft.com/en-us/graph/resources/intune-devices-devicehealthscriptdevicestate https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/intune-devices-devicehealthscriptdevicestate.md
Contains properties for device run state of the device health script.
|detectionState|[runState](../resources/intune-shared-runstate.md)|Detection state from the lastest device health script execution. Possible values are: `unknown`, `success`, `fail`, `scriptError`, `pending`, `notApplicable`.| |lastStateUpdateDateTime|DateTimeOffset|The last timestamp of when the device health script executed| |expectedStateUpdateDateTime|DateTimeOffset|The next timestamp of when the device health script is expected to execute|
-|lastSyncDateTime|DateTimeOffset|The last time that Intune Managment Extension synced with Intune|
+|lastSyncDateTime|DateTimeOffset|The last time that Intune Management Extension synced with Intune|
|preRemediationDetectionScriptOutput|String|Output of the detection script before remediation| |preRemediationDetectionScriptError|String|Error from the detection script before remediation| |remediationScriptError|String|Error output of the remediation script|
v1.0 https://docs.microsoft.com/en-us/graph/resources/microsoftauthenticatorauthenticationmethodtarget https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/microsoftauthenticatorauthenticationmethodtarget.md
A collection of users or groups enabled to use [Microsoft Authenticator authenti
|isNumberMatchingRequired (Private Preview)|Boolean|Require the user to match the number displayed on the sign-in page to approve the MFA notification.| |isRegistrationRequired|Boolean|Determines whether the user is enforced to register the authentication method. *Not supported*. | |shownContext (Private Preview)|authenticatorAppContextType|Determines what types of context about the sign-in should be shown to the user in the body of the notification. Possible values are: `location`, `app`.|
-|targetType|authenticationMethodTargetType| Possible values are: `user`, `group`.|
+|targetType|authenticationMethodTargetType| Possible values are: `null`, `user`, `group`.|
## Relationships None.
v1.0 https://docs.microsoft.com/en-us/graph/resources/onpremisespublishingsinglesignon https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/onpremisespublishingsinglesignon.md
Title: "kerberosSignOnSettings resource type"
+ Title: "onPremisesPublishingSingleSignOn resource type"
description: "Represents the single-sign on settings for an on-premises application published via Application Proxy." localization_priority: Normal
If you are configuring password-based single-sign this must be set using [create
| Property | Type | Description | |:-|:|:| |kerberosSignOnSettings| [kerberosSignOnSettings](kerberossignonsettings.md)| The Kerberos Constrained Delegation settings for applications that use Integrated Window Authentication. |
-|singleSignOnMode|String| The preferred single-sign on mode for the application. Possible values are: `none`, `onPremisesKerberos`, `headerBased`.|
+|singleSignOnMode|singleSignOnMode| The preferred single-sign on mode for the application. Possible values are: `none`, `onPremisesKerberos`, `aadHeaderBased`,`pingHeaderBased`. |
## JSON representation
v1.0 https://docs.microsoft.com/en-us/graph/resources/outlookcategory https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/outlookcategory.md
Here is a JSON representation of the resource.
"section": "documentation", "tocPath": "", "suppressions": [
- "Warning: /api-reference/bet:\r\n Failed to parse any rows out of table with headers: |Pre-set constant|Color mapped to in Outlook|"
] } -->
v1.0 https://docs.microsoft.com/en-us/graph/resources/permission https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/permission.md
- Title: permission resource type description: permission resource representing a sharing permission granted for a driveItem localization_priority: Normal
Here is a JSON representation of the resource.
### Roles property values
-| Role | Details |
+| Value | Description |
|:|:-| | read | Provides the ability to read the metadata and contents of the item. | | write | Provides the ability to read and modify the metadata and contents of the item. |
v1.0 https://docs.microsoft.com/en-us/graph/resources/personOrGroupColumn https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/personOrGroupColumn.md
Here is a JSON representation of a **personOrGroupColumn** resource.
| **displayAs** | string | How to display the information about the person or group chosen. See below. | **chooseFromType** | string | Whether to allow selection of people only, or people and groups. Must be one of `peopleAndGroups` or `peopleOnly`.
-## DisplayAs values
+## displayAs values
-| DisplayAs value | Description |
+| Value | Description |
|:|:| | **account** | The raw SharePoint encoded claim string for the person or group (eg. `i:0#.f|membership|jane@contoso.com`). | | **department** | The person or group's department. |
v1.0 https://docs.microsoft.com/en-us/graph/resources/planner https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/planner.md
The **planner** resource is the entry point for the Planner object model. It ret
|:|:--|:-| |[Create plannerBucket](../api/planner-post-buckets.md) |[plannerBucket](plannerbucket.md)| Create a new **plannerBucket** by posting to the buckets collection.| |[Create plannerPlan](../api/planner-post-plans.md) |[plannerPlan](plannerplan.md)| Create a new **plannerPlan** by posting to the plans collection.|
+|[Create plannerRoster](../api/planner-post-rosters.md)|[plannerRoster](plannerroster.md)|Create a new **plannerRoster** by posting to rosters collection.|
|[Create plannerTask](../api/planner-post-tasks.md) |[plannerTask](plannertask.md)| Create a new **plannerTask** by posting to the tasks collection.| ## Properties
The **planner** resource is the entry point for the Planner object model. It ret
|:|:--|:-| |buckets|[plannerBucket](plannerbucket.md) collection| Read-only. Nullable. Returns a collection of the specified buckets| |plans|[plannerPlan](plannerplan.md) collection| Read-only. Nullable. Returns a collection of the specified plans|
+|rosters|[plannerRoster](plannerroster.md) collection|Read-only. Nullable. Returns a collection of the specified rosters|
|tasks|[plannerTask](plannertask.md) collection| Read-only. Nullable. Returns a collection of the specified tasks| ## JSON representation
v1.0 https://docs.microsoft.com/en-us/graph/resources/plannerappliedcategories https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/plannerappliedcategories.md
Title: "plannerAppliedCategories resource type"
-description: "The **AppliedCategoriesCollection** resource represents the collection of categories (or labels) that have been applied to a task. It is part of the plannerTask object."
+description: "Represents the collection of categories (or labels) that have been applied to a task, which is part of the plannerTask object."
localization_priority: Normal ms.prod: "planner"
Namespace: microsoft.graph
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
-The **AppliedCategoriesCollection** resource represents the collection of categories (or labels) that have been applied to a task. It is part of the [plannerTask](plannertask.md) object.
-There can be up to 6 categories applied to a task. Category descriptions, e.g. `category1`, `category2` etc., are part of the [plan details](plannerplandetails.md) object. This is an open type.
+Represents the collection of categories (or labels) that have been applied to a task, which is part of the [plannerTask](plannertask.md) object.
+Up to 25 categories can be applied to a task. Category descriptions, are part of the [plan details](plannerplandetails.md) object. This is an open type.
## Properties
-Properties of an Open Type can be defined by the client. In this case though, the client must provide `category1`, `category2`, `category3`, `category4`, `category5` and/or `category6` as properties with their values being the `true` boolean when the corresponding categories are applied on the task. Example is shown below. When they do not apply, properties are automatically removed by setting their values to the `false` boolean.
+Properties of an open type can be defined by the client. In this case, the client must provide **category1**, **category2**, **category3**, **category4**, **category5**, and so on up to **category25** as properties with their values being `true` when the corresponding categories are applied on the task. When they do not apply, properties are automatically removed by setting their values to `false`, as shown in the following example.
+
+```json
+{
+ "category1": true,
+ "category3": true,
+ "category5": true,
+ "category21": true
+}
+```
## JSON representation
-Here is a JSON representation of the resource
+The following is a JSON representation of the resource.
<!-- { "blockType": "resource",
Here is a JSON representation of the resource
} ```
-Example:
-
-```json
-{
- "category1": true,
- "category3": true,
- "category5": true
-}
-```
- <!-- uuid: 8fcb5dbc-d5aa-4681-8e31-b001d5168d79 2015-10-25 14:57:30 UTC --> <!--
v1.0 https://docs.microsoft.com/en-us/graph/resources/plannercategorydescriptions https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/plannercategorydescriptions.md
Title: "plannerCategoryDescriptions resource type"
-description: "The **plannerCategoryDescriptions** resource represents the descriptive labels for the categories that have been defined for a plan. It belongs to the plan details object. There can be up to 6 categories defined. "
+description: "Represents the descriptive labels for the categories that have been defined for a plan."
localization_priority: Normal ms.prod: "planner"
Namespace: microsoft.graph
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
-The **plannerCategoryDescriptions** resource represents the descriptive labels for the categories that have been defined for a plan. It belongs to the [plan details](plannerplandetails.md) object. There can be up to 6 categories defined.
-
+Represents the descriptive labels for the categories that have been defined for a plan. This resource is associated with the [plan details](plannerplandetails.md) object. Up to 25 categories can be defined.
## Properties
-| Property | Type |Description|
-|:|:--|:-|
+|Property|Type|Description|
+|:|:|:|
|category1|String|The label associated with Category 1| |category2|String|The label associated with Category 2| |category3|String|The label associated with Category 3| |category4|String|The label associated with Category 4| |category5|String|The label associated with Category 5| |category6|String|The label associated with Category 6|
+|category7|String|The label associated with Category 7|
+|category8|String|The label associated with Category 8|
+|category9|String|The label associated with Category 9|
+|category10|String|The label associated with Category 10|
+|category11|String|The label associated with Category 11|
+|category12|String|The label associated with Category 12|
+|category13|String|The label associated with Category 13|
+|category14|String|The label associated with Category 14|
+|category15|String|The label associated with Category 15|
+|category16|String|The label associated with Category 16|
+|category17|String|The label associated with Category 17|
+|category18|String|The label associated with Category 18|
+|category19|String|The label associated with Category 19|
+|category20|String|The label associated with Category 20|
+|category21|String|The label associated with Category 21|
+|category22|String|The label associated with Category 22|
+|category23|String|The label associated with Category 23|
+|category24|String|The label associated with Category 24|
+|category25|String|The label associated with Category 25|
## JSON representation
-Here is a JSON representation of the resource.
-
+The following is a JSON representation of the resource.
<!-- { "blockType": "resource", "optionalProperties": [
Here is a JSON representation of the resource.
```json {
+ "@odata.type": "#microsoft.graph.plannerCategoryDescriptions",
"category1": "String", "category2": "String", "category3": "String", "category4": "String", "category5": "String",
- "category6": "String"
+ "category6": "String",
+ "category7": "String",
+ "category8": "String",
+ "category9": "String",
+ "category10": "String",
+ "category11": "String",
+ "category12": "String",
+ "category13": "String",
+ "category14": "String",
+ "category15": "String",
+ "category16": "String",
+ "category17": "String",
+ "category18": "String",
+ "category19": "String",
+ "category20": "String",
+ "category21": "String",
+ "category22": "String",
+ "category23": "String",
+ "category24": "String",
+ "category25": "String"
} ```
v1.0 https://docs.microsoft.com/en-us/graph/resources/plannerplancontainer https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/plannerplancontainer.md
doc_type: resourcePageType
Namespace: microsoft.graph + Represents a container for a [plannerPlan](plannerPlan.md). The container is a resource that specifies authorization rules and the lifetime of the plan. This means that only the people who are authorized to work with the resource containing the plan will be able to work with the plan and the tasks within it. When the containing resource is deleted, the contained plans are also deleted. Properties of **plannerPlanContainer** cannot be changed after the plan is created. Planner currently supports the container types listed in the following table. When creating a plan, the **containerUrl** property must be specified with the path of the resource identified in the table. |Type|Description|Path to the resource| |-|--|--|
-|group| Plan is contained by a group.| https://graph.microsoft.com/v1.0/groups/&lt;id&gt;|
+|group| Plan is contained by a [group](group.md).| https://graph.microsoft.com/beta/groups/&lt;id&gt;|
+|roster| Plan is container by a [plannerRoster](plannerroster.md) | https://graph.microsoft.com/beta/planner/rosters/&lt;id&gt;|
## Properties |Property|Type|Description| |:|:|:| |containerId|String|The identifier of the resource that contains the plan.|
-|type|plannerContainerType| The type of the resource that contains the plan. See the previous table for supported types. Possible values are: `group`, `unknownFutureValue`.|
+|type|plannerContainerType| The type of the resource that contains the plan. See the previous table for supported types. Possible values are: `group`, `roster`, `unknownFutureValue`.|
|url|String|The full canonical URL of the container.| ## Relationships
v1.0 https://docs.microsoft.com/en-us/graph/resources/plannerplancontext https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/plannerplancontext.md
Namespace: microsoft.graph
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
-The **plannerPlanContext** resource represents the relationship of a [plannerPlan](plannerplan.md) to a user experience outside of Planner. Plans in Planner can be surfaced in other experiences, such as Microsoft Teams, to track work in the context of that experience.
-The experience the **plannerPlanContext** entry reresents can be identified based on the **ownerAppId** property:
-- 5e3ce6c0-2b1f-4285-8d4b-75ee78787346 : The context entry belongs to Microsoft Teams.-- 00000003-0000-0ff1-ce00-000000000000 : The context entry belongs to SharePoint.
+The **plannerPlanContext** resource represents the relationship of a [plannerPlan](plannerplan.md) to a user experience outside of Planner. Plans in Planner can be surfaced in other experiences, such as Microsoft Teams, to track work in the context of that experience. Experiences that have external links in the [plannerPlanContextDetails](plannerplancontextdetails.md) can be displayed in a user interface, allowing users to visit these experiences.
+ ## Properties | Property | Type |Description|
The experience the **plannerPlanContext** entry reresents can be identified base
|associationType|String|Nullable. An app-defined type of association between the [plannerPlan](plannerplan.md) and the app. The app can use this information to track different kinds of relationships to the same [plannerPlan](plannerplan.md).| |createdDateTime|DateTimeOffset|Read-only. The date and time when the **plannerPlanContext** 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 would look like this: `'2014-01-01T00:00:00Z'`.| |displayNameSegments|String collection|The segments of the name of the external experience. Segments represent a hierarchical structure that allows other apps to display the relationship.|
+|isCreationContext|Boolean|Read-only. Indicates whether the plan is created from the specified context. Auto-generated based on whether the context is specified as part of plan creation.|
|ownerAppId|String|Read-only. ID of the app that created the **plannerPlanContext**.| ## JSON representation
The following is a JSON representation of the resource.
"Finance Team", "Budget Plans" ],
+ "isCreationContext": false,
"ownerAppId": "5e3ce6c0-2b1f-4285-8d4b-75ee78787346" }
v1.0 https://docs.microsoft.com/en-us/graph/resources/plannerplancontextdetails https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/plannerplancontextdetails.md
The **plannerPlanContextDetails** resource contains additional information about
## Properties | Property | Type |Description| |:|:--|:-|
-|url|String|URL of the user experience represented by the associated [plannerPlanContext](plannerplancontext.md). |
+|customLinkText|String|Nullable. Specifies the text to use in a user experience to display a link the the associated [plannerPlanContext](plannerplancontext.md). If null, applications should display the link with a custom text based on the **displayLinkType** property.|
+|displayLinkType|plannerPlanContextType|Specifies how an application should display the link to the associated **plannerPlanContext**. Applications may choose to provide customized text, description, icons, or other experiences based on the type of the link. Possible values are: `teamsTab`, `sharePointPage`, `meetingNotes`, `other`, `unknownFutureValue`.|
+|url|String|URL of the user experience represented by the associated **plannerPlanContext**. |
## JSON representation
The following is a JSON representation of the resource.
```json {
- "url": "String"
+ "url": "http://www.microsoft.com",
+ "customLinkText": "Visit Microsoft's home page.",
+ "displayLinkType": "other"
} ```
v1.0 https://docs.microsoft.com/en-us/graph/resources/plannerplandetails https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/plannerplandetails.md
The **plannerPlanDetails** resource represents the additional information about
## Properties | Property | Type |Description| |:|:--|:-|
-|categoryDescriptions|[plannerCategoryDescriptions](plannercategorydescriptions.md)|An object that specifies the descriptions of the six categories that can be associated with tasks in the plan|
+|categoryDescriptions|[plannerCategoryDescriptions](plannercategorydescriptions.md)|An object that specifies the descriptions of the 25 categories that can be associated with tasks in the plan|
|id|String| Read-only. The ID of the plan details. It is 28 characters long and case-sensitive. [Format validation](tasks-identifiers-disclaimer.md) is done on the service.| |sharedWith|[plannerUserIds](planneruserids.md)|The set of user IDs that this plan is shared with. If you are using Microsoft 365 groups, use the groups API to manage group membership to share the [group's](group.md) plan. You can also add existing members of the group to this collection, although it is not required in order for them to access the plan owned by the group. | |contextDetails|[plannerPlanContextDetailsCollection](plannerplancontextdetailscollection.md)|Read-only. A collection of additional information associated with [plannerPlanContext](plannerplancontext.md) entries that are defined for the [plannerPlan](plannerplan.md) container. |
v1.0 https://docs.microsoft.com/en-us/graph/resources/plannerroster https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/plannerroster.md
+
+ Title: "plannerRoster resource type"
+description: "The **plannerRoster** resource represents a collection of users who are collaborating on a plannerPlan."
+
+localization_priority: Normal
++
+# plannerRoster resource type
+
+Namespace: microsoft.graph
++
+The **plannerRoster** resource represents a collection of users who are collaborating on a [plannerPlan](plannerplan.md). A **plannerRoster** is a simple set of users, where everyone has the same level of permissions and they can be created by everyone, unless disabled by the tenant administrator. A **plannerRoster** can contain one plan.
+
+Deleting a **plannerRoster** will also delete the plan and all tasks in the plan. A **plannerRoster** will also be automatically deleted under the following conditions:
+
+* The **plannerRoster** doesn't contain a plan 24 hours after its creation. Membership information will be completely erased within 30 days of this deletion.
+* The **plannerRoster** doesn't have any users remaining in the membership list because the last user removed themselves. Roster, its plan and all contained tasks will be deleted within 30 days of this operation.
+* The **plannerRoster** doesn't have any users remaining in the membership list because the last user was permanently deleted. Roster, its plan and all contained tasks will be deleted immediately. Deleted users are permanently erased wihtin 30 days of their deletion; however, tenant administrators can also choose to permanently delete users without this delay.
++
+## Methods
+|Method|Return type|Description|
+|:|:|:|
+|[Create plannerRoster](../api/planner-post-rosters.md)|[plannerRoster](../resources/plannerroster.md)|Create a new [plannerRoster](../resources/plannerroster.md) object.|
+|[Get plannerRoster](../api/plannerroster-get.md)|[plannerRoster](../resources/plannerroster.md)|Read the properties and relationships of a [plannerRoster](../resources/plannerroster.md) object.|
+|[Delete plannerRoster](../api/plannerroster-delete.md)|None|Deletes a [plannerRoster](../resources/plannerroster.md) object.|
+|[List members](../api/plannerroster-list-members.md)|[plannerRosterMember](../resources/plannerrostermember.md) collection|Get the plannerRosterMember resources from the members navigation property.|
+|[Create plannerRosterMember](../api/plannerroster-post-members.md)|[plannerRosterMember](../resources/plannerrostermember.md)|Create a new plannerRosterMember object.|
+|[List plans](../api/plannerroster-list-plans.md)|[plannerPlan](../resources/plannerplan.md) collection|Get the plannerPlan resources from the plans navigation property.|
+|[List user's rosterPlans](../api/planneruser-list-rosterplans.md)|[plannerPlan](plannerplan.md) collection| Get the [plannerPlans](plannerplan.md) contained by the [plannerRosters](plannerroster.md) that the user is a member.|
+
+## Properties
+|Property|Type|Description|
+|:|:|:|
+|id|String|Read only. Identifier of the **plannerRoster**. Inherited from [entity](../resources/entity.md)|
+
+## Relationships
+|Relationship|Type|Description|
+|:|:|:|
+|members|[plannerRosterMember](../resources/plannerrostermember.md) collection|Retrieves the members of the **plannerRoster**.|
+|plans|[plannerPlan](../resources/plannerplan.md) collection|Retrieves the plans contained by the **plannerRoster**.|
+
+## JSON representation
+The following is a JSON representation of the resource.
+<!-- {
+ "blockType": "resource",
+ "keyProperty": "id",
+ "@odata.type": "microsoft.graph.plannerRoster",
+ "baseType": "microsoft.graph.entity",
+ "openType": false
+}
+-->
+``` json
+{
+ "@odata.type": "#microsoft.graph.plannerRoster",
+ "id": "String (identifier)"
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/resources/plannerrostermember https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/plannerrostermember.md
+
+ Title: "plannerRosterMember resource type"
+description: "Represents a member of a plannerRoster."
+
+localization_priority: Normal
++
+# plannerRosterMember resource type
+
+Namespace: microsoft.graph
++
+Represents a member of a [plannerRoster](plannerRoster.md).
++
+Inherits from [entity](../resources/entity.md).
+
+## Methods
+|Method|Return type|Description|
+|:|:|:|
+|[List plannerRosterMembers](../api/plannerroster-list-members.md)|[plannerRosterMember](../resources/plannerrostermember.md) collection|Get a list of the [plannerRosterMember](../resources/plannerrostermember.md) objects and their properties.|
+|[Create plannerRosterMember](../api/plannerroster-post-members.md)|[plannerRosterMember](../resources/plannerrostermember.md)|Create a new [plannerRosterMember](../resources/plannerrostermember.md) object.|
+|[Get plannerRosterMember](../api/plannerrostermember-get.md)|[plannerRosterMember](../resources/plannerrostermember.md)|Read the properties and relationships of a [plannerRosterMember](../resources/plannerrostermember.md) object.|
+|[Delete plannerRosterMember](../api/plannerrostermember-delete.md)|None|Deletes a [plannerRosterMember](../resources/plannerrostermember.md) object.|
+
+## Properties
+|Property|Type|Description|
+|:|:|:|
+|id|String|The identifier of the **plannerRosterMember**. Inherited from [entity](../resources/entity.md)|
+|roles|String collection|Additional roles associated with the **PlannerRosterMember**, which determines permissions of the member in the **plannerRoster**. Currently there are no available roles to assign, and every member has full control over the contents of the **plannerRoster**.|
+|tenantId|String|Identifier of the tenant the user belongs to. Currently only the users from the same tenant can be added to a **plannerRoster**. |
+|userId|String|Identifier of the [user](user.md).|
+
+## Relationships
+None.
+
+## JSON representation
+The following is a JSON representation of the resource.
+<!-- {
+ "blockType": "resource",
+ "keyProperty": "id",
+ "@odata.type": "microsoft.graph.plannerRosterMember",
+ "baseType": "microsoft.graph.entity",
+ "openType": false
+}
+-->
+``` json
+{
+ "@odata.type": "#microsoft.graph.plannerRosterMember",
+ "id": "String (identifier)",
+ "userId": "String",
+ "tenantId": "String",
+ "roles": []
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/resources/planneruser https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/planneruser.md
The **plannerUser** resource provides access to Planner resources for a [user](u
|[List tasks](../api/planneruser-list-tasks.md) |[plannerTask](plannertask.md) collection| Get the [plannerTasks](plannertask.md) assigned to the user.| |[List favoritePlans](../api/planneruser-list-favoriteplans.md) |[plannerPlan](plannerplan.md) collection| Get the [plannerPlans](plannerplan.md) marked as favorite by the user.| |[List recentPlans](../api/planneruser-list-recentplans.md) |[plannerPlan](plannerplan.md) collection| Get the [plannerPlans](plannerplan.md) recently viewed by the user.|
+|[List rosterPlans](../api/planneruser-list-rosterplans.md)|[plannerPlan](plannerplan.md) collection| Get the [plannerPlans](plannerplan.md) contained by the [plannerRosters](plannerroster.md) that the user is a member.|
|[Update](../api/planneruser-update.md) | [plannerUser](planneruser.md)| Update a **plannerUser** object. |
The **plannerUser** resource provides access to Planner resources for a [user](u
|tasks|[plannerTask](plannertask.md) collection| Read-only. Nullable. Returns the [plannerTasks](plannertask.md) assigned to the user.| |favoritePlans|[plannerPlan](plannerplan.md) collection| Read-only. Nullable. Returns the [plannerPlans](plannerplan.md) that the user marked as favorites.| |recentPlans|[plannerPlan](plannerplan.md) collection| Read-only. Nullable. Returns the [plannerPlans](plannerplan.md) that have been recently viewed by the user in apps that support recent plans. |
+|rosterPlans|[plannerPlan](../resources/plannerplan.md) collection|Read-only. Nullable. Returns the [plannerPlans](plannerplan.md) contained by the [plannerRosters](plannerroster.md) the user is a member.|
## JSON representation The following is a JSON representation of the resource.
v1.0 https://docs.microsoft.com/en-us/graph/resources/print https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/print.md
The following is a JSON representation of the resource.
"section": "documentation", "tocPath": "", "suppressions": [
- "Error: Resource print has documented navigation properties, but we thought it was a complex type!",
- "Resource print has documented navigation properties, but we thought it was a complex type!"
+ ]
}-->
v1.0 https://docs.microsoft.com/en-us/graph/resources/projectrome-notification https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/projectrome-notification.md
The following is a JSON representation of the resource.
"displayTimeToLive": 1024, "expirationDateTime": "String (timestamp)", "priority": "string",
- "fallbackPolicy": {"@odata.type": "microsoft.graph.fallbackpolicy"},
+ "fallbackPolicy": {"@odata.type": "microsoft.graph.fallbackpolicy"}
} ```
v1.0 https://docs.microsoft.com/en-us/graph/resources/recurrencerange https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/recurrencerange.md
Here is a JSON representation of the resource
"section": "documentation", "tocPath": "", "suppressions": [
- "Warning: /api-reference/bet:\r\n Failed to parse any rows out of table with headers: | type property | Type of recurrence range | Description | Example | Required properties |"
] } -->
v1.0 https://docs.microsoft.com/en-us/graph/resources/serviceprincipal https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/serviceprincipal.md
This resource supports using [delta query](/graph/delta-query-overview) to track
| Relationship | Type |Description| |:|:--|:-|
-|appRoleAssignedTo|[appRoleAssignment](approleassignment.md)|Principals (users, groups, and service principals) that are assigned to this service principal. Read-only.|
-|appRoleAssignments|[appRoleAssignment](approleassignment.md) collection|Applications that this service principal is assigned to. Read-only. Nullable.|
+|appRoleAssignedTo|[appRoleAssignment](approleassignment.md)|App role assignments for this app or service, granted to users, groups, and other service principals.|
+|appRoleAssignments|[appRoleAssignment](approleassignment.md) collection|App role assignment for another app or service, granted to this service principal.|
|claimsMappingPolicies|[claimsMappingPolicy](claimsmappingpolicy.md) collection|The claimsMappingPolicies assigned to this service principal.| |createdObjects|[directoryObject](directoryobject.md) collection|Directory objects created by this service principal. Read-only. Nullable.| |delegatedPermissionClassifications|[delegatedPermissionClassification](delegatedpermissionclassification.md) collection|The permission classifications for delegated permissions exposed by the app that this service principal represents.|
v1.0 https://docs.microsoft.com/en-us/graph/resources/smsauthenticationmethodconfiguration https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/smsauthenticationmethodconfiguration.md
+
+ Title: "smsAuthenticationMethodConfiguration resource type"
+description: "Represents a Text Message authentication methods policy."
+
+localization_priority: Normal
++
+# smsAuthenticationMethodConfiguration resource type
+Namespace: microsoft.graph
++
+Represents a Text Message authentication methods policy. Authentication methods policies define configuration settings and users or groups that are enabled to use the authentication method.
+
+## Methods
+|Method|Return type|Description|
+|:|:|:|
+|[Get](../api/smsauthenticationmethodconfiguration-get.md)|[smsAuthenticationMethodConfiguration](../resources/smsauthenticationmethodconfiguration.md)|Read the properties and relationships of a smsAuthenticationMethodConfiguration object.|
+|[Update](../api/smsauthenticationmethodconfiguration-update.md)|[smsAuthenticationMethodConfiguration](../resources/smsauthenticationmethodconfiguration.md)|Update the properties of a smsAuthenticationMethodConfiguration object.|
+|[Delete](../api/smsauthenticationmethodconfiguration-delete.md)|None|Reverts the smsAuthenticationMethodConfiguration object to its default configuration.|
+
+## Properties
+|Property|Type|Description|
+|:|:|:|
+|id|String|The authentication method policy identifier.|
+|state|authenticationMethodState|Possible values are: `enabled`, `disabled`.|
+
+## Relationships
+|Relationship|Type|Description|
+|:|:|:|
+|includeTargets|[smsAuthenticationMethodTarget](../resources/smsauthenticationmethodtarget.md) collection|A collection of users or groups who are enabled to use the authentication method.|
+
+## JSON representation
+The following is a JSON representation of the resource.
+<!-- {
+ "blockType": "resource",
+ "keyProperty": "id",
+ "@odata.type": "microsoft.graph.smsAuthenticationMethodConfiguration",
+ "baseType": "microsoft.graph.authenticationMethodConfiguration",
+ "openType": false
+}
+-->
+``` json
+{
+ "@odata.type": "#microsoft.graph.smsAuthenticationMethodConfiguration",
+ "id": "String (identifier)",
+ "state": "String"
+}
+```
+
v1.0 https://docs.microsoft.com/en-us/graph/resources/smsauthenticationmethodtarget https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/smsauthenticationmethodtarget.md
+
+ Title: "smsAuthenticationMethodTarget resource type"
+description: "A collection of users or groups enabled to use Text Message authentication methods policy."
+
+localization_priority: Normal
++
+# smsAuthenticationMethodTarget resource type
+Namespace: microsoft.graph
++
+A collection of users or groups enabled to use [Text Message authentication methods policy](../resources/smsAuthenticationMethodConfiguration.md) in Azure AD.
+
+## Properties
+|Property|Type|Description|
+|:|:|:|
+|id|String|Object ID of an Azure AD user or group.|
+|isRegistrationRequired|Boolean|Determines whether the user is enforced to register the authentication method. **Not supported**.|
+|isUsableForSignIn|Boolean|Determines if the users or groups can use this authentication method to sign in to Azure AD. The value is always `true`.|
+|targetType|authenticationMethodTargetType| Possible values are: `user`, `group`.|
+
+## Relationships
+None.
+
+## JSON representation
+The following is a JSON representation of the resource.
+<!-- {
+ "blockType": "resource",
+ "keyProperty": "id",
+ "@odata.type": "microsoft.graph.smsAuthenticationMethodTarget",
+ "baseType": "microsoft.graph.authenticationMethodTarget",
+ "openType": false
+}
+-->
+``` json
+{
+ "@odata.type": "#microsoft.graph.smsAuthenticationMethodTarget",
+ "targetType": "String",
+ "id": "String (identifier)",
+ "isRegistrationRequired": "Boolean",
+ "isUsableForSignIn": "Boolean"
+}
+```
v1.0 https://docs.microsoft.com/en-us/graph/resources/statusdetails https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/statusdetails.md
Namespace: microsoft.graph
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
-Describes the status of the provisioning event and the associated errors. It is inherited from [statusBase](/graph/api/resources/statusbase?view=graph-rest-beta) and only used when status is set to 'failure'.
+Describes the status of the provisioning event and the associated errors. It is inherited from [statusBase](/graph/api/resources/statusbase) and only used when status is set to `failure`.
## Properties
Describes the status of the provisioning event and the associated errors. It is
|:-|:|:| |status|String|Possible values are: `success`, `failure`, `skipped`, `unknownFutureValue`. Inherited from statusBase.| |additionalDetails|String|Additional details in case of error.|
-|errorCategory|String|Categorizes the error code.|
-|errorCode|String|Unique error code if any occurred.|
+|errorCategory|String|Categorizes the error code. Possible values are `Failure`, `NonServiceFailure`, `Success`.|
+|errorCode|String|Unique error code if any occurred. [Learn more](https://docs.microsoft.com/azure/active-directory/reports-monitoring/concept-provisioning-logs#error-codes)|
|reason|String|Summarizes the status and describes why the status happened.| |recommendedAction|String|Provides the resolution for the corresponding error.|
v1.0 https://docs.microsoft.com/en-us/graph/resources/synchronization-overview https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/synchronization-overview.md
GET https://graph.microsoft.com/beta/servicePrincipals?$select=id,appId,displayN
<!-- { "blockType": "ignored" } --> ```http HTTP/1.1 200 OK+ {
- "value": [
- {
- "id": "bc0dc311-87df-48ac-91b1-259bd2c3a31c",
- "appId": "f7808c5e-cb57-4e37-8094-406d302c0f8d",
- "displayName": "Salesforce"
- },
- {
- "id": "d813d7d7-0f41-4edc-b284-d0dfaf399d15",
- "appId": "219561ee-1480-4c67-9aa6-63d861fae3ef",
- "displayName": "salesforce 3"
- }
- ]
+ "value":[
+ {
+ "id":"bc0dc311-87df-48ac-91b1-259bd2c3a31c",
+ "appId":"f7808c5e-cb57-4e37-8094-406d302c0f8d",
+ "displayName":"Salesforce"
+ },
+ {
+ "id":"d813d7d7-0f41-4edc-b284-d0dfaf399d15",
+ "appId":"219561ee-1480-4c67-9aa6-63d861fae3ef",
+ "displayName":"salesforce 3"
+ }
+ ]
} ```
GET https://graph.microsoft.com/beta/servicePrincipals?$select=id,appId,displayN
<!-- { "blockType": "ignored" } --> ```http HTTP/1.1 200 OK+ { "value": [ {
GET https://graph.microsoft.com/beta/servicePrincipals/60443998-8cf7-4e61-b05c-a
<!-- { "blockType": "ignored" } --> ```http HTTP/1.1 200 OK+ { "value": [ {
GET https://graph.microsoft.com/beta/servicePrincipals/60443998-8cf7-4e61-b05c-a
**Response** <!-- { "blockType": "ignored" } --> ```http
- HTTP/1.1 200 OK
- {
- "id": "SfSandboxOutDelta.e4bbf44533ea4eabb17027f3a92e92aa",
- "templateId": "SfSandboxOutDelta",
- "schedule": {
- "expiration": null,
- "interval": "PT20M",
- "state": "Active"
- },
- "status": {}
- }
+HTTP/1.1 200 OK
+
+{
+ "id": "SfSandboxOutDelta.e4bbf44533ea4eabb17027f3a92e92aa",
+ "templateId": "SfSandboxOutDelta",
+ "schedule": {
+ "expiration": null,
+ "interval": "PT20M",
+ "state": "Active"
+ },
+ "status": {}
+}
``` ### Get synchronization schema
GET https://graph.microsoft.com/beta/servicePrincipals/{id}/synchronization/jobs
<!-- { "blockType": "ignored" } --> ```http HTTP/1.1 200 OK+ { "directories": [], "synchronizationRules": []
v1.0 https://docs.microsoft.com/en-us/graph/resources/teamdiscoverysettings https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/teamdiscoverysettings.md
The following is a JSON representation of the resource.
"section": "documentation", "tocPath": "", "suppressions": [
- "Error: /api-reference/bet)\r\n at ApiDoctor.Validation.DocFile.get_LinkDestinations()\r\n at ApiDoctor.Validation.DocSet.ValidateLinks(Boolean includeWarnings, String[] relativePathForFiles, IssueLogger issues, Boolean requireFilenameCaseMatch, Boolean printOrphanedFiles)"
] }-->
v1.0 https://docs.microsoft.com/en-us/graph/resources/temporaryaccesspassauthenticationmethod https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/temporaryaccesspassauthenticationmethod.md
+
+ Title: "temporaryAccessPassAuthenticationMethod resource type"
+description: "Represents a Temporary Access Pass registered to a user."
++
+localization_priority: Normal
++
+# temporaryAccessPassAuthenticationMethod resource type
+
+Namespace: microsoft.graph
++
+Represents a Temporaty Access Pass registered to a user. A Temporary Access Pass is a time-limited passcode that serves as a strong credential and allows onboarding of passwordless credentials.
+
+## Methods
+|Method|Return type|Description|
+|:|:|:|
+|[List](../api/temporaryaccesspassauthenticationmethod-list.md)|[temporaryAccessPassAuthenticationMethod](../resources/temporaryaccesspassauthenticationmethod.md) collection|Retrieve a list of a user's **temporaryAccessPassAuthenticationMethod** objects and their properties. Users can only have one Temporary Access Pass authentication method.|
+|[Create](../api/temporaryaccesspassauthenticationmethod-post.md)|[temporaryAccessPassAuthenticationMethod](../resources/temporaryaccesspassauthenticationmethod.md)|Create a user's **temporaryAccessPassAuthenticationMethod** object.|
+|[Get](../api/temporaryaccesspassauthenticationmethod-get.md)|[temporaryAccessPassAuthenticationMethod](../resources/temporaryaccesspassauthenticationmethod.md)|Retrieve the properties of the user's **temporaryAccessPassAuthenticationMethod** object.||
+|[Delete](../api/temporaryaccesspassauthenticationmethod-delete.md)|None|Delete a user's **temporaryAccessPassAuthenticationMethod** object.|
+
+## Properties
+|Property|Type|Description|
+|:|:|:|
+|id|String|The identifier of the Temporary Access Pass registered to this user.|
+|temporaryAccessPass|String|The temporaryAccessPass used to authenticate. Returned only on creation of a new temporaryAccessPass; returned as NULL with GET.|
+|createdDateTime|DateTimeOffset|The date and time when the temporaryAccessPass was created.|
+|startDateTime|DateTimeOffset|The date and time when the temporaryAccessPass becomes available to use.|
+|lifetimeInMinutes|Int32|The lifetime of the temporaryAccessPass in minutes starting at startDateTime. Minimum 10, Maximum 43200 (equivalent to 30 days).|
+|isUsableOnce|Boolean|Determines whether the pass is limited to a one time use. If `true`, the pass can be used once; if `false`, the pass can be used multiple times within the temporaryAccessPass lifetime.|
+|isUsable|Boolean|The state of the authentication method that indicates whether it's currently usable by the user.|
+|methodUsabilityReason|String|Details about usability state (isUsable). Reasons can include: `enabledByPolicy`, `disabledByPolicy`, `expired`, `notYetValid`, `oneTimeUsed`.|
++
+## Relationships
+None.
+
+## JSON representation
+The following is a JSON representation of the resource.
+<!-- {
+ "blockType": "resource",
+ "keyProperty": "id",
+ "@odata.type": "microsoft.graph.temporaryAccessPassAuthenticationMethod",
+ "baseType": "microsoft.graph.authenticationMethod",
+ "openType": false
+}
+-->
+``` json
+{
+ "@odata.type": "#microsoft.graph.temporaryAccessPassAuthenticationMethod",
+ "id": "String (identifier)",
+ "temporaryAccessPass": "String",
+ "createdDateTime": "String (timestamp)",
+ "startDateTime": "String (timestamp)",
+ "lifetimeInMinutes": "Integer",
+ "isUsableOnce": "Boolean",
+ "isUsable": "Boolean",
+ "methodUsabilityReason": "String"
+}
+```
v1.0 https://docs.microsoft.com/en-us/graph/resources/temporaryaccesspassauthenticationmethodconfiguration https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/temporaryaccesspassauthenticationmethodconfiguration.md
+
+ Title: "temporaryAccessPassAuthenticationMethodConfiguration resource type"
+description: "Represents a Temporary Access Pass authentication methods policy."
++
+localization_priority: Normal
++
+# temporaryAccessPassAuthenticationMethodConfiguration resource type
+Namespace: microsoft.graph
++
+Represents a Temporary Access Pass authentication methods policy. The Authentication methods policy defines the configuration settings and users or groups who are enabled to use the authentication method.
+
+## Methods
+|Method|Return type|Description|
+|:|:|:|
+|[Get](../api/temporaryaccesspassauthenticationmethodconfiguration-get.md)|[temporaryaccesspassauthenticationmethodconfiguration](../resources/temporaryaccesspassauthenticationmethodconfiguration.md)|Read the properties and relationships of a **temporaryaccesspassauthenticationmethodconfiguration** object.|
+|[Update](../api/temporaryaccesspassauthenticationmethodconfiguration-update.md)|[temporaryaccesspassauthenticationmethodconfiguration](../resources/temporaryaccesspassauthenticationmethodconfiguration.md)|Update the properties of a **temporaryaccesspassauthenticationmethodconfiguration** object.|
+|[Delete](../api/temporaryaccesspassauthenticationmethodconfiguration-delete.md)|None|Reverts the **temporaryaccesspassauthenticationmethodconfiguration** object to its default configuration.|
+
+## Properties
+|Property|Type|Description|
+|:|:|:|
+|id|String|The authentication method policy identifier.|
+|minimumLifetimeInMinutes|Int|Minimum lifetime in minutes for any temporaryAccessPass created in the tenant. Value can be between 10 and 43200 minutes (equivalent to 30 days).|
+|maximumLifetimeInMinutes|Int|Maximum lifetime in minutes for any temporaryAccessPass created in the tenant. Value can be between 10 and 43200 minutes (equivalent to 30 days).|
+|defaultLifetimeInMinutes|int|Default lifetime, in minutes, for a temporaryAccessPass. Value can be between the minimumLifetimeInMinutes and maximumLifetimeInMinutes.|
+|defaultLength|int|Default length, in characters, of a temporaryAccessPass, between 8 and 48 characters.|
+|isUsableOnce|Boolean |If `true`, all the passes in the tenant will be restricted to one-time use. If `false`, passes in the tenant can be created to be either one-time use or multiple time use.|
+|state|authenticationMethodState|Possible values are: `enabled`, `disabled`.|
+
+## Relationships
+|Relationship|Type|Description|
+|:|:|:|
+|includeTargets|[authenticationMethodTarget](../resources/authenticationmethodtarget.md) collection|A collection of users or groups who are enabled to use the authentication method.|
+
+## JSON representation
+The following is a JSON representation of the resource.
+
+``` json
+{
+ "@odata.type": "#microsoft.authMethodPolicy.temporaryAccessPassAuthenticationMethodConfiguration",
+ "id": "String (identifier)",
+ "state": "String",
+ "defaultLifetimeInMinutes": "Integer",
+ "defaultLength": "Integer",
+ "minimumLifetimeInMinutes": "Integer",
+ "maximumLifetimeInMinutes": "Integer",
+ "isUsableOnce": "Boolean"
+},
+"includeTargets": [ { "@odata.type": "microsoft.graph.authenticationMethodTarget" } ]
+}
+```
v1.0 https://docs.microsoft.com/en-us/graph/resources/termstore-localizedname https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/termstore-localizedname.md
Title: "localizedName resource type" description: "Represents the localized name used in the term store, which identifies the name in the localized language." - localization_priority: Normal ms.prod: "sharepoint-taxonomy" doc_type: resourcePageType
v1.0 https://docs.microsoft.com/en-us/graph/resources/user https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/user.md
This resource supports:
| ageGroup | [ageGroup](#agegroup-values) | Sets the age group of the user. Allowed values: `null`, `minor`, `notAdult` and `adult`. Refer to the [legal age group property definitions](#legal-age-group-property-definitions) for further information. <br><br>Returned only on `$select`. | | assignedLicenses | [assignedLicense](assignedlicense.md) collection | The licenses that are assigned to the user. <br><br>Returned only on `$select`. Not nullable. | | assignedPlans | [assignedPlan](assignedplan.md) collection | The plans that are assigned to the user. <br><br>Returned only on `$select`. Read-only. Not nullable. |
-| birthday | DateTimeOffset | The birthday of the user. 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 would look like this: `'2014-01-01T00:00:00Z'` <br><br>Returned only on `$select`. |
+| birthday | DateTimeOffset | The birthday of the user. 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'` <br><br>Returned only on `$select`. |
| businessPhones | String collection | The telephone numbers for the user. Only one number can be set for this property. <br><br>Returned by default. Read-only for users synced from on-premises directory. | | city | String | The city in which the user is located. <br><br>Returned only on `$select`. Supports `$filter`. | | companyName | String | The company name which the user is associated. This property can be useful for describing the company that an external user comes from. The maximum length of the company name is 64 chararcters.<br><br>Returned only on `$select`. |
This resource supports:
| externalUserStateChangeDateTime | String | Shows the timestamp for the latest change to the externalUserState property. <br><br>Returned only on $select. | | faxNumber | String | The fax number of the user. <br><br>Returned only on `$select`. | | givenName | String | The given name (first name) of the user. <br><br>Returned by default. Supports `$filter`.|
-| hireDate | DateTimeOffset | The hire date of the user. 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 would look like this: `'2014-01-01T00:00:00Z'`. <br><br>Returned only on `$select`. <br><br> **Note:** This property is specific to SharePoint Online. We recommend using the native **employeeHireDate** property to set and update hire date values using Microsoft Graph APIs. |
+| hireDate | DateTimeOffset | The hire date of the user. 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'`. <br><br>Returned only on `$select`. <br><br> **Note:** This property is specific to SharePoint Online. We recommend using the native **employeeHireDate** property to set and update hire date values using Microsoft Graph APIs. |
| id | String | The unique identifier for the user. Should be treated as an opaque identifier. Inherited from [directoryObject](directoryobject.md). <br><br>Returned by default. Not nullable. Read-only.| | identities | [objectIdentity](objectIdentity.md) collection | Represents the identities that can be used to sign in to this user account. An identity can be provided by Microsoft (also known as a local account), by organizations, or by social identity providers such as Facebook, Google, and Microsoft, and tied to a user account. May contain multiple items with the same **signInType** value. <br><br>Returned only on `$select`. Supports `$filter`. | | imAddresses | String collection | The instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user. Read-only.|
This resource supports:
| interests | String collection | A list for the user to describe their interests. <br><br>Returned only on `$select`. | | isResourceAccount | Boolean | Do not use ΓÇô reserved for future use. | | jobTitle | String | The user's job title. <br><br>Returned by default. Supports `$filter`.|
-| lastPasswordChangeDateTime | DateTimeOffset | The time when this Azure AD user last changed their password. 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 would look like this: `'2014-01-01T00:00:00Z'` <br><br>Returned only on `$select`. |
+| lastPasswordChangeDateTime | DateTimeOffset | The time when this Azure AD user last changed their password. 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'` <br><br>Returned only on `$select`. Read-only. |
| legalAgeGroupClassification | [legalAgeGroupClassification](#legalagegroupclassification-values) | Used by enterprise applications to determine the legal age group of the user. This property is read-only and calculated based on **ageGroup** and **consentProvidedForMinor** properties. Allowed values: `null`, `minorWithOutParentalConsent`, `minorWithParentalConsent`, `minorNoParentalConsentRequired`, `notAdult` and `adult`. Refer to the [legal age group property definitions](#legal-age-group-property-definitions) for further information. <br><br>Returned only on `$select`. | | licenseAssignmentStates | [licenseAssignmentState](licenseassignmentstate.md) collection | State of license assignments for this user. <br><br>Returned only on `$select`. Read-only. | | mail | String | The SMTP address for the user, for example, "jeff@contoso.onmicrosoft.com". <br><br>Returned by default. Supports `$filter` and `endsWith`. |
This resource supports:
| onPremisesDomainName | String | Contains the on-premises `domainFQDN`, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. <br><br>Returned only on `$select`. Read-only. | | onPremisesExtensionAttributes | [onPremisesExtensionAttributes](onpremisesextensionattributes.md) | Contains extensionAttributes 1-15 for the user. Note that the individual extension attributes are neither selectable nor filterable. For an `onPremisesSyncEnabled` user, the source of authority for this set of properties is the on-premises and is read-only and is read-only. For a cloud-only user (where `onPremisesSyncEnabled` is false), these properties may be set during creation or update. These extension attributes are also known as Exchange custom attributes 1-15. <br><br>Returned only on `$select`. | | onPremisesImmutableId | String | This property is used to associate an on-premises Active Directory user account to their Azure AD user object. This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user's `userPrincipalName` (UPN) property. **Important:** The **$** and **\_** characters cannot be used when specifying this property. <br><br>Returned only on `$select`. Supports `$filter`. |
-| onPremisesLastSyncDateTime | DateTimeOffset | Indicates the last time at which the object was synced with the on-premises directory; for example: "2013-02-16T03:04:54Z". 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 would look like this: `'2014-01-01T00:00:00Z'`. <br><br>Returned only on `$select`. Read-only. |
+| onPremisesLastSyncDateTime | DateTimeOffset | Indicates the last time at which the object was synced with the on-premises directory; for example: "2013-02-16T03:04:54Z". 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'`. <br><br>Returned only on `$select`. Read-only. |
| onPremisesProvisioningErrors | [onPremisesProvisioningError](onpremisesprovisioningerror.md) collection | Errors when using Microsoft synchronization product during provisioning. <br><br>Returned only on `$select`. | | onPremisesSamAccountName | String | Contains the on-premises `sAMAccountName` synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. <br><br>Returned only on `$select`. Read-only. | | onPremisesSecurityIdentifier | String | Contains the on-premises security identifier (SID) for the user that was synchronized from on-premises to the cloud. <br><br>Returned only on `$select`. Read-only. |
v1.0 https://docs.microsoft.com/en-us/graph/resources/userflowapiconnectorconfiguration https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/beta/resources/userflowapiconnectorconfiguration.md
The following is a JSON representation of the resource.
"section": "documentation", "tocPath": "", "suppressions": [
- "Error: Resource userFlowApiConnectorConfiguration has documented navigation properties, but we thought it was a complex type!"
] }-->
v1.0 https://docs.microsoft.com/en-us/graph/api/application-addkey https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/application-addkey.md
The following is an example of the response.
<!-- { "blockType": "response",
- "truncated": true
+ "truncated": true,
+ "@odata.type": "microsoft.graph.keyCredential"
} --> ```http
Content-Type: application/json
"section": "documentation", "tocPath": "", "suppressions": [
- "Error: application_addkey:\r\n Resource type was null or missing, so we assume there is no response to validate."
- ]
+ ]
}-->
v1.0 https://docs.microsoft.com/en-us/graph/api/application-post-calls https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/application-post-calls.md
Content-Type: application/json
} ```
+### Example 7: Create peer-to-peer PSTN call with service hosted media
+
+> **Note:** This call requires the Calls.Initiate.All permission.
+
+This call requires an application instance with a PSTN number assigned.
+
+#### Step 1: Create application instance
+Using tenant admin credentials, call the following cmdlets on the tenant remote PowerShell to create the application instance. For more information, see [New-CsOnlineApplicationInstance](/powershell/module/skype/new-csonlineapplicationinstance?view=skype-ps&preserve-view=true) and [Sync-CsOnlineApplicationInstance](/powershell/module/skype/sync-csonlineapplicationinstance?view=skype-ps&preserve-view=true).
+```
+PS C:\> New-CsOnlineApplicationInstance -UserPrincipalName <UPN> -DisplayName <DisplayName> -ApplicationId <AppId>
+PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId>
+```
+#### Step 2: Assign Microsoft 365 licenses
+1. Use tenant admin credentials to sign in to https://admin.microsoft.com/ and go to the **Users -> Active users** tab.
+2. Select the application instance, assign **Microsoft 365 Domestic and International Calling Plan** and **Microsoft 365 Phone System - Virtual User** licenses, and click **Save changes**. If the required licenses are not available in the tenant, you can get them from the **Billing -> Purchase services** tab.
+#### Step 3: Acquire PSTN number
+1. Use tenant admin credentials to sign in to https://admin.teams.microsoft.com/ and click the **Legacy portal** tab on the left panel.
+2. In the new page, go to the **voice -> phone numbers** tab.
+3. Click the **+** button, select **New Service Numbers**, and go to the **Add new service numbers** page.
+4. Select **Country/Region**, **State/Region**, **City**, input **Quantity**, and click **add** to search. Click **acquire numbers**. The newly acquired number will show on the **phone numbers** tab.
+#### Step 4: Assign PSTN number to application instance
+With tenant admin credentials, call the following cmdlets on the tenant remote PowerShell to assign the PSTN number to the application instance. For more information, see [Set-CsOnlineVoiceApplicationInstance](https://docs.microsoft.com/powershell/module/skype/set-csonlinevoiceapplicationinstance?view=skype-ps&preserve-view=true) and [Sync-CsOnlineApplicationInstance](https://docs.microsoft.com/powershell/module/skype/sync-csonlineapplicationinstance?view=skype-ps&preserve-view=true).
+```
+PS C:\> Set-CsOnlineVoiceApplicationInstance -Identity <UPN> -TelephoneNumber <TelephoneNumber>
+PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId>
+```
+
+#### Request
+The following example shows the request to make a peer-to-peer call between the bot and a PSTN number. In this example, the media is hosted by the service. The values of authorization token, callback URL, application ID, application name, user ID, user name, and tenant ID must be replaced with actual values to make the example work.
+
+<!-- {
+ "blockType": "request",
+ "name": "create-call-service-hosted-media",
+ "@odata.type": "microsoft.graph.call"
+}-->
+```http
+POST https://graph.microsoft.com/v1.0/communications/calls
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.call",
+ "callbackUri": "https://bot.contoso.com/callback",
+ "source": {
+ "@odata.type": "#microsoft.graph.participantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "applicationInstance": {
+ "@odata.type": "#microsoft.graph.identity",
+ "displayName": "Calling Bot",
+ "id": "3d913abb-aec0-4964-8fa6-3c6850c4f278"
+ },
+ },
+ "countryCode": null,
+ "endpointType": null,
+ "region": null,
+ "languageId": null
+ },
+ "targets": [
+ {
+ "@odata.type": "#microsoft.graph.invitationParticipantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "phone": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "+12345678901"
+ }
+ }
+ }
+ ],
+ "requestedModalities": [
+ "audio"
+ ],
+ "mediaConfig": {
+ "@odata.type": "#microsoft.graph.serviceHostedMediaConfig"
+ }
+}
+```
+
+#### Response
+
+> **Note:** The response object shown here might be shortened for readability.
+
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.call"
+} -->
+```http
+HTTP/1.1 201 Created
+Location: https://graph.microsoft.com/v1.0/communications/calls/2e1a0b00-2db4-4022-9570-243709c565ab
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.call",
+ "state": "establishing",
+ "direction": "outgoing",
+ "callbackUri": "https://bot.contoso.com/callback",
+ "callChainId": "d8217646-3110-40b1-bae6-e9ac6c3a9f74",
+ "callRoutes": [],
+ "source": {
+ "@odata.type": "#microsoft.graph.participantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "applicationInstance": {
+ "@odata.type": "#microsoft.graph.identity",
+ "displayName": "Calling Bot",
+ "id": "3d913abb-aec0-4964-8fa6-3c6850c4f278"
+ },
+ },
+ "countryCode": null,
+ "endpointType": null,
+ "region": null,
+ "languageId": null
+ },
+ "targets": [
+ {
+ "@odata.type": "#microsoft.graph.invitationParticipantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "phone": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "+12345678901"
+ }
+ },
+ "endpointType": null,
+ "region": null,
+ "replacesCallId": null,
+ "languageId": null
+ }
+ ],
+ "requestedModalities": [
+ "audio"
+ ],
+ "activeModalities": [],
+ "mediaConfig": {
+ "@odata.type": "#microsoft.graph.serviceHostedMediaConfig",
+ "preFetchMedia": [
+ {
+ "uri": "https://cdn.contoso.com/beep.wav",
+ "resourceId": "f8971b04-b53e-418c-9222-c82ce681a582"
+ },
+ {
+ "uri": "https://cdn.contoso.com/cool.wav",
+ "resourceId": "86dc814b-c172-4428-9112-60f8ecae1edb"
+ }
+ ],
+ },
+ "routingPolicies": [],
+ "tenantId": "aa67bd4c-8475-432d-bd41-39f255720e0a",
+ "myParticipantId": "499ff390-7a72-40e8-83a0-8fac6295ae7e",
+ "id": "2e1a0b00-2db4-4022-9570-243709c565ab",
+ "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#app/calls/$entity",
+ "subject": null,
+ "terminationReason": null,
+ "ringingTimeoutInSeconds": null,
+ "mediaState": null,
+ "resultInfo": null,
+ "answeredBy": null,
+ "chatInfo": null,
+ "meetingInfo": null,
+ "transcription": null,
+ "meetingCapability": null,
+ "toneInfo": null
+}
+```
+
+### Example 8: Create peer-to-peer PSTN call with application hosted media
+
+> **Note**: This example requires Calls.Initiate.All and Calls.AccessMedia.All permissions.
+
+This call needs application instance with PSTN number assigned, as described in Example 7.
+
+#### Request
+The following example shows a request to make a peer-to-peer call between the bot and a PSTN number. In this example, the media is hosted locally by the application. Replace the values for authorization token, callback URL, application ID, application name, user ID, user name, and tenant ID to make the example work.
+
+<!-- {
+ "blockType": "request",
+ "name": "create-call-service-hosted-media",
+ "@odata.type": "microsoft.graph.call"
+}-->
+```http
+POST https://graph.microsoft.com/v1.0/communications/calls
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.call",
+ "callbackUri": "https://bot.contoso.com/callback",
+ "source": {
+ "@odata.type": "#microsoft.graph.participantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "applicationInstance": {
+ "@odata.type": "#microsoft.graph.identity",
+ "displayName": "Calling Bot",
+ "id": "3d913abb-aec0-4964-8fa6-3c6850c4f278"
+ },
+ },
+ "countryCode": null,
+ "endpointType": null,
+ "region": null,
+ "languageId": null
+ },
+ "targets": [
+ {
+ "@odata.type": "#microsoft.graph.invitationParticipantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "phone": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "+12345678901"
+ }
+ }
+ }
+ ],
+ "requestedModalities": [
+ "audio"
+ ],
+ "mediaConfig": {
+ "@odata.type": "#microsoft.graph.appHostedMediaConfig",
+ "blob": "<Media Session Configuration>"
+ }
+}
+```
+
+#### Response
+
+> **Note:** The response object shown here might be shortened for readability.
+
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.call"
+} -->
+```http
+HTTP/1.1 201 Created
+Location: https://graph.microsoft.com/v1.0/communications/calls/2e1a0b00-2db4-4022-9570-243709c565ab
+Content-Type: application/json
+
+{
+ "@odata.type": "#microsoft.graph.call",
+ "state": "establishing",
+ "direction": "outgoing",
+ "callbackUri": "https://bot.contoso.com/callback",
+ "callChainId": "d8217646-3110-40b1-bae6-e9ac6c3a9f74",
+ "callRoutes": [],
+ "source": {
+ "@odata.type": "#microsoft.graph.participantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "applicationInstance": {
+ "@odata.type": "#microsoft.graph.identity",
+ "displayName": "Calling Bot",
+ "id": "3d913abb-aec0-4964-8fa6-3c6850c4f278"
+ },
+ },
+ "countryCode": null,
+ "endpointType": null,
+ "region": null,
+ "languageId": null
+ },
+ "targets": [
+ {
+ "@odata.type": "#microsoft.graph.invitationParticipantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "phone": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "+12345678901"
+ }
+ },
+ "endpointType": null,
+ "region": null,
+ "replacesCallId": null,
+ "languageId": null
+ }
+ ],
+ "requestedModalities": [
+ "audio"
+ ],
+ "activeModalities": [],
+ "mediaConfig": {
+ "@odata.type": "#microsoft.graph.appHostedMediaConfig",
+ "blob": "<Media Session Configuration>",
+ },
+ "routingPolicies": [],
+ "tenantId": "aa67bd4c-8475-432d-bd41-39f255720e0a",
+ "myParticipantId": "499ff390-7a72-40e8-83a0-8fac6295ae7e",
+ "id": "2e1a0b00-2db4-4022-9570-243709c565ab",
+ "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#app/calls/$entity",
+ "subject": null,
+ "terminationReason": null,
+ "ringingTimeoutInSeconds": null,
+ "mediaState": null,
+ "resultInfo": null,
+ "answeredBy": null,
+ "chatInfo": null,
+ "meetingInfo": null,
+ "transcription": null,
+ "meetingCapability": null,
+ "toneInfo": null
+}
+```
+ <!-- uuid: 8fcb5dbc-d5aa-4681-8e31-b001d5168d79 2015-10-25 14:57:30 UTC --> <!--
v1.0 https://docs.microsoft.com/en-us/graph/api/application-post-onlinemeetings https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/application-post-onlinemeetings.md
One of the following permissions is required to call this API. To learn more, in
|:|:--| | Delegated (work or school account) | OnlineMeetings.ReadWrite | | Delegated (personal Microsoft account) | Not Supported |
-| Application | Not Supported |
+| Application | OnlineMeetings.ReadWrite.All* |
+
+> [!IMPORTANT]
+> \* Administrators must create an [application access policy](/graph/cloud-communication-online-meeting-application-access-policy) and grant it to a user, authorizing the app configured in the policy to create an online meeting on behalf of that user (user ID specified in the request path).
## HTTP request+
+Request when using a delegated token:
<!-- { "blockType": "ignored" } --> ```http POST /me/onlineMeetings ```
+Request when using an application token:
+<!-- { "blockType": "ignored" } -->
+```http
+POST /users/{userId}/onlineMeetings
+```
+
+> **Note:** `userId` is the object ID of a user in [Azure user management portal](https://portal.azure.com/#blade/Microsoft_AAD_IAM/UsersManagementMenuBlade). See more details in [application access policy](/graph/cloud-communication-online-meeting-application-access-policy).
+ ## Request headers | Name | Description | |:--|:--|
Content-Type: application/json
"creationDateTime": "2019-07-11T02:17:17.6491364Z", "startDateTime": "2019-07-11T02:17:17.6491364Z", "endDateTime": "2019-07-11T02:47:17.651138Z",
- "id": "550fae72-d251-43ec-868c-373732c2704f_19:meeting_M2IzYzczNTItYmY3OC00MDlmLWJjMzUtYmFiMjNlOTY4MGEz@thread.skype",
+ "id": "MSpkYzE3Njc0Yy04MWQ5LTRhZGItYmZiMi04ZdFpHRTNaR1F6WGhyZWFkLnYy",
"joinWebUrl": "https://teams.microsoft.com/l/meetup-join/19%3ameeting_M2IzYzczNTItYmY3OC00MDlmLWJjMzUtYmFiMjNlOTY4MGEz%40thread.skype/0?context=%7b%22Tid%22%3a%2272f988bf-86f1-41af-91ab-2d7cd011db47%22%2c%22Oid%22%3a%22550fae72-d251-43ec-868c-373732c2704f%22%7d", "participants": { "organizer": {
v1.0 https://docs.microsoft.com/en-us/graph/api/attachment-get https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/attachment-get.md
Read the properties, relationships, or raw contents of an attachment that is att
An attachment can be one of the following types:
-* A file. Programmatically, this is a [fileAttachment](../resources/fileattachment.md) resource.
-* An Outlook item (contact, event or message). Programmatically, an item attachment is an [itemAttachment](../resources/itemattachment.md) resource. You can use `$expand` to further get the properties of that item. See an [example](#request-2) below.
-* A link to a file stored in the cloud. Programmatically, this is a [referenceAttachment](../resources/referenceattachment.md) resource.
+* A file. Programmatically, this is a [fileAttachment](../resources/fileattachment.md) resource. See [example 1](#example-1-get-the-properties-of-a-file-attachment).
+* An Outlook item (contact, event or message). Programmatically, an item attachment is an [itemAttachment](../resources/itemattachment.md) resource. You can use `$expand` to further get the properties of that item, including any nested attachments up to 30 levels. See [example 3](#example-3-expand-and-get-the-properties-of-the-item-attached-to-a-message) and [example 4](#example-4-expand-and-get-the-properties-of-an-item-attached-to-a-message-including-any-attachment-to-the-item).
+* A link to a file stored in the cloud. Programmatically, this is a [referenceAttachment](../resources/referenceattachment.md) resource. See [example 5](#example-5-get-the-properties-of-a-reference-attachment).
All these types of attachments are derived from the [attachment](../resources/attachment.md) resource. ### Get the raw contents of a file or item attachment You can append the path segment `/$value` to get the raw contents of a file or item attachment.
-For a file attachment, the content type is based on its original content type. See an [example](#example-5-get-the-raw-contents-of-a-file-attachment-on-a-message) below.
+For a file attachment, the content type is based on its original content type. See [example 6](#example-6-get-the-raw-contents-of-a-file-attachment-on-a-message).
For an item attachment that is a [contact](../resources/contact.md), [event](../resources/event.md), or [message](../resources/message.md), the raw contents returned is in MIME format. | Item attachment type | Raw contents returned | |:--|:-|
-| **contact** | [vCard](http://www.faqs.org/rfcs/rfc2426.html) MIME format. See [example](#example-6-get-the-mime-raw-contents-of-a-contact-attachment-on-a-message). |
-| **event** | iCal MIME format. See [example](#example-7-get-the-mime-raw-contents-of-an-event-attachment-on-a-message). |
-| **message** | MIME format. See [example](#example-8-get-the-mime-raw-contents-of-a-meeting-invitation-item-attachment-on-a-message). |
+| **contact** | [vCard](http://www.faqs.org/rfcs/rfc2426.html) MIME format. See [example](#example-7-get-the-mime-raw-contents-of-a-contact-attachment-on-a-message). |
+| **event** | iCal MIME format. See [example](#example-8-get-the-mime-raw-contents-of-an-event-attachment-on-a-message). |
+| **message** | MIME format. See [example](#example-9-get-the-mime-raw-contents-of-a-meeting-invitation-item-attachment-on-a-message). |
Attempting to get the `$value` of a reference attachment returns HTTP 405.
GET /groups/{id}/threads/{id}/posts/{id}/attachments/{id}/$value
GET /groups/{id}/conversations/{id}/threads/{id}/posts/{id}/attachments/{id}/$value ``` ## Optional query parameters
-This method supports the [OData Query Parameters](/graph/query-parameters) to help customize the response.
+This method supports some of the [OData Query Parameters](/graph/query-parameters) to help customize the response.
+
+Use `$expand` to get the properties of an item attachment (contact, event, or message). See [example 3](#example-3-expand-and-get-the-properties-of-the-item-attached-to-a-message) and [example 4](#example-4-expand-and-get-the-properties-of-an-item-attached-to-a-message-including-any-attachment-to-the-item).
+ ## Request headers | Name | Type | Description| |:--|:|:-|
Content-type: application/json
"hasAttachments":false, "internetMessageId":"<BY2PR15MB05189A084C01F466709E414F9CA40@BY2PR15MB0518.namprd15.prod.outlook.com>", "subject":"Reminder - please bring laptop",
+ "bodyPreview": "PFA\r\n\r\nThanks,\r\nRob",
"importance":"normal", "conversationId":"AAQkADA1MzMyOGI4LTlkZDctNDkzYy05M2RiLTdiN2E1NDE3MTRkOQAQAMG_NSCMBqdKrLa2EmR-lO0=", "conversationIndex":"AQHTAbcSwb41IIwGp0qstrYSZH+U7Q==",
Content-type: application/json
"isRead":false, "isDraft":false, "webLink":"https://outlook.office365.com/owa/?ItemID=AAMkADA1M3MTRkOQAAAA%3D%3D&exvsurl=1&viewmodel=ReadMessageItem",
+ "internetMessageHeaders": [ ],
"body":{ "contentType":"html", "content":"<html><head>\r\n</head>\r\n<body>\r\n</body>\r\n</html>"
Content-type: application/json
"address":"AdeleV@contoso.onmicrosoft.com" } }
- ]
+ ],
+ "flag":{
+ "flagStatus":"notFlagged"
+ }
} } ```
+### Example 4: Expand and get the properties of an item attached to a message, including any attachment to the item
+#### Request
+The next example uses the same request as in [example 3](#example-3-expand-and-get-the-properties-of-the-item-attached-to-a-message) to get the properties of an item attachment on a message by using `$expand`. In this case, because the attached item also has a file attachment, the response includes the properties of the file attachment as well.
+
+<!-- {
+ "blockType": "request",
+ "sampleKeys": ["AAMkADA1M-zAAA=", "AAMkADA1M-CJKtzmnlcqVgqI="],
+ "name": "get_and_expand_nested_item_attachment"
+}-->
+```msgraph-interactive
+GET https://graph.microsoft.com/v1.0/me/messages/AAMkADA1M-zAAA=/attachments/AAMkADA1M-CJKtzmnlcqVgqI=/?$expand=microsoft.graph.itemattachment/item
+```
+#### Response
+<!-- {
+ "blockType": "response",
+ "name": "get_and_expand_nested_item_attachment",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.itemAttachment"
+} -->
+
+```http
+HTTP/1.1 200 OK
+Content-type: application/json
+
+{
+ "@odata.context": "https://graph.microsoft.com/beta/$metadata#users('d1a2fae9-db66-4cc9-8133-2184c77af1b8')/messages('AAMkADA1M-zAAA%3D')/attachments(microsoft.graph.itemAttachment/item())/$entity",
+ "@odata.type": "#microsoft.graph.itemAttachment",
+ "id": "AAMkADA1MCJKtzmnlcqVgqI=",
+ "lastModifiedDateTime": "2021-01-06T13:28:11Z",
+ "name": "Nested Message With Attachment",
+ "contentType": null,
+ "size": 465916,
+ "isInline": false,
+ "item@odata.context": "https://graph.microsoft.com/beta/$metadata#users('d1a2fae9-db66-4cc9-8133-2184c77af1b8')/messages('AAMkADA1M-zAAA%3D')/attachments('AAMkADA1M-CJKtzmnlcqVgqI%3D')/microsoft.graph.itemAttachment/item/$entity",
+ "item": {
+ "@odata.type": "#microsoft.graph.message",
+ "id": "",
+ "createdDateTime": "2021-01-06T13:28:30Z",
+ "lastModifiedDateTime": "2021-01-06T13:27:40Z",
+ "receivedDateTime": "2021-01-06T13:27:25Z",
+ "sentDateTime": "2021-01-06T13:27:04Z",
+ "hasAttachments": true,
+ "internetMessageId": "<BY2PR15MB05189A084C01F466709E414F9CA40@BY2PR15MB0518.namprd15.prod.outlook.com>",
+ "subject": "Nested Message With Attachment",
+ "bodyPreview": "PFAThanks,Adele",
+ "importance": "normal",
+ "conversationId": "AAQkADg3NTY5MDg4LWMzYmQtNDQzNi05OTgwLWQyZjg2YWQwMTNkZAAQAO6hkp84oMdGm6ZBsSH72sE=",
+ "conversationIndex": "AQHW5C+U7qGSnzigx0abpkGxIfvawQ==",
+ "isDeliveryReceiptRequested": false,
+ "isReadReceiptRequested": false,
+ "isRead": true,
+ "isDraft": false,
+ "webLink": "https://outlook.office365.com/owa/?ItemID=AAMkADA1M3MTRkOQAAAA%3D%3D&exvsurl=1&viewmodel=ItemAttachment",
+ "internetMessageHeaders": [],
+ "body": {
+ "contentType": "html",
+ "content": "<html><head>\r\n</head>\r\n<body>\r\n</body>\r\n</html>"
+ },
+ "sender": {
+ "emailAddress": {
+ "name": "Adele Vance",
+ "address": "Adele.Vance@microsoft.com"
+ }
+ },
+ "from": {
+ "emailAddress": {
+ "name": "Adele Vance",
+ "address": "Adele.Vance@microsoft.com"
+ }
+ },
+ "toRecipients": [
+ {
+ "emailAddress": {
+ "name": "Adele Vance",
+ "address": "Adele.Vance@microsoft.com"
+ }
+ }
+ ],
+ "flag": {
+ "flagStatus": "notFlagged"
+ },
+ "attachments@odata.context": "https://graph.microsoft.com/beta/$metadata#users('d1a2fae9-db66-4cc9-8133-2184c77af1b8')/messages('AAMkADA1M-zAAA%3D')/attachments('AAMkADA1M-CJKtzmnlcqVgqI%3D')/microsoft.graph.itemAttachment/microsoft.graph.itemAttachment/item/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/microsoft.graph.message/attachments",
+ "attachments": [
+ {
+ "@odata.type": "#microsoft.graph.fileAttachment",
+ "@odata.mediaContentType": "application/pdf",
+ "id": "AAMkADg3NTYULmbsDYNg==",
+ "lastModifiedDateTime": "2021-01-21T14:56:18Z",
+ "name": "Info.pdf",
+ "contentType": "application/pdf",
+ "size": 417351,
+ "isInline": false,
+ "contentId": null,
+ "contentLocation": null,
+ "contentBytes": "JVBERi0xLjUNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFuZyhlbi1JTikgL1N0cnVjdFRyZWVSb29"
+ }
+ ]
+ }
+}
+```
-### Example 4: Get the properties of a reference attachment
+### Example 5: Get the properties of a reference attachment
#### Request Here is an example of the request to get a reference attachment on a message.
Content-type: application/json
} ```
-### Example 5: Get the raw contents of a file attachment on a message
+### Example 6: Get the raw contents of a file attachment on a message
#### Request
HTTP/1.1 200 OK
```
-### Example 6: Get the MIME raw contents of a contact attachment on a message
+### Example 7: Get the MIME raw contents of a contact attachment on a message
#### Request
END:VCARD
```
-### Example 7: Get the MIME raw contents of an event attachment on a message
+### Example 8: Get the MIME raw contents of an event attachment on a message
#### Request
END:VCALENDAR
```
-### Example 8: Get the MIME raw contents of a meeting invitation item attachment on a message
+### Example 9: Get the MIME raw contents of a meeting invitation item attachment on a message
#### Request
QkVHSU46VkNBTEVOREFSDQpNRVRIT0Q6UkVRVUVTVA0KUFJPRElEOk1pY3Jvc29mdCBFeGNoYW5n
"keywords": "", "section": "documentation", "suppressions": [
- "Error: get_and_expand_item_attachment/item:
- Property 'item' is of type Custom but has no custom members."
], "tocPath": "" }-->
v1.0 https://docs.microsoft.com/en-us/graph/api/call-redirect https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/call-redirect.md
Content-Type: application/json
} ```
+### Example 3: Forward a call to a PSTN number
+
+This call requires an application instance with a PSTN number assigned.
+
+#### Step 1: Create application instance
+Using tenant admin credentials, call the following cmdlets on the tenant remote PowerShell to create the application instance. For more information, see [New-CsOnlineApplicationInstance](/powershell/module/skype/new-csonlineapplicationinstance?view=skype-ps&preserve-view=true) and [Sync-CsOnlineApplicationInstance](/powershell/module/skype/sync-csonlineapplicationinstance?view=skype-ps&preserve-view=true).
+```
+PS C:\> New-CsOnlineApplicationInstance -UserPrincipalName <UPN> -DisplayName <DisplayName> -ApplicationId <AppId>
+PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId>
+```
+#### Step 2: Assign Microsoft 365 licenses
+1. Use tenant admin credentials to sign in to https://admin.microsoft.com/ and go to the **Users -> Active users** tab.
+2. Select the application instance, assign **Microsoft 365 Domestic and International Calling Plan** and **Microsoft 365 Phone System - Virtual User** licenses, and click **Save changes**. If the required licenses are not available in the tenant, you can get them from the **Billing -> Purchase services** tab.
+#### Step 3: Acquire PSTN number
+1. Use tenant admin credentials to sign in to https://admin.teams.microsoft.com/ and click the **Legacy portal** tab on the left panel.
+2. In the new page, go to the **voice -> phone numbers** tab.
+3. Click the **+** button, select **New Service Numbers**, and go to the **Add new service numbers** page.
+4. Select **Country/Region**, **State/Region**, **City**, input **Quantity**, and click **add** to search. Click **acquire numbers**. The newly acquired number will show on the **phone numbers** tab.
+#### Step 4: Assign PSTN number to application instance
+With tenant admin credentials, call the following cmdlets on the tenant remote PowerShell to assign the PSTN number to the application instance. For more information, see [Set-CsOnlineVoiceApplicationInstance](https://docs.microsoft.com/powershell/module/skype/set-csonlinevoiceapplicationinstance?view=skype-ps&preserve-view=true) and [Sync-CsOnlineApplicationInstance](https://docs.microsoft.com/powershell/module/skype/sync-csonlineapplicationinstance?view=skype-ps&preserve-view=true).
+```
+PS C:\> Set-CsOnlineVoiceApplicationInstance -Identity <UPN> -TelephoneNumber <TelephoneNumber>
+PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId>
+```
+
+#### Notification - incoming
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+``` json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "created",
+ "resourceUrl": "/communications/calls/491f0b00-ffff-4bc9-a43e-b226498ec22a",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "incoming",
+ "direction": "incoming",
+ "callbackUri": "https://bot.contoso.com/api/calls/24701998-1a73-4d42-8085-bf46ed0ae039",
+ "source": {
+ "@odata.type": "#microsoft.graph.participantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "user": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "8d1e6ab6-26c5-4e22-a1bc-06ea7343958e",
+ "tenantId": "632899f8-2ea1-4604-8413-27bd2892079f"
+ }
+ },
+ "region": "amer",
+ },
+ "targets": [
+ {
+ "@odata.type": "#microsoft.graph.invitationParticipantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "applicationInstance": {
+ "@odata.type": "#microsoft.graph.identity",
+ "displayName": "PstnAppInstance",
+ "id": "7629bdce-046c-4903-86b4-a8f718277e1a",
+ "tenantId": "632899f8-2ea1-4604-8413-27bd2892079f"
+ }
+ },
+ "endpointType": "default",
+ "id": "c339cede-4bd6-4f20-ab9f-3a13e65f6d00",
+ "region": "amer",
+ "languageId": null
+ }
+ ],
+ "tenantId": "632899f8-2ea1-4604-8413-27bd2892079f",
+ "myParticipantId": "c339cede-4bd6-4f20-ab9f-3a13e65f6d00",
+ "id": "491f0b00-ffff-4bc9-a43e-b226498ec22a"
+ }
+ }
+ ]
+}
+```
+
+#### Request
+
+<!-- {
+ "blockType": "request",
+ "name": "call-redirect"
+} -->
+``` http
+POST https://graph.microsoft.com/v1.0/communications/calls/491f0b00-ffff-4bc9-a43e-b226498ec22a/redirect
+Content-Type: application/json
+
+{
+ "targets": [
+ {
+ "@odata.type": "#microsoft.graph.invitationParticipantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "phone": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "+12345678901"
+ }
+ }
+ }
+ ],
+ "callbackUri": "https://bot.contoso.com/api/calls/24701998-1a73-4d42-8085-bf46ed0ae039"
+}
+```
+#### Response
+
+<!-- {
+ "blockType": "response",
+ "@odata.type": "microsoft.graph.None"
+} -->
+```http
+HTTP/1.1 202 Accepted
+```
+#### Notification - terminated
+
+<!-- {
+ "blockType": "example",
+ "name": "call-redirect"
+} -->
+``` http
+POST https://bot.contoso.com/api/calls/24701998-1a73-4d42-8085-bf46ed0ae039
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+} -->
+``` json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "deleted",
+ "resourceUrl": "/communications/calls/491f0b00-ffff-4bc9-a43e-b226498ec22a",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "terminated",
+ "direction": "incoming",
+ "callbackUri": "https://bot.contoso.com/api/calls/24701998-1a73-4d42-8085-bf46ed0ae039",
+ "source": {
+ "@odata.type": "#microsoft.graph.participantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "user": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "8d1e6ab6-26c5-4e22-a1bc-06ea7343958e",
+ "tenantId": "632899f8-2ea1-4604-8413-27bd2892079f"
+ }
+ },
+ "region": "amer",
+ },
+ "targets": [
+ {
+ "@odata.type": "#microsoft.graph.invitationParticipantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "applicationInstance": {
+ "@odata.type": "#microsoft.graph.identity",
+ "displayName": "PstnAppInstance",
+ "id": "7629bdce-046c-4903-86b4-a8f718277e1a",
+ "tenantId": "632899f8-2ea1-4604-8413-27bd2892079f"
+ }
+ },
+ "endpointType": "default",
+ "id": "c339cede-4bd6-4f20-ab9f-3a13e65f6d00",
+ "region": "amer",
+ "languageId": null
+ }
+ ],
+ "answeredBy": {
+ "@odata.type": "#microsoft.graph.participantInfo",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "encrypted": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "1xt4uextl99sdzwdxuvdxrvgrv8gehcq7jdgf9yhzeto"
+ }
+ },
+ "endpointType": "default"
+ },
+ "tenantId": "632899f8-2ea1-4604-8413-27bd2892079f",
+ "myParticipantId": "c339cede-4bd6-4f20-ab9f-3a13e65f6d00",
+ "id": "491f0b00-ffff-4bc9-a43e-b226498ec22a"
+ }
+ }
+ ]
+}
+```
+ <!-- uuid: 8fcb5dbc-d5aa-4681-8e31-b001d5168d79 2015-10-25 14:57:30 UTC --> <!--
v1.0 https://docs.microsoft.com/en-us/graph/api/call-transfer https://github.com/microsoftgraph/microsoft-graph-docs/commits/master/api-reference/v1.0/api/call-transfer.md
Namespace: microsoft.graph
Transfer an active peer-to-peer call.
-> **Note:** This is only supported if both the transferee and transfer target are Microsoft Teams users that belong to the same tenant. Transfer to PSTN number is not supported. To learn more about transferor, transferee and transfer target, see [RFC 5589](https://tools.ietf.org/html/rfc5589#section-2).
+> **Note:** This is only supported if both the transferee and transfer target are Microsoft Teams users that belong to the same tenant. Transfer to PSTN number is supported only for application instance. To learn more about transferor, transferee and transfer target, see [RFC 5589](https://tools.ietf.org/html/rfc5589#section-2).
A consultative transfer means that the transferor can inform the person they want to transfer the call to (the transferee), before the transfer is made. This is opposed to transfering the call directly.
Content-Type: application/json
} ```
+### Example 3: Call transfer to PSTN number
+
+This call requires an application instance with a PSTN number assigned.
+
+#### Step 1: Create application instance
+Using tenant admin credentials, call the following cmdlets on the tenant remote PowerShell to create the application instance. For more information, see [New-CsOnlineApplicationInstance](/powershell/module/skype/new-csonlineapplicationinstance?view=skype-ps&preserve-view=true) and [Sync-CsOnlineApplicationInstance](/powershell/module/skype/sync-csonlineapplicationinstance?view=skype-ps&preserve-view=true).
+```
+PS C:\> New-CsOnlineApplicationInstance -UserPrincipalName <UPN> -DisplayName <DisplayName> -ApplicationId <AppId>
+PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId>
+```
+#### Step 2: Assign Microsoft 365 licenses
+1. Use tenant admin credentials to sign in to https://admin.microsoft.com/ and go to the **Users -> Active users** tab.
+2. Select the application instance, assign **Microsoft 365 Domestic and International Calling Plan** and **Microsoft 365 Phone System - Virtual User** licenses, and click **Save changes**. If the required licenses are not available in the tenant, you can get them from the **Billing -> Purchase services** tab.
+#### Step 3: Acquire PSTN number
+1. Use tenant admin credentials to sign in to https://admin.teams.microsoft.com/ and click the **Legacy portal** tab on the left panel.
+2. In the new page, go to the **voice -> phone numbers** tab.
+3. Click the **+** button, select **New Service Numbers**, and go to the **Add new service numbers** page.
+4. Select **Country/Region**, **State/Region**, **City**, input **Quantity**, and click **add** to search. Click **acquire numbers**. The newly acquired number will show on the **phone numbers** tab.
+#### Step 4: Assign PSTN number to application instance
+With tenant admin credentials, call the following cmdlets on the tenant remote PowerShell to assign the PSTN number to the application instance. For more information, see [Set-CsOnlineVoiceApplicationInstance](https://docs.microsoft.com/powershell/module/skype/set-csonlinevoiceapplicationinstance?view=skype-ps&preserve-view=true) and [Sync-CsOnlineApplicationInstance](https://docs.microsoft.com/powershell/module/skype/sync-csonlineapplicationinstance?view=skype-ps&preserve-view=true).
+```
+PS C:\> Set-CsOnlineVoiceApplicationInstance -Identity <UPN> -TelephoneNumber <TelephoneNumber>
+PS C:\> Sync-CsOnlineApplicationInstance -ObjectId <ObjectId>
+```
+
+#### Request
+The following example shows the request.
+
+<!-- {
+ "blockType": "request",
+ "name": "call-transfer"
+}-->
+```http
+POST https://graph.microsoft.com/v1.0/communications/calls/{id}/transfer
+Content-Type: application/json
+Content-Length: 430
+
+{
+ "transferTarget": {
+ "endpointType": "default",
+ "identity": {
+ "phone": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "+12345678901"
+ }
+ },
+ "languageId": "languageId-value",
+ "region": "region-value"
+ },
+ "clientContext": "9e90d1c1-f61e-43e7-9f75-d420159aae08"
+}
+```
+
+#### Response
+
+> **Note:** The response object shown here might be shortened for readability. All the properties will be returned from an actual call.
+
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.None"
+}-->
+```http
+HTTP/1.1 202 Accepted
+```
+
+#### Notification - transferring
+
+```http
+POST https://bot.contoso.com/api/calls
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+```json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "updated",
+ "resourceUrl": "/communications/calls/341a0500-d4bf-4224-8b19-1581168d328b",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "transferring"
+ }
+ }
+ ]
+}
+```
+
+#### Notification - transfer accepted
+
+> **Note:** Transfer accepted may happen after or before media state audio inactive.
+
+```http
+POST https://bot.contoso.com/api/calls
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+```json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "updated",
+ "resourceUrl": "/communications/calls/341a0500-d4bf-4224-8b19-1581168d328b",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "transferAccepted"
+ }
+ }
+ ]
+}
+```
+
+#### Notification - transfer completed
+
+```http
+POST https://bot.contoso.com/api/calls
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+```json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "deleted",
+ "resourceUrl": "/communications/calls/341a0500-d4bf-4224-8b19-1581168d328b",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "terminated",
+ "resultInfo": {
+ "@odata.type": "#microsoft.graph.resultInfo",
+ "code": 0,
+ "subcode": 7015,
+ "message": "GracefulTransferCompleted"
+ }
+ }
+ }
+ ]
+}
+```
+### Notification - transfer failed
+
+> **Note:** When a call transfer fails, the call state will be `established`.
+
+```http
+POST https://bot.contoso.com/api/calls
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+```json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "updated",
+ "resourceUrl": "/communications/calls/341a0500-d4bf-4224-8b19-1581168d328b",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "established",
+ "resultInfo": {
+ "@odata.type": "#microsoft.graph.resultInfo",
+ "code": 500,
+ "subCode": 7000,
+ "message": "<message>"
+ }
+ }
+ }
+ ]
+}
+```
+
+### Example 4: Consultative transfer to PSTN number
+
+This call requires an application instance with PSTN number assigned, as described in Example 3.
+
+#### Request
+The following example shows the request.
+
+<!-- {
+ "blockType": "request",
+ "@odata.type": "call-transfer"
+}-->
+
+```http
+POST https://graph.microsoft.com/v1.0/communications/calls/341a0500-d4bf-4224-8b19-1581168d328b/transfer
+Content-Type: application/json
+
+{
+ "transferTarget": {
+ "@odata.type": "#microsoft.graph.invitationParticipantInfo",
+ "endpointType": "default",
+ "identity": {
+ "@odata.type": "#microsoft.graph.identitySet",
+ "phone": {
+ "@odata.type": "#microsoft.graph.identity",
+ "id": "+12345678901"
+ }
+ },
+ "languageId": "en-us",
+ "region": "amer",
+ "replacesCallId": "e5d39592-99bd-4db8-bca8-30fb894ec51d"
+ },
+ "clientContext": "9e90d1c1-f61e-43e7-9f75-d420159aae08"
+}
+```
+
+#### Response
+
+> **Note:** The response object shown here might be shortened for readability. All the properties will be returned from an actual call.
+
+<!-- {
+ "blockType": "response",
+ "truncated": true,
+ "@odata.type": "microsoft.graph.None"
+}-->
+```http
+HTTP/1.1 202 Accepted
+```
+
+#### Notification - transferring
+
+```http
+POST https://bot.contoso.com/api/calls
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+```json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "updated",
+ "resourceUrl": "/communications/calls/341a0500-d4bf-4224-8b19-1581168d328b",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "transferring"
+ }
+ }
+ ]
+}
+```
+
+#### Notification - transfer accepted
+
+> **Note:** Transfer accepted may happen after or before media state audio inactive.
+
+```http
+POST https://bot.contoso.com/api/calls
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+```json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "updated",
+ "resourceUrl": "/communications/calls/341a0500-d4bf-4224-8b19-1581168d328b",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "transferAccepted"
+ }
+ }
+ ]
+}
+```
+
+#### Notification - transfer completed
+
+```http
+POST https://bot.contoso.com/api/calls
+Content-Type: application/json
+```
+
+<!-- {
+ "blockType": "example",
+ "@odata.type": "microsoft.graph.commsNotifications"
+}-->
+```json
+{
+ "@odata.type": "#microsoft.graph.commsNotifications",
+ "value": [
+ {
+ "@odata.type": "#microsoft.graph.commsNotification",
+ "changeType": "deleted",
+ "resourceUrl": "/communications/calls/341a0500-d4bf-4224-8b19-1581168d328b",
+ "resourceData": {
+ "@odata.type": "#microsoft.graph.call",
+ "state": "terminated",
+ "terminationReason": "AppTransferred"
+ }
+ }
+ ]
+}
+```
+
+#### Notification - transfer failed
+
+> **Note:** When a call transfer fails, the call state will be `established`.
+
+```http
+POST https://bot.contoso.com/api/calls