microsoft-graph

Solved: Getting forbidden when try to create an online meeting using Microsoft Graph with application token

孤者浪人 提交于 2020-01-30 11:51:26
问题 Problem: I need to create an online meeting using Microsoft Graph without an authenticated user. So, I'm getting forbidden status when try to create the online meeting with application token. We have setted the required permissions OnlineMeetings.ReadWrite.All for Application and we have getted administrator consent but is not running. I have followed steps according to Microsoft documentation in https://docs.microsoft.com/en-us/graph/auth-v2-service and https://docs.microsoft.com/en-us/graph

How can I Update the MailboxSettings with Microsoft Graph API

醉酒当歌 提交于 2020-01-30 11:45:30
问题 I want to update the MailboxSettings from different calendar. How Can I build the Request that I can update the MailboxSetting via Microsoft Graph? Here is my code example with the exception: The code example: User obj = GraphServiceClient.Users[roomCalendarId].Request().Select("MailboxSettings").GetAsync().Result; WorkingHours mailboxSettingsWorkingHours = obj.MailboxSettings.WorkingHours; TimeOfDay tOd = new TimeOfDay(start.Hour, start.Minute, start.Second); mailboxSettingsWorkingHours

Microsoft Graph Beta getSchedule API inconsistency subject

只谈情不闲聊 提交于 2020-01-26 04:22:05
问题 I think there might be a bug in the following API endpoint to get calendar events for different meeting rooms: https://graph.microsoft.com/beta/me/calendar/getSchedule. I know it is still beta and I see some inconsistency in returned data for meetings: Testing scenario when the returned data changes: Logged in user: Bogdan C. Add a meeting Query the API and see meeting title as subject Add another meeting Run again the query and see username as subject for the first meeting. As a test

CompactToken parsing failed with error code: 80049217 when using passport library to access Microsoft Graph API

狂风中的少年 提交于 2020-01-25 09:25:07
问题 I am using 'passport-azure-ad-oauth2' npm module, to get an access token, which I could then pass to the MS Graph API. passport.use(new AzureAdOAuth2Strategy({ clientID: process.env.OUTLOOK_CLIENT_ID, clientSecret: process.env.OUTLOOK_SECRET, callbackURL: '/auth/outlook/callback', }, function (accesstoken: any, refresh_token: any, params: any, profile, done) { logger.info('Completed azure sign in for : ' + JSON.stringify(profile)); logger.info('Parameters returned: ' + JSON.stringify(params))

How to pass $value in request to get mime content of mail using graph sdk not api

别来无恙 提交于 2020-01-25 08:22:09
问题 I am using Graph SDK in C# to read mail messages and I am able to do that. I want Mime Content of my mail message. How do we pass $value in my request using SDK. Sample code: mails = await graphserviceclient .Me .Messages .Request() .Top(2) .GetAsync(); Please let me know how we can pass $value in C# code which uses graphserviceclient. 回答1: We are waiting for some metadata updates to make this easier in the SDK. For the moment, the workaround for getting the MIME content looks something like

Bot is not responding to @Mention when sending message using Graph API

旧巷老猫 提交于 2020-01-25 08:06:45
问题 I have created and deployed a bot in Microsoft Teams. Bot Works properly and responds when user talks to the bot using @Mention (e.g. @mybot) in a channel. I just tried to send message to the bot using graph API call: https://graph.microsoft.com/beta/teams/{group-id-for-teams}/channels/{channel-id}/messages Method : POST Content-type : application/json Body : "body": { "contentType": "html", "content": "Hello World <at id=\"0\">standupbot</at>" }, "mentions": [ { "id": 0, "mentionText":

Microsoft Graph API : Restrict scope of calendar.readWrite and Audit mailbox access by Application Permission

风流意气都作罢 提交于 2020-01-25 00:26:07
问题 We are using AD deployed Daemon applications that have full read/write access to user's calendar in office 365 to get meeting notifications from Graph API. We have moved away from EWS because of constant issues and MS depreciating its use. There does not currently seem to be a way of restricting the scope of Office 365 Calendar.ReadWrite permission from the organization level to a group/user. Fortune 500 customers are worried that our application has access to all sensitive data inside their

How to update a Lookup field and a user field in SharePoint with Microsoft Graph?

冷暖自知 提交于 2020-01-24 19:52:09
问题 I'm looking for a way how to update a lookup field and a user field with Microsoft graph ? I can read the item, but I don't find a way to create or update this kind of field even if I put a correct ID value. 回答1: Nowadays it is supported to update lookup fields via Microsoft Graph API. Lets say there is a field named Category , then depending whether lookup field is represented as single or multi valued, the following examples demonstrate how to set lookup field value. for single-valued field

Microsoft graph: get only users from group

好久不见. 提交于 2020-01-24 12:04:19
问题 Just wondering if there's any way to get only the users placed inside an azure ad group. I've tried something like this: var membros = await obtemUtilizadores .Filter("'odata.type' eq '#microsoft.graph.user'") .Select("id,userprincipalname,mail,displayname") .Expand("extensions($filter=id eq 'assistenciasExtensions')") .GetAsync().ConfigureAwait(false); It translates into this url: https://graph.microsoft.com/v1.0/groups/xxxxxx/members? $filter='odatatype eq 'microsoft.graph.user'& $select=id

How to refresh a token for Microsoft Graph

半腔热情 提交于 2020-01-24 03:52:25
问题 I'm connecting to the Microsoft Graph using: public GraphServiceClient GetAuthenticatedClient(string token) { GraphServiceClient graphClient = new GraphServiceClient( new DelegateAuthenticationProvider( async (requestMessage) => { // Append the access token to the request. requestMessage.Headers.Authorization = new AuthenticationHeaderValue("bearer", token); })); return graphClient; } I'm running this code on the server. The token I'm using is being sent to me by an external App. Everything