microsoft-graph

How do I connect to Exchange Online using OAuth 2.0 in MailKit?

安稳与你 提交于 2020-03-21 10:11:21
问题 I have a web application that sends e-mails to users via Exchange Online (Office365) using MailKit and Basic Authentication. Our company is MS partner and therefor is obligated to turn off Basic Authentication for our services by the end of february 2020. So, I want to use OAuth 2.0 to connect to Exchange Online, similar to this example. In fact, there might be a solution available according to this answer but I'm unable to find anything about it. Right now I'm playing around with MS Identity

Microsoft Graph api code in C# displays only limited number of users

时光毁灭记忆、已成空白 提交于 2020-03-12 06:08:09
问题 I am running below Microsoft Graph Api code: using Microsoft.IdentityModel.Clients.ActiveDirectory; using System; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; namespace AADConsole2 { class Program { private const string aadInstance = "https://login.microsoftonline.com/{0}"; // private const string ResourceUrl = "https://graph.windows.net"; private const string resource = "https://graph.microsoft.com"; private const string GraphServiceObjectId = "XXX";

Microsoft Graph api code in C# displays only limited number of users

心已入冬 提交于 2020-03-12 06:07:33
问题 I am running below Microsoft Graph Api code: using Microsoft.IdentityModel.Clients.ActiveDirectory; using System; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; namespace AADConsole2 { class Program { private const string aadInstance = "https://login.microsoftonline.com/{0}"; // private const string ResourceUrl = "https://graph.windows.net"; private const string resource = "https://graph.microsoft.com"; private const string GraphServiceObjectId = "XXX";

Microsoft graph api - Fetching events returns funky subject

荒凉一梦 提交于 2020-03-05 08:05:36
问题 I suspect that there might be a bug in the graph Api. I have a Powershellscript that fetches events for a series of meetingrooms. the URL i use: "https://graph.microsoft.com/v1.0/users/ roomuserid /Events? $Filter=start/datetime ge '2018-10-29'" the response looks like it should(in Json format), but however, on some events(but not all) the subject field seems to also include the name of the organizer. For example: if John Doe books a meeting in meetingroom 1, with the subject "Meeting1", the

Microsoft graph api - Fetching events returns funky subject

风格不统一 提交于 2020-03-05 08:05:34
问题 I suspect that there might be a bug in the graph Api. I have a Powershellscript that fetches events for a series of meetingrooms. the URL i use: "https://graph.microsoft.com/v1.0/users/ roomuserid /Events? $Filter=start/datetime ge '2018-10-29'" the response looks like it should(in Json format), but however, on some events(but not all) the subject field seems to also include the name of the organizer. For example: if John Doe books a meeting in meetingroom 1, with the subject "Meeting1", the

$expand=manager does not expand manager

陌路散爱 提交于 2020-03-05 07:04:44
问题 When testing https://graph.microsoft.com/v1.0/users/<my-email>/manager , I receive the following response (I replaced values with "HIDDEN"): { "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#directoryObjects/$entity", "@odata.type": "#microsoft.graph.user", "id": HIDDEN, "businessPhones": [ HIDDEN ], "displayName": HIDDEN, "givenName": HIDDEN, "jobTitle": "Director, Information Technology", "mail": HIDDEN, "mobilePhone": HIDDEN, "officeLocation": HIDDEN, "preferredLanguage":

$expand=manager does not expand manager

谁都会走 提交于 2020-03-05 07:03:49
问题 When testing https://graph.microsoft.com/v1.0/users/<my-email>/manager , I receive the following response (I replaced values with "HIDDEN"): { "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#directoryObjects/$entity", "@odata.type": "#microsoft.graph.user", "id": HIDDEN, "businessPhones": [ HIDDEN ], "displayName": HIDDEN, "givenName": HIDDEN, "jobTitle": "Director, Information Technology", "mail": HIDDEN, "mobilePhone": HIDDEN, "officeLocation": HIDDEN, "preferredLanguage":

Changing accountEnabled throws 403 Authorization_RequestDenied

和自甴很熟 提交于 2020-03-05 04:55:06
问题 I am using Client application (Client credentials grant) with defined permissions Application.ReadWrite.All and User.ReadWrite.All (both are included in Bearer token) to change accountEnabled to false for a user, like here: { "accountEnabled": false, "city": "C234", "country": "AFG", "displayName": "Steve Rogers", "givenName": "Steve", "jobTitle": "Azure", "mailNickname": "steve", "postalCode": "Z345", "streetAddress": "S123", "surname": "Rogers", "userPrincipalName": "steve@***.onmicrosoft

SharePoint returns General Exception: An unspecified error has occurred

ε祈祈猫儿з 提交于 2020-03-03 17:15:52
问题 We create a Team with Power Automate using the Graph API from an HTTP Action: We are calling the following URI using application permissions. https://graph.microsoft.com/v1.0/groups('8c250cdd-1f21-405d-b45f-f95cf248e9d8')/sites('root')/webUrl But the result is an HTTP 500 : { "error": { "code": "generalException", "message": "An unspecified error has occurred.", "innerError": { "request-id": "0649718d-057d-4c4c-9fec-986c158376ee", "date": "2019-12-02T09:11:10" } } } Calling the same URL in

Filtering Onedrive items by lastModifiedDatetime

核能气质少年 提交于 2020-03-02 09:22:07
问题 I try to filter OneDrive items from within the Microsoft Graph endpoint, by lastModifiedDatetime property. Something like that : https://graph.microsoft.com/beta/me/drive/special/photos/children?$top=3&$orderBy=lastModifiedDatetime It doesn't work. The error returned is : "message": "The request is not supported by the system." But according to the documentation ( https://dev.onedrive.com/odata/optional-query-parameters.htm#optional-odata-query-parameters ) oderby : Comma-separated list of