office365

Adding users to Exchange admin role groups via API?

孤者浪人 提交于 2020-06-29 15:00:30
问题 Is it possible to add users/members to Exchange admin role groups via an API? The equivalent PowerShell cmdlet would be Add-RoleGroupMember and the specific group I wish to add to is View-only Organization Management . Microsoft Graph has an endpoint to add to directory roles, however I can't seem to find a "View-only Organization Management" group listed in my tenant's DirectoryRoles or DirectoryRoleTemplates, so I suspect MS Graph hasn't got access to these Exchange role groups. Poking

How to add a new connection using Office JS Excel Add-In to retrieve and show data from an OData Service?

和自甴很熟 提交于 2020-06-29 03:47:13
问题 We use the following method to add a connection to our OData service in VSTO Excel Add-In. Now we are planning to rewrite the add-ins using Office JS. What is the similar approach in Office JS Excel Add-In to load data from the OData service? string connectionString = "DATAFEED;Data Source=http://localhost:8443/OData/ODataService.svc/Products?$filter=Company_Code eq 'TY';Namespaces to Include=*;Max Received Message Size=4398046511104;Integrated Security=Basic;User ID=testuser;Password=123

Office365 REST API - Calendar event attachments not visible for recipients

不羁的心 提交于 2020-06-28 10:35:44
问题 The add attachment endpoint seems buggy. Files attached to a calendar event are not visible to the calendar recipients. The attachments are visible to the event creator. My code had been working for months until recently, which leads me to believe this is a regression. Steps to reproduce There must be two users - the creator and the recipient. Create an event via https://graph.microsoft.com/v1.0/me/calendars/{calendarId}/events Attach a file to the event via https://graph.microsoft.com/v1.0

MailKit unsuccessful SMTP OAuth with Microsoft 365 server

此生再无相见时 提交于 2020-06-28 03:57:11
问题 I'm using MailKit 2.6.0.0 to connect to Microsoft 365 using OAuth for authentication with POP3, IMAP, and SMTP. The ImapClient and Pop3Client authenticate successfully but the SmtpClient does not. Here's the protocol log from MailKit: Connected to smtp://smtp.office365.com:587/?starttls=always S: 220 MN2PR04CA0011.outlook.office365.com Microsoft ESMTP MAIL Service ready at Sat, 30 May 2020 07:48:32 +0000 C: EHLO [192.168.1.240] S: 250-MN2PR04CA0011.outlook.office365.com Hello [my-ip] S: 250

Write requests are only supported on contained entities, Microsoft Graph API

自作多情 提交于 2020-06-28 02:38:32
问题 POST https://graph.microsoft.com/v1.0/Groups/bb754bb6-xxxx-xxxx-8e66-4c57c626ee29/members Accept: application/json Authorization: Bearer <access key> Content: { "directoryObject": { "id": "5cb55683-xxxx-xxxx-xxxx-5e163c939005" } } Response: { error: { code: "BadRequest" message: "Write requests are only supported on contained entities" innerError: { request-id: "20167459-5495-4034-9e27-503c64340c1f" date: "2015-11-27T14:25:20" }- }- } I am able to get members of a group but not able add a

Write requests are only supported on contained entities, Microsoft Graph API

こ雲淡風輕ζ 提交于 2020-06-28 02:37:41
问题 POST https://graph.microsoft.com/v1.0/Groups/bb754bb6-xxxx-xxxx-8e66-4c57c626ee29/members Accept: application/json Authorization: Bearer <access key> Content: { "directoryObject": { "id": "5cb55683-xxxx-xxxx-xxxx-5e163c939005" } } Response: { error: { code: "BadRequest" message: "Write requests are only supported on contained entities" innerError: { request-id: "20167459-5495-4034-9e27-503c64340c1f" date: "2015-11-27T14:25:20" }- }- } I am able to get members of a group but not able add a

Microsoft Azure Graph API download itemAttachment content

匆匆过客 提交于 2020-06-27 23:10:26
问题 When I open email message in the office365 web browser page, there is an option to DOWNLOAD contents of the attached to this email itemAttachment ( another message attached to the current one using Microsoft Outlook ) - *.eml file, (contentType: RFC-822). However, when I'm trying to get the contents of this itemAttachment through Graph API (same operation), the contentBytes response property is not present. { "@odata.context": "https://graph.microsoft.com/beta/$metadata#users('bbbbb')

Microsoft Azure Graph API download itemAttachment content

随声附和 提交于 2020-06-27 23:10:14
问题 When I open email message in the office365 web browser page, there is an option to DOWNLOAD contents of the attached to this email itemAttachment ( another message attached to the current one using Microsoft Outlook ) - *.eml file, (contentType: RFC-822). However, when I'm trying to get the contents of this itemAttachment through Graph API (same operation), the contentBytes response property is not present. { "@odata.context": "https://graph.microsoft.com/beta/$metadata#users('bbbbb')

Unable to get worksheets for shared workbooks using Microsoft Graph API REST endpoint

。_饼干妹妹 提交于 2020-06-27 19:06:17
问题 how to get worksheets of a shared workbook /workbook/worksheets. I am able to get worksheets for personal workbooks but get invalid resource for shared workbooks 回答1: Finally got it to work! In order to get workseets of shared workbooks in office 365 need to use the following endpoint https://graph.microsoft.com/v1.0/drives/{remoteItem.parentReference.driveId}/items/{remoteItem.id}/workbook/worksheets In order to get {remoteItem.parentReference.driveId} and {remoteItem.id} use following

Unable to get worksheets for shared workbooks using Microsoft Graph API REST endpoint

℡╲_俬逩灬. 提交于 2020-06-27 19:05:07
问题 how to get worksheets of a shared workbook /workbook/worksheets. I am able to get worksheets for personal workbooks but get invalid resource for shared workbooks 回答1: Finally got it to work! In order to get workseets of shared workbooks in office 365 need to use the following endpoint https://graph.microsoft.com/v1.0/drives/{remoteItem.parentReference.driveId}/items/{remoteItem.id}/workbook/worksheets In order to get {remoteItem.parentReference.driveId} and {remoteItem.id} use following