microsoft-graph

users?$expand=drive fails with InternalServerError

ぐ巨炮叔叔 提交于 2019-12-24 01:42:51
问题 We want to be able to include the information about each individual user's personal site (OneDrive for Business) within a collection, to avoid inefficient subsequent requests to Microsoft Graph. Microsoft Graph API doesn't allow to query for the mySite field when getting a user collection via /users?$select=id,mail,mySite . This fact is documented in the Graph API docs. Thus we were looking for an alternative, and came across: GET /users?$expand=drive or GET /users?$expand=drives because

Graph REST AddMember to Group - Bad Request

允我心安 提交于 2019-12-24 01:24:59
问题 I am attempting to add members to a group. I am able to list all groups in my org, get user by email, get all users and I can even remove a Member from a group but I cannot add one - The error returned is 400 Bad Request . Here is the function which is the same function signature as those that work: (I do have the accesstoken , valid group id and a valid member id) I have confirmed the body data looks correct at least as far as I can see from the example in the docs. Not sure what else I can

REST API to manage users on Skype For Business

断了今生、忘了曾经 提交于 2019-12-24 01:11:51
问题 We're using MS Graph API to manage users for Office 365. I just wanted to know if this API is good enough to manage users for "Skype for Business" product as well. Also, when we query for Subscribed SKUs, we do get a list of servicePlanName s one of which is MCOSTANDARD . Can you please confirm if this plan indicates "Skype for Business"? Thank you! 回答1: Azure Active Directory user accounts can be used to sign into Skype for Business. I believe Skype for Business also supports Microsoft

Microsoft.Graph GetAsync() hangs indefinitely

故事扮演 提交于 2019-12-24 00:53:33
问题 Introduction I am developing an ASP.NET application which, among other things, is supposed to retrieve users from Azure Active Directory. For this purpose, I am using the Microsoft Graph version 1.14.0 preview library, which can be found here. As this library only provides asynchronous methods for retrieving users, I am using the following (pseudo) code to run it synchronously. string userPrincipalName = "test.user@intuneforeducation.com"; var task = Task.Run(async () => await

MS Graph API Unknown Error when trying to get folder's children

女生的网名这么多〃 提交于 2019-12-24 00:48:59
问题 When trying to access a specific folder in my sharepoint site's drive using the Microsoft Graph API relative pathing I get an unknown error. This exact same request worked fine just over a week ago but stopped working this week when using it again. Test Results is a folder on my site's drive. According to OneDrive dev docs this is how the request should look: /drive/root:/path/to/folder:/children Actual Request (site-id removed): https://graph.microsoft.com/v1.0/sites/<site-id>/drive/root:

Resource Not Found While fetching contacts from MS Graph API

半腔热情 提交于 2019-12-24 00:24:27
问题 I tried below github sample for Azure AD Authentication and successfully getting access token with proper call back URL. https://github.com/Microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/18.bot-authentication Modified and Configured Web.config Keys as per my application created in https://apps.dev.microsoft.com <add key="ActiveDirectory.Mode" value="v1" /> <add key="ActiveDirectory.ResourceId" value="https://graph.microsoft.com" /> <add key="ActiveDirectory.EndpointUrl"

How to specify @microsoft.graph.conflictBehavior in the request body in onedriveAPI

不问归期 提交于 2019-12-24 00:22:14
问题 I'm working on a C# project with these requirements: Create a Folder if it doesn't exits Check if the already exists, if it exists increment the file name. From Onedrive API documentation Create a new Folder in OneDrive, it says that setting @microsoft.graph.conflictBehavior=rename would increment the folder value if it exists how can I add the @microsoft.graph.conflictBehavior into my request? Here's the code which creates the folder using drive Item var foldertoCreate = new DriveItem { Name

Replace operation breaks a nested list in OneNote (Graph API)

自作多情 提交于 2019-12-24 00:08:51
问题 User organizes his todos in OneNote as nested list which looks like this: user's page I need to mark "Task A" as completed. According to a documentation I should perform replace action for todo. First I call GET /me/onenote/pages/{pageId}/content?includeIDs=true to find right id of todo "Task A" (see "Page content before the PATCH" ⇩). Then I send PATCH /me/onenote/pages/{pageId}/content with body: [ { "action": "replace", "target": "p:{33109592-eab9-44fa-8cec-867ab11cecfd}{55}", "content": "

Problems Accessing Office 365 Planner Data using Graph API (by application) due to 401 Unauthorized

孤人 提交于 2019-12-23 23:25:04
问题 I have been struggling with accessing planner data from office 365 using an application which I have setup in Azure. I have been able to successfully retrieve licensing and user information, but am unable to get a list of user tasks (from Planner). Further Clarification: I am trying to access other users planner data tasks, not my own. This is not a user facing application, a user never logs in. I am using the REST interface using my registered apps client/secret key in order to obtain a

Microsoft Graph Api OAuth return status code 200 instead of 302 (Not redirect to login Page)

╄→尐↘猪︶ㄣ 提交于 2019-12-23 22:01:43
问题 To Get Token for Microsoft Graph API. This is the first Call to let authentication user (microsoft) and get code for calling token service.Request properly sent but instead of getting status code 302 so that it can be redirected to login page. I am getting status code 200. public async Task<string> GetBToken() { string url = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize?"; //https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize? HttpClientHandler clientHandler =