microsoft-graph

OneNote API /pages endpoint not working properly

╄→гoц情女王★ 提交于 2020-01-14 06:20:11
问题 Summary In my pursuit of getting up to date information about my most recently modified OneNote pages via the REST API, I conducted a short experiment where I created a new Outlook ID; created OneNote notebooks, sections, and pages using both Windows and Mac; and used Graph Explorer to run OneNote API queries. I found that requests for page information using GET .../pages did not work and is most likely a result of API information not updating in real time. Further details are provided below;

Graph api add member on mail enabled group “Unable to update the specified properties for objects that have originated within an external service.”

╄→尐↘猪︶ㄣ 提交于 2020-01-14 04:34:48
问题 I've been trying to write an MVC application that uses the Graph api to administrate AD Groups. The problem I'm running into is when I try to add or remove users to Mail enabled security groups I get "Unable to update the specified properties for objects that have originated within an external service." These operations work fine with "normal" Security groups. According to the docs it should support both, what am I missing? Code: bool userAdded = false; GraphServiceClient graphClient =

Getting all the tenants a user belongs to using grah api

风流意气都作罢 提交于 2020-01-13 19:42:11
问题 I have an app which uses the AUTH v2 auth provider and the common tenant (login.microsoftonline.com/common/v2.0/) for authentication. Now, since my users can belong to any AAD tenant, and I want my users to be able to select the tenant in which they are performing operations, I started looking for a way to get all the AAD tenants the logged-in user is part of. I went through the graph API (graph.microsoft.com) documentation and the closest I could find was this: https://graph.microsoft.io/en

Can Microsoft Graph App Only Permissions be restricted?

半腔热情 提交于 2020-01-13 16:22:08
问题 I am developing an app to manage room bookings via Microsoft Graph. In the end, the app needs to read and cancel meetings that are booked into a certain room resource account. Unfortunately, there is only the permission Calendars.ReadWrite which gives the app permissions to read and write every users calendar in the tenant, including private appointments. I have not found any possibility to restrict the permissions or specify them more granular. Does anyone know how to deal with this? (Or do

Microsoft Graph does not retrieve the Group's Plan Id

随声附和 提交于 2020-01-13 05:58:30
问题 After creating a Group using POST /v1.0/groups with the body: { "description": "hello", "displayName": "group_for_restore", "groupTypes": [ "Unified" ], "mailEnabled": true, "mailNickname": "group_for_restore", "securityEnabled": false, "visibility": "Public" } A request to GET /v1.0/groups/{group-id}/planner/plans does not retrieve any plans. As far as I know, after creating a Group, a Plan will be created too. On the web interface you can see that this plan is correctly created and shown,

412 (Precondition Failed) when add attachments at same time

让人想犯罪 __ 提交于 2020-01-13 02:28:12
问题 I am using Microsoft Graph. I try to add two attachments by POST /me/messages/{messageId}/attachment { "@odata.type": "#microsoft.graph.fileAttachment", "name": "1.txt", "contentBytes": "SGVsbG8gd29ybGQh" } POST /me/messages/{messageId}/attachment { "@odata.type": "#microsoft.graph.fileAttachment", "name": "2.txt", "contentBytes": "SGVsbG8gd29ybGQhIQ==" } It gave me 412 (Precondition Failed) error when I add these two attachments at same time. { "code": "ErrorIrresolvableConflict", "message":

412 (Precondition Failed) when add attachments at same time

主宰稳场 提交于 2020-01-13 02:27:51
问题 I am using Microsoft Graph. I try to add two attachments by POST /me/messages/{messageId}/attachment { "@odata.type": "#microsoft.graph.fileAttachment", "name": "1.txt", "contentBytes": "SGVsbG8gd29ybGQh" } POST /me/messages/{messageId}/attachment { "@odata.type": "#microsoft.graph.fileAttachment", "name": "2.txt", "contentBytes": "SGVsbG8gd29ybGQhIQ==" } It gave me 412 (Precondition Failed) error when I add these two attachments at same time. { "code": "ErrorIrresolvableConflict", "message":

What is the difference between ADAL.js and MSAL.js?

巧了我就是萌 提交于 2020-01-12 13:56:52
问题 I am trying to handle authentication for my app which uses Microsoft Graph. What is the difference between these two libraries? Active Directory Authentication Library for JavaScript (ADAL.js) Microsoft Authentication Library for JavaScript (MSAL.js) Is ADAL.js just an Angular 1 library of MSAL.js? 回答1: MSAL.js works with the AzureAD V2 endpoint, whereas ADAL.js works with the AzureAD V1 endpoint. The V1 endpoint supports work accounts, but not personal accounts. The V2.0 endpoint is the

Expanding MemberOf with Microsoft Graph does not populate groups

对着背影说爱祢 提交于 2020-01-11 09:15:28
问题 Background Currently I'm working on implementing Azure Active Directory user management in our own portal to enable user management for users we don't want snooping around in the Azure Portal. I've implemented it using application permissions so we can have the Azure admin grant permissions to this one specific application. RBAC together with user roles in our application make sure only authorized users are able to use the functionality. One of the things we wanted to enable is inviting users

How to access custom columns in a sharepoint library - graph API

假装没事ソ 提交于 2020-01-11 07:12:48
问题 I am listing the children in the root of a document library with custom columns. When I make the following call with the MS graph REST API, no custom column data is returned for the child items. https://graph.microsoft.com/beta/sites/<site-id>/drive/root/children I have tried using ?expand=... without success. Is this possible with either the v1 or beta endpoints? 回答1: Endpoint GET https://graph.microsoft.com/beta/sites/<site-id>/drive/root/children returns the collection of files metadata