Forum Discussion
Setting Unified Group properties via API
You can do that with Microsoft Graph only at creation time. I'm disabling the member notification on group adding like this:
Like this:
Url: https://graph.microsoft.com/v1.0/groups
Request Body:
--
{
    "displayName": "TestGroup-01",
    "groupTypes": [
        "Unified"
    ],
    "mailEnabled": true,
    "mailNickname": "testgroup-01",
    "resourceBehaviorOptions": [
        "WelcomeEmailDisabled"
    ],
    "securityEnabled": false,
    "visibility": "Private",
}
--
Thanks for posting this! Can you post where you found this? I'm curious as to the other options available within the resourceBehaviorOptions attribute. Thanks
- ShaneOssJun 20, 2019Brass Contributor
Julian_Dano @Matthias Habegger
Values for resourceBehaviorOptions:
- AllowOnlyMembersToPost
 - CalendarMemberReadOnly
 - ConnectorsEnabled
 - HideGroupInOutlook
 - NotebookForLearningCommunitiesEnabled
 - ReportToOriginator
 - SharePointReadonlyForMembers
 - SubscriptionEnabled
 - SubscribeMembersToCalendarEvents
 - SubscribeMembersToCalendarEventsDisabled
 - SubscribeNewGroupMembers
 - WelcomeEmailDisabled
 - WelcomeEmailEnabled
 
- AllabakshGunjeAug 19, 2019Copper ContributorShaneOss,
Unfortunately I am not able to find resourceBehaviorOptions attribute in graph api. Graph API is up to date, but till this attribute is missing. Kindly suggest- Kevin_MorganSep 06, 2019Iron Contributor
Now you can set resourceBehaviorOptions attribute while creating new group, but it is still not supported in edit group.
For more info: https://www.morgantechspace.com/2019/09/hide-office-365-group-from-gal-using-graph-api.html