Managing "Mail-Enabled Security Groups" with MS Graph API

Brian 46 Reputation points
2022-06-10T13:32:14.69+00:00

Is it possible to add/delete members of "Mail-Enabled Security Groups " with Graph API?

Looks like the API is limited to "security" or "M365" groups.

https://learn.microsoft.com/en-us/graph/api/group-post-members?view=graph-rest-1.0&tabs=http

Thank you.

Microsoft Security | Microsoft Graph
0 comments No comments
{count} vote

Accepted answer
  1. Vasil Michev 119.6K Reputation points MVP Volunteer Moderator
    2022-06-10T13:41:22.017+00:00

    No, not possible. Mail-enabled security groups are managed by Exchange, and Graph currently has limited (zero) support for Exchange admin operations. Use Exchange Online PowerShell instead.

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Puchta Jaroslav 0 Reputation points
    2025-02-19T10:05:56.49+00:00

    Does Microsoft plan to manage Mail-enabled security groups using the Graph API?"


  2. Jan Hajek 1 Reputation point MVP
    2025-06-20T08:10:02.02+00:00

    If you don't want to use ExchangeOnlineManagement PowerShell module and call it from Power Automate, your code or somewhere else, you can make use of the following InvokeCommand which is used behind the scenes by the management module - I recently blogged about this - https://hajekj.net/2025/06/20/working-with-exchange-online-distribution-groups-via-rest/

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.