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

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (4,505)