cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dhruvmathur
Level: Powered On

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
Dual Super User
Dual Super User

Re: Accessing Custom extensionattributes in AAD using Flow

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
Dual Super User
Dual Super User

Re: Accessing Custom extensionattributes in AAD using Flow

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

Highlighted
dhruvmathur
Level: Powered On

Re: Accessing Custom extensionattributes in AAD using Flow

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,425)