cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Highlighted
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
Highlighted
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
Advocate I
Advocate I

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
FirstImage

Microsoft Ignite 2020

Check out the announcement of Power Platform content at Microsoft Ignite!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (7,867)