office365

Create calendar event using Microsoft Graph: ErrorAccessDenied

风流意气都作罢 提交于 2019-12-08 07:19:11
问题 I've been using curl and the Outlook REST API v1.0 (with basic authentication) to create calendar events in Outlook calendars. Basic authentication is soon being deprecated so I am now trying to migrate to Microsoft Graph v1.0 with OAuth 2. I have got some way down the road but am stuck at "ErrorAccessDenied" when running the POST to create the event. This is what I've done so far: Registered my app (curl) here: https://apps.dev.microsoft.com/#/appList, setting Application Permissions to

How to get recently accessed OneDrive for Business files?

我是研究僧i 提交于 2019-12-08 07:12:43
问题 I would like to get a list of both opened (without edit) and modified files. I looked at /Recent api from Microsoft Graph and it does not return the recently viewed files for OneDrive Business, but only the modified files. I also looked at: https://graph.microsoft.com/beta/me/insights/used This api on the paper does exactly what I needed, it returns lastAccessedDateTime "lastUsed": { "lastAccessedDateTime": "2018-05-03T15:31:53.913Z", "lastModifiedDateTime": "2018-04-27T14:50:04.066Z" }, BUT.

How to get a refresh token and access token in office 365 using PHP

怎甘沉沦 提交于 2019-12-08 07:10:43
问题 May i know how to get refresh token for my account ,If i have refresh token using that how could access my new access token. 回答1: Have a look at the Graph API documentation, it show you how to use the OAuth2 authentication to login to your app, and get a refresh token. https://graph.microsoft.io/docs/authorization/app_authorization You still have to write your own http request to get the access token, but that should be pretty straight forward. 回答2: We can get access and refresh token without

Use multiple scopes with the Office 365 API

耗尽温柔 提交于 2019-12-08 06:11:28
问题 I want to use the two scopes https://outlook.office.com/Mail.Read and https://outlook.office.com/calendars.read to read an authenticated users' email and calendar. I followed the official .Net (WPF) tutorial to authenticate the user and obtain a token. It works well as long as my scope is only one of the ones above. As soon as I use both, I don't get back a token when I try to obtain it. That's basically what I do: private static string[] scopes = { "https://outlook.office.com/Mail.Read",

Microsoft Graph API - Read Office 365 SharePoint List and Pull Data (Images)

偶尔善良 提交于 2019-12-08 05:59:23
问题 Refrencing the following post: Microsoft Graph API - Office 365 Access SharePoint Nested Folder Items I'm able to get a list of Images via the Graph API. I have an MVC Azure App where I'm making these Graph API calls. However when I try to access the Image via the webUrl property, I get access denied. I've been able to get around this by using the @microsoft.graph.downloadUrl property which I can access, download it via HttpClient convert to Byte Array and transform into a Thumbnail. However

How do I send Email with inline Attachments

喜欢而已 提交于 2019-12-08 05:52:19
问题 I send the description my team is having with the json integration with Office API 365. We want to send an email with inline attachments through the JSON API. With that objective, what we are doing: Create an empty draft message using reply operation; Send the several inline attachments; Update the body of the draft message (with cid images inline); Send the message; What is our issue with the API? We are unable to set the "ContentType" properties when we submit the attachments to the Office

Is there any API to provision the Office 365 Group Site?

本秂侑毒 提交于 2019-12-08 05:38:27
问题 When we click the File/Site in OWA, it will redirect to a SharePoint page like this: https://.sharepoint.com/_layouts/groupstatus.aspx?id=&target=documents In this page, the office 365 group site will be created if the Group site is not existing. Like user OneDrive site, we can provision it via Microsoft.SharePoint.Client.UserProfiles.PeopleManager.GetDefaultDocumentLibrary So is there any API provisioning group site for specified group? Microsoft Graph API, AAD Graph or SharePoint Client API

Create an Office365 mailbox from within C# Web API method

扶醉桌前 提交于 2019-12-08 05:37:56
问题 Context I have an ASP.NET Web API application invoked by an ASP.NET MVC application. Inside the Web API, I have a method that will need to create an Office365 mailbox amongst other stuff (create folders, create a contact, create a signature etc.…) The creation of that mailbox actually hides few steps that need to occur in a particular order: Create a User in the local Active Directory (return true or false). Force AD Connect to synchronize between the local AD and the Azure AD because there

EWS error message: “403: Forbidden - Not enough scopes”

蓝咒 提交于 2019-12-08 05:33:58
问题 Last week I made a question in here about EWS, where I got the error message saying: 401: Unauthorized - Invalid access token I managed to resolve this error by using an X.509 certificate instead of client credentials (client id abnd client secret from AAD). Now, with the use of the certificate, I receive a new error message saying: 403: Forbidden - not enough scopes I believe this has something to do with the permissions in AAD? I permissions are as follow (only one permission): Application

Office 365 API get user details

浪子不回头ぞ 提交于 2019-12-08 04:58:44
问题 When I use the url https://outlook.office365.com/EWS/OData/Users I can get all users in a company, but how can I get more details about a specific user? Such as in Contacts : https://outlook.office365.com/EWS/OData/Me/Contacts There is very little information given in Users ( Email , Alias , DisplayName ). What if I need to get a user's phone or company name and so on? Are there any other ways? 回答1: These are actually two different things. The Users node isn't "GET"-able, you have to supply a