web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Accessing Custom exten...
Power Automate
Unanswered

Accessing Custom extensionattributes in AAD using Flow

(0) ShareShare
ReportReport
Posted on by 61

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.

Categories:
I have the same question (0)
  • Verified answer
    RezaDorrani Profile Picture
    12,143 on at

    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.

  • dhruvmathur Profile Picture
    61 on at

    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 
  • mickyb23uk Profile Picture
    50 on at

    Hi @dhruvmathur 

    Would it be possible to get a full view of the Flow for those of us that aren't super familiar with it?

    I have exactly the same challenge with pulling custom attributes from AAD for users and the Flow platform has changed and morphed since your original post (and screenshots in 2019) so i'm hoping you'd be able to share more 🙂

     

    Thanks,

    Mike

  • FraserM Profile Picture
    103 on at
    thank you @dhruvmathur 

    This was the magic I was needing to pull users initials (we are syncing them from on prem AD "initials" to 365 "extensionAttribute1")
     


    Your JSON schema example also came in handy.

    Kudos points to you!  Your post is still good in 2025!

    -F

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard