microsoftgraph / aspnet-snippets-sample

A repository of code snippets that use Microsoft Graph to perform common tasks such as sending email, managing groups, and other activities from an ASP.NET Core MVC app. This sample uses the Microsoft Graph .NET Client Library to work with data, and the Microsoft Identity Web Library for authentication on the Microsoft identity platform v2.0 endpoint.
MIT License
189 stars 101 forks source link

How to set up open extension in application manifest under optionalclaims? #40

Closed nukec closed 4 years ago

nukec commented 6 years ago

I added open extension to a user object. Then I added value for that open extension for user. Let’s say extension name is organisationId. How can I set up this extension in ad application manifest under optionalClaims to be returned to signed in user in claims?

In old ad graph api I created directory extension and then I applied name to optionalClaims like this extension_applicationId_organisationId, but how do I do it if I add open extension with new api? How to pass that open extension to claims to signed in user?

jasonjoh commented 4 years ago

I apologize for the extremely late response. Unfortunately we're not set up to answer general Graph/Azure questions here. Stack Overflow would be a better place for these types of questions.