Share via

Is there a Graph API that can set distribution communication group hierarchies or set the upper and lower relationships of groups

西湖IT管理员 70 Reputation points
2026-03-18T01:51:24.7166667+00:00

Is there a Graph API that can set distribution groups or M365 Groups hierarchies or set the upper and lower relationships of groups

Additionally, in the Graph API, what interface should be called to re-enable an existing mailbox that was disabled (only blocking login but not deleted)? If we call the mailbox creation interface, will the system check if the existing email is enabled or still return an error?

Any response would be greatly appreciated:)

Microsoft Security | Microsoft Graph
0 comments No comments

2 answers

Sort by: Most helpful
  1. Vasil Michev 126K Reputation points MVP Volunteer Moderator
    2026-03-19T20:14:15.1566667+00:00

    No. Those are all Exchange admin operations, and Graph does not currently support anything on Exchange admin side. The Exchange Online PowerShell module and the cmdlets therein are the only supported method. If you don't care about the "supported" bit, you can also execute any cmdlet via the InvokeCommand method, without having to rely on the module or PowerShell for that matter. I've put a guide about this here: https://michev.info/blog/post/5822/all-you-need-to-know-about-exchange-online-admin-api-or-how-to-run-cmdlets-without-powershell

    0 comments No comments

  2. Q&A Assist
    2026-03-18T01:51:39.6833333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Distribution group / Microsoft 365 group hierarchies

    1. Microsoft Graph does not support modeling parent/child or hierarchical relationships between distribution groups or Microsoft 365 groups as a built‑in feature.
    2. Group types and capabilities in Microsoft Graph are determined by groupTypes, mailEnabled, and securityEnabled, and are limited to:
      • Microsoft 365 groups (groupTypes: ["Unified"])
      • Security groups
      • Mail‑enabled security groups (read‑only in Graph)
      • Distribution groups (read‑only in Graph)
    3. Distribution groups and mail‑enabled security groups are read‑only via Microsoft Graph; they cannot be structurally managed (including hierarchy) through Graph APIs.
    4. To represent hierarchies, a custom solution would be required (for example, storing relationships in an external system or using group membership of security/Microsoft 365 groups as a logical hierarchy), but this is not a native Graph feature.

    Re‑enabling a disabled mailbox via Graph

    The provided context does not document any Microsoft Graph API that:

    • Re‑enables a disabled mailbox, or
    • Describes how the mailbox creation API behaves when a mailbox exists but is disabled.

    The context only covers:

    • Supported group types and operations in Microsoft Graph.
    • That distribution groups and mail‑enabled security groups are read‑only in Graph.
    • Common group operations (create, list, update, delete, manage membership/ownership) for supported group types.

    No supported, documented Graph endpoint for mailbox re‑enablement is described in the context, and no behavior is documented for calling a mailbox creation API against an existing disabled mailbox.


    References:

Your answer

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