Forum Discussion
oskarkuus
Dec 15, 2021Copper Contributor
How to get a group specific setting?
I have read this: https://docs.microsoft.com/en-us/graph/api/groupsetting-get?view=graph-rest-1.0&tabs=http But i dont understand how to get the setting ID. GET /groups/{id}/settings/{id} i ...
VasilMichev
Dec 15, 2021MVP
Those are different things. "Group settings" controls things such as the naming policy or classification. It's an Azure AD configuration object, and you create it by referencing a "group settings template". Refer to the links on the left nav pane in the document you shared if you want to learn more about it.
As for HideFromOutlookClients, this is directly returned when getting the group object. So the ID you need to provide is the ID of the group. Here's an example:
GET https://graph.microsoft.com/v1.0/groups/20b0d5b1-bac7-4988-b3bc-66b765aa98dc?$select=hideFromOutlookClients
As for HideFromOutlookClients, this is directly returned when getting the group object. So the ID you need to provide is the ID of the group. Here's an example:
GET https://graph.microsoft.com/v1.0/groups/20b0d5b1-bac7-4988-b3bc-66b765aa98dc?$select=hideFromOutlookClients
oskarkuus
Dec 15, 2021Copper Contributor
Aha, thanks.
Do you have any idea how to apply the patch finction.
My long term goal is to figure out how to build a flow that set it either to true or false.
Do you have any idea how to apply the patch finction.
My long term goal is to figure out how to build a flow that set it either to true or false.
- VasilMichevDec 15, 2021MVPAs mentioned in the documentation, you can update the property if you use a "single" PATCH request:
To update the following properties, you must specify them in their own PATCH request, without including the other properties listed in the table above: allowExternalSenders, autoSubscribeNewMembers, hideFromAddressLists, hideFromOutlookClients, isSubscribedByMail, unseenCount.- oskarkuusDec 15, 2021Copper ContributorOk.
Is the http connection the right thing to use? If the graph link work to patch, then use that link in the http connection?- VasilMichevDec 16, 2021MVPNot sure what you mean, sorry. There are examples in the documentation above, use them.