msgraph-sdk-javascript
msgraph-sdk-javascript copied to clipboard
Mail Enabled Groups NOT Security Groups
Mail Enabled Always True
Description
When creating a NON security enabled group and setting mailEnabled=false. The mailEnabled field is ignored and the mailEnabled flag is always set to true. If you attempt to patch the group with mailEnabled=false the response is '204' but the field is again ignored.
- Create Group: description: 'Description', displayName: 'Display Name', groupTypes: ['unified'], mailEnabled=false, mailNickName:'NickName', securityEnabled=false, visibility: 'private', owners: ['owners list'], members['members list']
- Patch Group: mailEnabled=false. Returns '204'
- Get Group: mailEnabled-true
Expected behavior: mailEnabled=false
Actual behavior: mailEnabled=true.
Additional Context
This would explain users reporting that when they attempt to set Mail Enabled in the Planner Interface that emails are still being produced by the group.