azure-ad-graph-api

Add event to O365 group calendar with “Application” permission

做~自己de王妃 提交于 2019-12-11 12:18:43
问题 Use Case My application needs to dynamically create Office 365 Outlook calendars, share them with a variable number of Office 365 users, and manage the calendar events at any time. Approach Since the application needs to manage the calendars at any time, it needs to authenticate with Application Permission. Using the Groups API, I can do the following: Create the group (and therefore the calendar) Add members Create events (in the calendar) Problem The problem is that creating events is "Not

Azure Active directory Sharepoint & Graph API

て烟熏妆下的殇ゞ 提交于 2019-12-11 08:14:46
问题 I am in a bit of confusion how to get a bearer token that will work for a sharepoint sites as well as the graph api. We are using MFA (Multi factor authentication) so we get a text message when the user tries to login. This all works and we get a token back but the resource I am pointing to is https://srmukdev.sharepoint.com/, how can we use this token to access the https://graph.microsoft.com/ api. At the moment it doesn't work. I can make separate login requests, but we dont want to do this

How can I filter emails from a specific email address on Office 365 API?

老子叫甜甜 提交于 2019-12-11 08:09:57
问题 I've users with thousands of emails but I need to fetch only unread emails from specific people. I have the following call but it is not working for me. curl -i https://graph.microsoft.com/v1.0/me/messages$filter=From/EmailAddress/Address eq 'alerts-noreply@mail.windowsazure.com' H 'Content-Type: application/x-www-form-urlencoded' -H 'Authorization: Bearer token ....' { "error": { "code": "BadRequest", "message": "Unsupported segment type. ODataQuery: users/020f1da4-031d-4....26513bb0

Microsoft Azure Graph API - AppRoleAssignedTo not working?

三世轮回 提交于 2019-12-11 06:56:28
问题 I have searched for an answer to this, but don't seem to be finding a reliable answer. I am attempting to delete an application (servicePrincipal) in our tenant through the Graph API. I have all of the code (Java) to get my access token, make a call to /servicePrincipals, and then use that information to retrieve each servicePrincipal's appRoleAssignments. That is working. The problem is that the Graph API and the Azure AD Graph API seem to behave differently. I was initially using the AAD

Azure AD B2C Custom User Attributes

ⅰ亾dé卋堺 提交于 2019-12-11 06:06:16
问题 I'm new to the Azure B2C world. I'm attempting to create a Custom User attribute to store data for our application. I've created it in the Azure portal and assigned it to my Signup/SignIn policy. However, I want to be able to update/read this value programtically. I've been going down the route of using Graph API and registering Extensions. So two questions: 1) Are extensions/custom attributes the same thing? 2) I've tried this code and the returned extensions are always empty: public void

This line hangs forever: authContext.AcquireTokenAsync(“https://graph.windows.net”, credential);

烈酒焚心 提交于 2019-12-11 06:04:56
问题 My issue is: When I use Microsoft's project, the line of code mentioned in the title runs and authenticates correctly, and I can perform operations on users as demonstrated in the "B2CGraphClient" sample project. However when I copy-and-paste B2CGraphClient.cs into my web application, this line of code hangs forever. How can this be? The line that hangs is #184 in B2CGraphClient.cs . Details: I am using the sample project named "B2CGraphClient" mentioned in this article, whose zipfile is

Where's the Correlation ID in the Graph API Response?

不羁的心 提交于 2019-12-11 05:42:21
问题 I'm trying to provide the correlation id for this issue but I'm not sure how to obtain it. I assume it should be in response, is that correct? Is it the client-request-id maybe? HTTP Response HTTP/1.1 403 Forbidden Cache-Control: no-cache Pragma: no-cache Content-Type: application/json;odata=minimalmetadata;streaming=true;charset=utf-8 Expires: -1 Server: Microsoft-IIS/8.5 ocp-aad-diagnostics-server-name: CGa9FFPZASZM+usTGvTzaOZ4zSMxhpbWh2mO9+eJZWs= request-id: 6ddd7a86-02c9-4dcf-9932

Insufficient privileges error when trying to fetch signed in user's group membership using Azure AD Graph API

无人久伴 提交于 2019-12-11 05:36:50
问题 I need to be able to get the signed in user's group membership so that I can verify whether he is part of a specific group. However I am getting "Insufficient privileges to complete the operation." exception using the Azure AD graph API client library. I am a co-admin of a subscription and I have created a new Azure AD application to authenticate against the default directory and configured the "Permission to Other application" section as in the below screenshot. Azure AD Application

Unique user id in multi tenant Azure AD apps

依然范特西╮ 提交于 2019-12-11 04:32:02
问题 Do you know the unique user id in multi tenant Azure AD apps pattern? I'm now developing app using Microsoft Graph with Azure AD multi-tenant application pattern. For identifying each user I want to know the unique id - I'll use it as a key in our own database to save user's data. In this reference, id parameter in user object is "The unique identifier for the user", but I wonder is it unique id in each tenant or in all tenant ? It is important thing because my app will use in multi tenant.

Custom Attributes/Properties in AAD .. Finding them in MS Graph

折月煮酒 提交于 2019-12-11 04:16:01
问题 I have large AAD Dynamic group that I need to search and query membership for (100K+ member group) and search for users by name. This group is generated based on a custom attribute on the user in AAD. I am trying to figure out if I can get this information out the MS Graph or if I need to move these calls to the AAD Graph ? I've checked the users for extensions and schema data but there doesn't seem to be anything there. Are custom attributes not replicated in MS Graph? The problem I am