microsoft-graph-api

Authenticating against Microsoft Graph with SPA and then using token in Web API

筅森魡賤 提交于 2020-07-07 11:41:04
问题 I have an SPA that authenticates a user, by using msal.js, against an app registrered at the Application Registration Portal. It successfully retrieves a token and everything is fine so far. Then I have a ASP.NET Web API setup that should use the token from the SPA to make requests to Microsoft Graph on behalf of the user and this is where I run into trouble. So far I've set up a OWIN middleware on the API that should validate the token before making a request to the graph but no matter what

Should I make 3rd party API calls in backend or frontend?

旧城冷巷雨未停 提交于 2020-07-07 01:09:08
问题 I have an API and that API needs some data from the Microsft Graph API. I was thinking of implementing an endpoint in my API to refresh the token and use that token to make calls from the frontend. I don't know if that's optimal or safe, hence my question. EDIT 1: To give a better perspective of what I have, this is the logic I have at the moment. Tell me if this is correct please. User requests my API's authorization endpoint, which has the Azure's secret key, then the user is redirected to

How to serialize and Deserialize IGraphServiceClient client object?

风流意气都作罢 提交于 2020-07-05 12:07:52
问题 We are working on a project which uses Microsoft Graph SDK to implement Excel/OneDrive related functionalities. We have a use-case where we need to serialize and deserialize the IGraphServiceClient client reference/object. We tried to deserialize the object but we're getting a NotSerializableException exception. We were exploring SDK and find ISerializer.java class but unable to use it in serialization/Deserialization. Could you please help us how can we get over this issue?

Getting Teams Calls returns Application not registered in our store

我怕爱的太早我们不能终老 提交于 2020-07-05 05:09:12
问题 I'm struggling with Microsft Graph. I want to fetch Teams Calls from the graph API to throw them against our ticket software. Sounds easy at first. And I think it is but I don't get why it won't work. Edit: Just a heads up. I ended up using the Microsoft Graph subscription model. To be clear, I don't want to create a teams app, I just want to fetch Teams Calls/Meetings. This is my code (removed ID's for obvious reasons): class Program { // (Company IDs) static string tenantId = "xxxxxxxx-xxxx

Request to get calendar events responses 404, given the permission assigned and accessToken got using Microsoft Graph API

☆樱花仙子☆ 提交于 2020-07-03 12:59:37
问题 I want to build a web application which has the function to get other peoples' calendar events. I has register the app on https://apps.dev.microsoft.com/ and requested Calendars.Read permission. And I'm sure the Admin has consented to assign these permissions (which I let him to do through the adminconsent page). Below is my ASP.Net Controller code aimed to test the Events API. The targeted API is: MicrosoftGraphCalendarApi = "https://graph.microsoft.com/v1.0/users/{0}/events"; public async

Permissions to add member to group via Graph API

别说谁变了你拦得住时间么 提交于 2020-07-03 08:07:48
问题 I am trying to add a member via this MS Graph API: https://docs.microsoft.com/en-us/graph/api/group-post-members?view=graph-rest-1.0&tabs=http but am running into permission issues. The request returns back "code": "Authorization_RequestDenied", "message": "Insufficient privileges to complete the operation." I am able to call APIs like https://docs.microsoft.com/en-us/graph/api/group-list-members?view=graph-rest-1.0&tabs=http with no permission problem, and I have Group.ReadWrite.All and User

Permissions to add member to group via Graph API

你离开我真会死。 提交于 2020-07-03 08:04:44
问题 I am trying to add a member via this MS Graph API: https://docs.microsoft.com/en-us/graph/api/group-post-members?view=graph-rest-1.0&tabs=http but am running into permission issues. The request returns back "code": "Authorization_RequestDenied", "message": "Insufficient privileges to complete the operation." I am able to call APIs like https://docs.microsoft.com/en-us/graph/api/group-list-members?view=graph-rest-1.0&tabs=http with no permission problem, and I have Group.ReadWrite.All and User

Use of Custom Properties from calendar events in Outlook 365

天涯浪子 提交于 2020-06-29 18:47:31
问题 I created an Outlook Add-In using JavaScript Office to store custom properties into a calendar event. I used the following call to retrieve data: event.loadCustomPropertiesAsync(callback) Everything works fine in the Add-In. I want to build a Universal App and be able to retrieve the same data. But I can't find anything to do it with the current API or Graph. Is it being developed ? Can someone point me in the right direction to solve my problem? How can we get the Graph Beta version? Thanks

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

Microsoft Graph API Groups Delta Query Never Returns Delta Query (Infiinite loop with nextLink)

瘦欲@ 提交于 2020-06-29 07:16:48
问题 While working with Microsoft Graph Explorer, I noticed that when you submit a groups delta request like https://graph.microsoft.com/beta/groups/delta, you will get a response with the @odata.nextLink available. However, when I follow the provided link, I start getting exactly the same set of groups as in the previous response with another @odata.nextLink leading to the endless recursion if I keep following the links. The expected behavior is to get @odata.deltaLink at some point but in never