Issues with Creating Mail Enabled Security Groups using Create Group activity in Microsoft Office 365 activity package

Will I be able to create mail-enabled security groups using the "Create Group" activity in the Microsoft Office 365 activity package and what are the limitations?

Issue Description

When using the "Create Group" activity in the Microsoft Office 365 Activity Package, users may encounter various issues related to the creation of mail-enabled security groups. This article provides details on these issues, their underlying causes, and references to relevant documentation.


Microsoft Office 365 "Create Group" Activity:

  • Only "Security Enabled" set to true - The group is created successfully.
  • Both "Mail Enabled" and "Security Enabled" set to true - An error is thrown: "Cannot create mail-enabled security groups and/or distribution lists."
  • Only "Mail Enabled" set to true - The error message is: "Cannot create mail-enabled security groups and/or distribution lists."
  • Both "Mail Enabled" and "Security Enabled" set to false - The error message is: "The service does not currently support the creation of mail-enabled groups. Please ensure that the mail-enablement property is unset and the security-enablement property is set."

Root Cause

The issues encountered with the "Create Group" activity suggest that creating mail-enabled security groups is not supported through the API used by these activities. Specifically:

Microsoft documentation indicates that mail-enabled security groups cannot be created using APIs.


References:

Security Groups and Mail-Enabled Security Groups
Group types in Microsoft Entra ID and Microsoft Graph