cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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 II
Dual Super User II

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

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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Users online (6,192)