Let's POWER Automate

From no-code to low-code

Menu
  • Expressions
  • Filters
  • General
  • Application specific solutions
    • Dataverse
    • Excel
    • Forms
    • Outlook
    • Planner
    • Power Apps
    • SharePoint
    • Teams
  • Triggers
  • Ready to use solutions
    • Approval Process Template
    • Task Delegation App
    • The Ultimate Power Automate expressions cheat sheet
    • Power Automate HTTP requests to SharePoint cheat sheet
    • Power Automate HTTP requests to Graph API cheat sheet
  • ABOUT ME
  • Get help with your flow
  • POWER PLATFORM SERVICES
Menu

How to get Microsoft 365 group owners in Power Automate

Posted on June 12, 2022February 28, 2024 by Tom

“There’s an action to list M365 group members, but what about the group owners, does Power Automate have an action to get them?”


Power Automate takes a different approach on M365 groups depending on user roles. You can easily work with members using designated actions, but there’s no action for owners. If you want to work with the owners, you must do that via the Graph API. That applies to all operations, let it be listing the owners, or removing them. But how do you call the Graph API?

Get the group ID first

Unless you know the M365 group ID, you’ll have to get it first as the call needs it. Get it by listing all the groups you own or belong to, and filter by the group name.

The outcome of the ‘Filter array’ will be just the single group, and its ID will be among the dynamic contents.

Send the request to Graph API

A full HTTP request is a premium action in Power Automate, but there’s another action that’s included in the free version. It’s called ‘Send an HTTP request’ and you can find it in the Office 365 Groups group of actions.

Add the action to your flow to send the HTTP request below.

Method: GET

Uri: https://graph.microsoft.com/v1.0/groups/<groupID>/owners

Note: <…> is a placeholder, replace it including the < and > with the group ID.

Don’t worry about the ‘Apply to each’. If you use the output of the ‘Filter array’ it’ll contain only a single group = it’ll run only once.

Power Automate get group owners

Extract the owners

Since it’s an HTTP request, it’ll provide the output only as a whole JSON. It won’t parse it to dynamic contents for each of the returned values. But that’s no problem as you can extract the values from the JSON directly.

The owners will be stored in the ‘value’ array, so you can easily ‘Select’ the values you’re interested in. Use the array with the users as the input, and select the value, e.g. their email.

Input:
body('Send_an_HTTP_request')?['value'] 

Map:
item()?['mail']
Power Automate get group owners

You’ll get an array with email addresses of the owners of this specific M365 group.

Summary

As in so many situations before, when there’s no dedicated action, the solution is an HTTP request. Get the group ID, ask Graph API for the owners, and then extract them from the result using ‘Select’ and expressions. You just used Power Automate to get the group owners and you can process them later in the flow.


πŸš€ Master Power Automate

Join 2,000+ professionals getting actionable Power Automate tutorials, solutions, cheat sheets & tips every week.

No spam. Unsubscribe anytime.

8 thoughts on “How to get Microsoft 365 group owners in Power Automate”

  1. Pingback: List M365 Group owners with Graph API query parameters – Expiscornovus
  2. Mirzet says:
    March 16, 2023 at 9:36 am

    Hi!

    This is great thing! How to export this to csv or something?

    And Is there a way to get also Users from the Groups not only the owners?
    Like I got XGroup with 5 members, and I wanna export them…

    I would appreciate your help.

    Reply
    1. Tom says:
      March 29, 2023 at 8:05 pm

      Hello Mirzet,
      there’s a dedicated action ‘List group members’ which you can use, then just ‘Select’ the user information you need.

      Reply
  3. Simone says:
    May 10, 2023 at 11:21 am

    Hi! Great post πŸ™‚
    I want to add a new owner, can you do that?

    Reply
    1. Tom says:
      May 28, 2023 at 3:04 pm

      Hello Simone,
      I added users only to Teams M365 group, so in case it’s a Teams group you can use the ‘Add a Team member’ action.

      Reply
  4. Pingback: Power Automate: Add owner to M365 Group – Speaking Events
  5. Chad Olson says:
    February 1, 2024 at 7:30 pm

    It is item()?[‘mail’] like the screenshot and not item()?[’email’] as shown in the text.

    Reply
    1. Tom says:
      February 28, 2024 at 8:56 am

      Hello Chad,
      thank you, I updated it in the code example.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

πŸš€ Master Power Automate

Join 2,000+ professionals getting actionable Power Automate tutorials, solutions, cheat sheets & tips every week.

No spam. Unsubscribe anytime.

Still exchanging emails to get things approved?

Use the Approval Process Template and the Task Delegation App to skip the hard part and deploy an automated, fully functional approval solution on a SharePoint list in minutes! And then the next one, and the next one...

Approval Template Preview ✨ Learn more ✨

Turn ideas into flows with ease!

Grab the complete Power Automate Cheat Sheet Bundleβ€”everything you need to master expressions, SharePoint HTTP calls, and Graph API in Power Automate.

Cheat Sheet Bundle Preview ✨ Get the Cheat Sheets

Didn't find what you were looking for?
Need to adjust a solution to fit your needs?
Or would you just like to get an assistance from somebody with thousands of hours of experience with Power Automate?

Power Automate blogs worth visiting

Damien Bird
Dennis (Expiscornovus)
Paul Murana

©2025 Let's POWER Automate | Theme by SuperbThemes