microsoft-graph

How to upload/download a file with Microsoft graph API in Unity3d

陌路散爱 提交于 2019-12-24 08:24:26
问题 I was able to make a oauth 2 login with Unity3d on Microsoft graph, I requested this permission for my app: https://graph.microsoft.com/files.readwrite.appfolder After the usual code flow (redirect to url, permission from user, auth code exchanged for token code and token for bearer auth code) I was able to log in. Problem is that the upload of small files does not work: https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_put_content I think this is the best I can do:

Azure AD B2C Graph Api - how to get users with all groups

风格不统一 提交于 2019-12-24 08:23:37
问题 For one of my dashboards, I want to show all the users and their (security) groups. I can call the Graph API just fine ( myorganization/users and myorganization/groups ) and query it with the OData query filters, but the problem lies in the expanding. When I use GET /myorganisation/users&expand=memberOf I get an internal server error. (tried both the 1.0, 1.6 and beta API version) When I use GET /myorganization/groups&expand=members I get a proper response, but the expanded member's list has

Microsoft Graph Group query does not expand relationships when $select is present

↘锁芯ラ 提交于 2019-12-24 08:17:51
问题 I am trying to query group owners along with a few properties of the groups. When I add $select the owners property gets dropped. I need $select to reduce the amount of data returned. Any way to achieve both? /beta/groups?$expand=owners&$filter=startswith(mailNickname, 'rtan')&$top=999&$select=mailEnabled,owners Response (has mailEnabled but is missing owners ): { "@odata.context": "https://graph.microsoft.com/beta/$metadata#groups(mailEnabled,owners)", "value": [ { "mailEnabled": true }, {

Is a browser required for Onedrive/Graph Authentication

会有一股神秘感。 提交于 2019-12-24 07:46:13
问题 It appears via the OneDrive API documentation that a user must always "authenticate" using a web-browser to access the OneDrive API. This is not helpful for system accounts. Am I interpreting this correctly? Or is there a way to achieve step one without a browser: Step 1. Get an authorization code To start the sign-in process with the code flow, use a web browser or web-browser control to load this URL request. GET https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=

Unable to send an invitation of the folder using Microsoft.Graph Api

牧云@^-^@ 提交于 2019-12-24 07:36:13
问题 I am trying to send an invitation for the folder but I keep getting this error: An invalid operation was attempted while processing this request. My code is: var graphclient = AuthenticationHelper.GetGraphServiceClient(); List<DriveRecipient> recpient = new List<DriveRecipient>() { new DriveRecipient { Email = "abcd@hotmail.com", Alias="abcd" } }; // var info = await graphclient.Me.Request().GetAsync(); var invite = graphclient.Me.Drive.Root.ItemWithPath("trying").Invite(recpient, false, new

Microsoft OneDrive API InvalidAuthenticationToken CompactToken parsing failed with error code: -2147184105

旧巷老猫 提交于 2019-12-24 06:48:19
问题 I have looked at the two similar questions in StackoverFlow and on the web but I still don't understand what I should do. I want to download a file that is located on OneDrive programmatically using a bash script (with curl). So I've seen here that I can use the code flow to access Microsoft Graph. So I proceeded like that (I inspired myself from the Jay Lee answer): 1- I get the code with this URL https://login.live.com/oauth20_authorize.srf?client_id=10c492f9-132a-4079-adae-382dad9d4339

Microsoft Graph Access Token contains wrong permission for contacts API

元气小坏坏 提交于 2019-12-24 06:37:16
问题 So basically I need to access the contacts of an office 365 user. I use the Microsoft graph API and I successfully can get all the contacts via an HTTP GET in a JSON. But now I'm trying to write a JSON to the https://graph.microsoft.com/v1.0/me/contacts API with an HTTP POST, but I get a 403 - Permission Denied every time. So I went to https://jwt.io/ and checked my access token and saw that I don't have the permissions to write in the contacts. I get those permissions: "scp": "Contacts.Read

msGraph API from msAccess VBA - Planner plans credentials issue

三世轮回 提交于 2019-12-24 06:25:28
问题 I am very new to MS Graph and Office 365 and have made good progress. I am an O365 Global Admin for my organisation (a school) and have app development experience. There is a lot of scope for using MS-Access databases in our context for "globally" managing the O365 content. eg contacts, distribution lists and planner tasks. We want to manage these from an on-premises ms-access database or two and with an admin person authenticating the ms-graph activity, ideally. So, to test, I created a new

What outlook API do you use for seeing busy/free subject location

心已入冬 提交于 2019-12-24 06:17:07
问题 What APIs can i use to see busy/free times of a contact that I'm trying to schedule with. If the contact has subject and location visible, I'd want to have access to that information too. (Much like the "scheduling" wizard in the outlook desktop application) I tried /users/Id/events ... I can't access other users events of course. I tried calendarview with just start and end. 403. Forbidden on other users calendars. I do have granted Calendars.Read scope in my app 回答1: Graph includes

400 Bad request error on using Microsoft Graph API to subscribe to Outlook Push Notifications

落花浮王杯 提交于 2019-12-24 04:06:09
问题 I am trying to create a subscription to get Outlook emails @mentions via Push Notification using Microsoft Graph API. I am using this documentation for reference/ I created an app in portal.azure.com and provided Required permission on "Read user mail" under "Microsoft Graph" API and admin consented it through Microsoft Demo tenant. But I am still not able to subscribe to the Microsoft Graph Push Notification REST API and I am getting 400 Bad Request error. I also tried granting all