cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dhruvmathur
Advocate I
Advocate I

Accessing Custom extensionattributes in AAD using Flow

Would like to be able to access the custom extensionattribute properties from Flow. At the moment, the Office365 connector does not show any of the custom properties, and I have not found an easy way to do it. We at our business use one of the custom properties to store information that I need to get to from an approval Flow I am writing, and the Flow is based on that custom property to determine the level the approval needs to go up to, based on this property.

1 ACCEPTED SOLUTION

Accepted Solutions
RezaDorrani
Dual Super User II
Dual Super User II

Hi @dhruvmathur 

 

I believe you would have to use the graph api currently to grab the custom attributes

https://docs.microsoft.com/en-us/graph/api/user-get?view=graph-rest-1.0&tabs=http

 

Calling graph api with Flow

https://www.lee-ford.co.uk/using-flow-with-graph-api/

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
RezaDorrani
Dual Super User II
Dual Super User II

Hi @dhruvmathur 

 

I believe you would have to use the graph api currently to grab the custom attributes

https://docs.microsoft.com/en-us/graph/api/user-get?view=graph-rest-1.0&tabs=http

 

Calling graph api with Flow

https://www.lee-ford.co.uk/using-flow-with-graph-api/

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

I was able to get this to work with the help of @trevorseward . Here is a look at the Flow:

 

In the Get my profile (v2), make sure to add the fields you want. onPremisesExtensionAttributes will give you the extension attributes. For the JSON, parse the User from Graph API field from the Get my profle (v2)

FlowImage.png

{
"type": "object",
"properties": {
"@@odata.context": {
"type": "string"
},
"onPremisesExtensionAttributes": {
"type": "object",
"properties": {
"extensionAttribute11": {
"type": "string"
}
}
}
}
}
 
Since I was only looking at a particular extensionattribute, I only added that to the JSON. Big thanks to @trevorseward and @RezaDorrani 

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Top Kudoed Authors
Users online (3,016)