Forum Discussion

Gurdev Singh's avatar
Gurdev Singh
Iron Contributor
Sep 04, 2019
Solved

Office 365 Group global address list visibility using Graph API

Is there any way we can set 'global address list' visibility of a Group using Graph API? I know we can do it via PowerShell using Set-UnifiedGroup -HiddenFromAddressListsEnabled.

 

However, we are using a Flow to create Groups and hence, looking for an automated option to set this property.

  • Gurdev Singh 

     

    Hope this is not documented anywhere. But we can set it through the resourceBehaviorOptions attribute. The following call works fine for me.

     

    POST : https://graph.microsoft.com/v1.0/groups
    Body :
    {
      "description": "TestGroup",
      "displayName": "TestGroup",
      "groupTypes": [
        "Unified"
      ],
      "mailEnabled": true,
      "mailNickname": "TestGroup",
      "securityEnabled": false,
       resourceBehaviorOptions:["HideGroupInOutlook"]
    }

    Try beta endpoint if the v1.0 not works.

     

    Related posts :

    https://www.morgantechspace.com/2019/09/hide-office-365-group-from-gal-using-graph-api.html

    https://techcommunity.microsoft.com/t5/Office-365-Groups/Setting-Unified-Group-properties-via-API/m-p/88101

    https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/528

2 Replies

  • Kevin_Morgan's avatar
    Kevin_Morgan
    Iron Contributor

    Gurdev Singh 

     

    Hope this is not documented anywhere. But we can set it through the resourceBehaviorOptions attribute. The following call works fine for me.

     

    POST : https://graph.microsoft.com/v1.0/groups
    Body :
    {
      "description": "TestGroup",
      "displayName": "TestGroup",
      "groupTypes": [
        "Unified"
      ],
      "mailEnabled": true,
      "mailNickname": "TestGroup",
      "securityEnabled": false,
       resourceBehaviorOptions:["HideGroupInOutlook"]
    }

    Try beta endpoint if the v1.0 not works.

     

    Related posts :

    https://www.morgantechspace.com/2019/09/hide-office-365-group-from-gal-using-graph-api.html

    https://techcommunity.microsoft.com/t5/Office-365-Groups/Setting-Unified-Group-properties-via-API/m-p/88101

    https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/528

  • I don't believe you can do it via the Graph currently. That's an Exchange-related setting and support for Exchange operations in the Graph is pretty much non-existent.

Resources