microsoft-graph-api

Microsoft graph Unable to read JSON request payload

僤鯓⒐⒋嵵緔 提交于 2021-01-28 01:53:00
问题 I'm trying to create subscriptions with microsoft graph in php, however I am unable to see what is going wrong at this point. The code is breaking at the following: protected $http_subscribe = "https://graph.microsoft.com/v1.0/subscriptions"; public function getSubscriptions() { if(empty($this->token)) { dd('no token supplied'); //some debugging } $date = $this->endTimeDate->format('Y-m-d'); //This is Carbon date $time = $this->endTimeDate->format('H:i:s.u'); $response = $this->client-

Resetting a user's password using Microsoft Graph

∥☆過路亽.° 提交于 2021-01-28 01:48:02
问题 I'm trying to write a web portal that users can use to reset their own Azure AD password. Because of the requirements of my client, the Azure AD SSPR is not an option . To achieve this I'm using Microsoft Graph. According to the documentation, it is possible to reset a users password using Microsoft Graph if you have User.ReadWrite.All or Directory.AccessAsUser.All permissions. Then the permissions documentation, the remarks it states that even if you have the Directory.ReadWrite.All

How to update identities collection for existing B2C User using Microsoft Graph and SDK

不羁的心 提交于 2021-01-27 19:36:37
问题 I am trying to update the identities collection for an existing User in an Azure AD B2C tenant. Specifically, I am attempting to add another federated identity entry for the user. According to the Microsoft Graph documentation this should be possible provided that I: Assign User.ManageIdentities.All permission to the client I am using to make the graph call Send the entire existing identities collection, with the new identity entry appended (this also ensures that the existing identity with

Sending email with Microsoft graph API work account

若如初见. 提交于 2021-01-27 19:18:58
问题 Does anyone know how to request permission to send emails using Graph API by an app that runs without a signed-in user? I have an Azure WebApp with permission to send email using Microsoft Graph. In the Azure portal (Azure Active Directory -> App registrations -> MyApp - API permissions), my app has granted permission for Mail.Send ( Type: Application : Description: Send mail as any user ). In the next step, I’m inviting a user from my organization. In Azure Ad the user type is Guest. I

Unable to use both top and skip on drives request for the office 365 graph api

拟墨画扇 提交于 2021-01-27 18:58:03
问题 We've recently seen what we believe is a change of functionality regarding the use of the top and skip query parameters when making a /drives call. An example call is: https://graph.microsoft.com/v1.0/sites/{siteid}/drives?top=1&skip=2 This results in the error message: { "error": { "code": "invalidRequest", "message": "$skip is not supported on this API. Only URLs returned by the API can be used to page.", "innerError": { "request-id": "14be8885-c3ba-48cc-862b-169dc2c02792", "date": "2017-08

Sending email with Microsoft graph API work account

♀尐吖头ヾ 提交于 2021-01-27 17:45:42
问题 Does anyone know how to request permission to send emails using Graph API by an app that runs without a signed-in user? I have an Azure WebApp with permission to send email using Microsoft Graph. In the Azure portal (Azure Active Directory -> App registrations -> MyApp - API permissions), my app has granted permission for Mail.Send ( Type: Application : Description: Send mail as any user ). In the next step, I’m inviting a user from my organization. In Azure Ad the user type is Guest. I

Microsoft Graph API reports endpoint for GCC High not working?

久未见 提交于 2021-01-27 15:09:21
问题 I'm trying to access O365 reports via the Microsoft Graph API for a GCC High O365 tenant. I'm getting an error "Resource not found for the segment 'reports'". Should this be working or is there an issue with how I'm constructing the request? The full trace is below, Request => GET https://graph.microsoft.us/v1.0/reports/getOffice365ActiveUserDetail(period='D7') HTTP/1.1 SdkVersion: Graph-dotnet-1.10.0 Authorization: Bearer <JWT TOKEN REMOVED> Cache-Control: no-store, no-cache Host: graph

Graph Subscription Created but Notifications Not Being Sent

假装没事ソ 提交于 2021-01-27 13:47:24
问题 My GraphServiceClient subscription was created on my user and I receive a successful response: { "resource": "users/me@my.domain.com/events", "changeType": "created,updated", "clientState": "baedacff-7b53-4aca-81b8-20f9fff68618", "notificationUrl": "https://my.domain.com/notification/listen", "expirationDateTime": "2018-04-27T17:57:16.0115964+00:00", "id": "f4090189-2d12-45a0-9ad2-77c3595b07b4", "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#subscriptions/$entity" } However,

How to access shared content using OneNote api

落花浮王杯 提交于 2021-01-27 13:44:12
问题 I am integrating OneNote in my application. Using the OneNote API I am able to fetch all the Notebooks that belong to a particular user. Let's say a user A has 5 Notebooks of his own and 2 shared Notebooks. Let's say NoteBook6 is shared by user which is part of organization same A and NoteBook7 is shared by external user. In my application I want to access all these 7 notebooks which user can access. I tried this using Microsoft Graph as well as the OneNote API but I am only able to access

How to update the users birthday

亡梦爱人 提交于 2021-01-27 13:08:23
问题 I want to update the birthday of a user using the patch request. Updating other properties works as expected but the moment the birthday property is included, the following error returned: The request is currently not supported on the targeted entity set I already tried to update the user to be sure the permissions are fine. Application permissions are used. This PATCH request to /V1.0/users/{id} works: { "givenName": "Fridas" } Passing this request body however: { "givenName":"Fridas",