Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Answered

Accessing Custom extensionattributes in AAD using Flow

(0) ShareShare
ReportReport
Posted on by 59

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.

  • FraserM Profile Picture
    103 on at
    Accessing Custom extensionattributes in AAD using Flow
    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
  • mickyb23uk Profile Picture
    50 on at
    Re: Accessing Custom extensionattributes in AAD using Flow

    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

  • dhruvmathur Profile Picture
    59 on at
    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 
  • Verified answer
    RezaDorrani Profile Picture
    12,141 on at
    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.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics