[GH-ISSUE #4882] [Bug]: Cannot Create mail-enabled security group via Group nor via group Template #2286

Closed
opened 2026-03-02 13:51:06 +03:00 by kerem · 3 comments
Owner

Originally created by @mweber1980 on GitHub (Oct 30, 2025).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/4882

Required confirmations before submitting

  • I can reproduce this issue on the latest released versions of both CIPP and CIPP-API.
  • I have searched existing issues (both open and closed) to avoid duplicates.
  • I am not requesting general support; this is an actual bug report.

Issue Description

I created a Template with option Mail-enabled Security group.
When i then edit the group i see that the selection is changed to Security

Also when i want to create a new group i fill in all the required field and hit Create
then i get the message

"Failed to create group. test for "domain name" Failed to create group test: Cannot Create a mail-enabled security groups and or distribution list."

Environment Type

Sponsored (paying) user

Front End Version

8.6.1

Back End Version

8.6.2

Relevant Logs / Stack Trace

Message
Cannot Create a mail-enabled security groups and or distribution list.
NormalizedError
Cannot Create a mail-enabled security groups and or distribution list.
Position
At /home/site/wwwroot/Modules/CIPPCore/Public/GraphHelper/New-GraphPOSTRequest.ps1:34 char:13 + throw $Message + ~~~~~~~~~~~~~~
StackTrace
at New-GraphPOSTRequest, /home/site/wwwroot/Modules/CIPPCore/Public/GraphHelper/New-GraphPOSTRequest.ps1: line 34 at New-CIPPGroup, /home/site/wwwroot/Modules/CIPPCore/Public/New-CIPPGroup.ps1: line 144 at Invoke-AddGroup, /home/site/wwwroot/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups/Invoke-AddGroup.ps1: line 20 at New-CippCoreRequest, /home/site/wwwroot/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/New-CippCoreRequest.ps1: line 45 at Receive-CippHttpTrigger, /home/site/wwwroot/Modules/CippEntrypoints/CippEntrypoints.psm1: line 141
ScriptName
/home/site/wwwroot/Modules/CIPPCore/Public/GraphHelper/New-GraphPOSTRequest.ps1
LineNumber
34
Category
OperationStopped: (Cannot Create a mai… distribution list.:String) [], RuntimeException
Originally created by @mweber1980 on GitHub (Oct 30, 2025). Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/4882 ### Required confirmations before submitting - [x] **I can reproduce this issue on the latest released versions** of both CIPP and CIPP-API. - [x] **I have searched existing issues** (both open and closed) to avoid duplicates. - [x] I am **not** requesting general support; this is an actual bug report. ### Issue Description I created a Template with option Mail-enabled Security group. When i then edit the group i see that the selection is changed to Security Also when i want to create a new group i fill in all the required field and hit Create then i get the message "Failed to create group. test for "domain name" Failed to create group test: Cannot Create a mail-enabled security groups and or distribution list." ### Environment Type Sponsored (paying) user ### Front End Version 8.6.1 ### Back End Version 8.6.2 ### Relevant Logs / Stack Trace ```plaintext Message Cannot Create a mail-enabled security groups and or distribution list. NormalizedError Cannot Create a mail-enabled security groups and or distribution list. Position At /home/site/wwwroot/Modules/CIPPCore/Public/GraphHelper/New-GraphPOSTRequest.ps1:34 char:13 + throw $Message + ~~~~~~~~~~~~~~ StackTrace at New-GraphPOSTRequest, /home/site/wwwroot/Modules/CIPPCore/Public/GraphHelper/New-GraphPOSTRequest.ps1: line 34 at New-CIPPGroup, /home/site/wwwroot/Modules/CIPPCore/Public/New-CIPPGroup.ps1: line 144 at Invoke-AddGroup, /home/site/wwwroot/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Groups/Invoke-AddGroup.ps1: line 20 at New-CippCoreRequest, /home/site/wwwroot/Modules/CIPPCore/Public/Entrypoints/HTTP Functions/New-CippCoreRequest.ps1: line 45 at Receive-CippHttpTrigger, /home/site/wwwroot/Modules/CippEntrypoints/CippEntrypoints.psm1: line 141 ScriptName /home/site/wwwroot/Modules/CIPPCore/Public/GraphHelper/New-GraphPOSTRequest.ps1 LineNumber 34 Category OperationStopped: (Cannot Create a mai… distribution list.:String) [], RuntimeException ```
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2025):

Thank you for reporting a potential bug. If you would like to work on this bug, please comment:

I would like to work on this please!

Thank you for helping us maintain the project!

<!-- gh-comment-id:3468442004 --> @github-actions[bot] commented on GitHub (Oct 30, 2025): Thank you for reporting a potential bug. If you would like to work on this bug, please comment: > I would like to work on this please! Thank you for helping us maintain the project!
Author
Owner

@featurebase-for-github[bot] commented on GitHub (Nov 12, 2025):

This issue is linked to our feedback platform. For feedback and updates, please visit this link.

<!-- gh-comment-id:3523634669 --> @featurebase-for-github[bot] commented on GitHub (Nov 12, 2025): This issue is linked to our feedback platform. For feedback and updates, please visit [this link](https://feedback.cyberdrain.com/p/bug-cannot-create-mail-enabled-security-group-via-group-nor).
Author
Owner

@KelvinTegelaar commented on GitHub (Nov 19, 2025):

Fixed in dev

<!-- gh-comment-id:3552001483 --> @KelvinTegelaar commented on GitHub (Nov 19, 2025): Fixed in dev
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/CIPP#2286
No description provided.