microsoft-graph-api

Tenant does not have a SPO license when using Microsoft Graph API with Application Permissions

若如初见. 提交于 2021-01-29 15:01:54
问题 We're getting a 400 error with the message "Tenant does not have a SPO license" when we try to access the Sharepoint-endpoints in the Microsoft Graph v1.0 API. We've registered our Azure AD app and assigned Application Permissions (as opposed to Delegated) for the relevant endpoints, as we need to access the endpoints server to server (ie. outside the context of an authenticated user). The tenant is connected to an Office 365 Business subscription, that we can assign to users, but the tenant

How to subscribe calendar event if calendar is given delegated permission using ms-graph api

守給你的承諾、 提交于 2021-01-29 14:32:22
问题 Change notifications of Outlook events can be created by subscribing following way using ms graph api . { "changeType": "created,updated,deleted", "notificationUrl": "notificationUrl", "resource": "Users/xxx169f-xxx-xxxx-afd2-936c51e6xxxx/Events", "expirationDateTime":"2016-11-20T18:23:45.9356913Z", "clientState": "secretClientValue" } but how do i get notifications similar way for calendars that have given delegated permission ? 回答1: You can validate that you can access the shared calendar

Resource Not Found for the segment (filename) when uploading file to Onedrive

∥☆過路亽.° 提交于 2021-01-29 14:25:34
问题 Hey im trying to use the Microsoft Graph API to upload some files to my Drive. I am following this link and gave my app the appropriate permissions. After signing in when i attempt to run the code below: URL = "https://graph.microsoft.com/v1.0/users/USERNAME/drive" directory = "directory-on-my-local-machine/" for i in os.listdir(directory ): if i.endswith('.docx'): file_path = os.path.join(directory , i) file_handle = open(file_path, 'rb') print('uploading... ', i) r = requests.put(URL + '/'

How to trace back bounced messages

心已入冬 提交于 2021-01-29 13:16:17
问题 I have a web services which allows me to send messages via office 365 hosted service. So far all works fine. But there is cases when an email bounces and I would like to mark that email bounced / undelivered in my CRM. In some cases the remote host returns undelivered: and the original subject as well as the email address it was send to. In case of google addresses this is not the case. So I can’t parse the subject to get the original message. Is there anywhere in the body or header any info

How to use Graph Explorer SDK?

做~自己de王妃 提交于 2021-01-29 12:35:31
问题 public class GraphService { public async Task<dynamic> CreateGraphClient() { string clientId = ""; string tenantID = ""; string redirectUri = "http://localhost"; //string clientSecret = ""; string email = "myemail"; SecureString password = new NetworkCredential("", "mypass").SecurePassword; string[] scopes = { "https://graph.microsoft.com/User.Read" }; IPublicClientApplication publicClientApplication = PublicClientApplicationBuilder .Create(clientId ) .WithTenantId(tenantID) .Build();

Microsoft exchange graph API Unable to delete Conversation

故事扮演 提交于 2021-01-29 12:31:03
问题 I am invoking Micosoft graph API's to integrate its functionality in my custom application. When I go to invoke API to delete conversation using group id and conversation ID, I get below response . I am looking at API as mentioned in official Graph API docs. Any idea what is wrong ? I have Group.ReadWriteAll permission for User { "error": { "code": "ErrorInvalidOperation", "message": "ConversationId isn't supported in the context of this operation.", "innerError": { "request-id": "d90689bb

MS Graph - Conversation delta API not working for some channels

馋奶兔 提交于 2021-01-29 11:26:49
问题 For some channels, when conversations api is hit /beta/teams/<team id>/channels/<channel id>/messages/delta , we get an empty batch with next link. On hitting this next link, we get following error response. { "error": { "code": "BadRequest", "message": "Parameter 'DeltaToken' not supported for this request.", "innerError": { "request-id": "b886b260-78ac-43b5-92d4-d0cb11136962", "date": "2019-12-09T09:39:16" } } } From the analysis of the same issue for the other channels, this issue seems to

Can I get a list of all Shared Mailboxes using Microsoft Graph Api

﹥>﹥吖頭↗ 提交于 2021-01-29 10:53:52
问题 I would like to get a list of all the Shared mail boxes on my exchange server. An then I require to get details of each member of the shared mail boxes. How to achieve this via the graph api I know we can do this via powershell but I would like to use the rest APIs in my javascript application. I've come across multiple threads/forums claiming that microsoft had this in roadmap so have they implemented it? 回答1: This isn't a supported scenario with Microsoft Graph. For administrative managing

Channel Tabs in Teams through Graph-API

蓝咒 提交于 2021-01-29 10:47:52
问题 is there a possibility to get Name/Id/Url of tabs in Teams-Channel? If no, are there Plans to provide it through Graph API? ETA? Thanks in advance 回答1: I can't give you a timeline as I am not on that team, but I do know the team are actively working on an API for accessing tabs. I expect you will hear some news during Ignite. 回答2: The api was just released! checkout the documentation here is a sample POST /beta/teams/{id}/channels/{id}/tabs { "name": "My Contoso Tab", "teamsAppId": "06805b9e

Office365 Reports via Graph API

陌路散爱 提交于 2021-01-29 10:32:25
问题 I am trying to fetch various usage reports for Office365 using Graph API. I created an Azure AD app and added the following permissions: Read All Usage Reports (Reports.Read.All) Read Directory Data (Directory.Read.All) Admin also gave a consent. I am experiencing a problem when I'm trying to fetch different usage reports. The following response is returned { "error": { "code": "UnknownTenantId", "message": "We do not recognize this tenant ID {actual tenant id}. Please double-check the tenant