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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Azure AD:Get Group Mem...
Power Automate
Unanswered

Azure AD:Get Group Members get the department attribute

(0) ShareShare
ReportReport
Posted on by 26

Hi

 

Is it possible to use the Azure AD connector: Get Group Members to retrieve the Department Attribute. I'm trying to get all members from a specific AAD group and there attributes. But noticed the "Department" was missing. Is there a workaround?

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @MP_Squared,

     

    Yes, there is a workaround. You could use a retrieve the group via the Graph API and $expand on members. In the response you should see the department field values as well.

     

    Below is an example with Send an HTTP request from the Office 365 Groups connector.

     

    https://graph.microsoft.com/v1.0/groups/?$filter=displayname eq '@{variables('GroupDisplayName')}'&$expand=members

     

    getdepartment.PNG

  • MP_Squared Profile Picture
    26 on at

    @Expiscornovus Thanks for the workaround! Another question, how would I take the data from the HTTP request and write it back to a sharepoint list.  

  • Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @MP_Squared,

     

    You can use a Select to retrieve the properties that you want from the members array, which should be nested within the body response.

     

    After that you can loop through every item of the outputs of the Select and create a related item in the list for that. 

     

    Below is another example.

     

    exportusersformgroup.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard