microsoft-graph

Difference between Office 365 REST Api and Microsoft Graph

梦想的初衷 提交于 2020-01-24 03:21:28
问题 I would like to know difference between Office 365 REST API and Microsoft Graph, since we could find similar functionality for both of these. https://msdn.microsoft.com/en-us/office/office365/howto/rest-api-overview Following is the text from above link: Office 365 API functionality is also available through Microsoft Graph, a unified API that includes APIs from other Microsoft services such as Outlook, OneDrive, OneNote, Planner, and Office Graph, accessible through a single endpoint and

Re-Generate Access Token From Refresh Token

不想你离开。 提交于 2020-01-24 01:57:47
问题 I have a refresh token that got generated for office365 login. I generated it using the following set of permissions openid offline_access Calendars.ReadWrite.Shared profile email https://graph.microsoft.com/User.Read Now I want to generate an access token from the refresh token with some different set of permissions like following Group.Create, Group.ReadWrite.All, Directory.ReadWrite.All Is it possible to have an access token from refresh token with some different set of permissions? Any

listing Microsoft Teams tabs always returns 404

心不动则不痛 提交于 2020-01-23 13:22:59
问题 I've been trying this scenario on a couple of different tenants so far: use an existing team or create a new one through the UI add a tab (let's say OneNote) to a channel query the list tabs endpoint (through graph explorer) I always get a 404 response. If I replace in my query tabs by messages I get the messages. In terms of permissions I have the default graph explorer one + Group.Read.All. Here is the latest request Id I got 2a180611-b637-4aa4-be27-9e42cbb27ab9 on tenant dev2tolead12 . (

listing Microsoft Teams tabs always returns 404

老子叫甜甜 提交于 2020-01-23 13:22:29
问题 I've been trying this scenario on a couple of different tenants so far: use an existing team or create a new one through the UI add a tab (let's say OneNote) to a channel query the list tabs endpoint (through graph explorer) I always get a 404 response. If I replace in my query tabs by messages I get the messages. In terms of permissions I have the default graph explorer one + Group.Read.All. Here is the latest request Id I got 2a180611-b637-4aa4-be27-9e42cbb27ab9 on tenant dev2tolead12 . (

Can't Update Users with GraphServiceClient

三世轮回 提交于 2020-01-23 10:39:08
问题 My problem is exactly what it says in the title. If I want to interact with users using MicrosoftGraph, I have a few options: graphClient.Users.Request.GetAsync() graphClient.Users.Request.AddAsync() I would like to see: graphClient.Users.Request.UpdateAsync() Unfortunately, my problem is that I don't see it. Where is it? I see UpdateAsync on a few other objects... why is it not on users? Did I miss some crucial piece of documentation? 回答1: It is on User. You're missing a few things. You

commitFileFailed during mobileAppContentFile Commit

南楼画角 提交于 2020-01-23 03:51:05
问题 I'm working on a JS script (ru that will upload an app to intune. When I try to commit an app content file to intune I always receive commitFileFailed, and I don't see any reason for that. Is there any way to figure out why it fails? I think it may be because of the encryption, but I'm not really sure. This is how I encrypted it: const key = Crypto.randomBytes(32); const hmacKey = Crypto.randomBytes(32); const iv = Crypto.randomBytes(16); const cipher = Crypto.createCipheriv('aes256', key, iv

Getting error code `ErrorIrresolvableConflict` responses when trying to create events on a calendar using Outlook REST API

荒凉一梦 提交于 2020-01-19 21:36:30
问题 In the last few days (starting on Oct 28, 2019), without any code change on our part, we've started seeing a significant amount of requests from our server to create events on a calendar (using this endpoint: https://docs.microsoft.com/en-us/previous-versions/office/office-365-api/api/version-2.0/calendar-rest-operations#CreateAnEvent) returning an error. Error is: ErrorIrresolvableConflict , with the error message: The send or update operation could not be performed because the change key

NodeJS base64 image encoding not quite working

巧了我就是萌 提交于 2020-01-17 01:48:05
问题 I am using API to get user's profile photo from O365 cloud. Based on the doc it says response contains *The binary data of the requested photo. * I would like to use this image to be displayed by Data URI format. Ex:- "data:image/png;base64,iVBORw0KGgoAAA ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4 //8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU 5ErkJggg==" where everything after data:image/png;base64,.... is image data in Base64. I unable to get Base64 encoding working for the image data I

Set value for Multiple Lookup list in sharepoint in C#

陌路散爱 提交于 2020-01-16 18:18:28
问题 I try to set the sharepoint list items and update lists, right now the sharepoint list is a lookup with multiple value I call POST /sites/{}/lists/{list_guid}/items/{item_id}/fields with Json { "MyListLookUpValue":[ "LookupId":1, "LookupValue":"My name", "Email":"my@email.se", ] } (This isn't the code i use, but a representation) I have found that i should specify the type but the thing is that i dont know the typ if it would be a list of Strings i could add "MyListLookUpValue@odata.type":

Controlling an application's API access to a SharePoint site

非 Y 不嫁゛ 提交于 2020-01-16 14:35:49
问题 I have an external program that I have scheduled to run once a day (i.e. no user interaction). This program should upload a file to a SharePoint Online site, using Microsoft Graph API. I'm able to enable this in Azure Active Directory by registering an app, and giving this app the application permission File.ReadWrite.All , then sending a PUT request to https://graph.microsoft.com/v1.0/drives/{drive-id}/items/{parent-id}:/{filename}:/content However, by granting File.ReadWrite.All , the