Forum Discussion
Setting Unified Group properties via API
Dear Berend
Yes is looks like you can use the Graph API to update these as well. That is pretty cool.
You have to find the directory template object for "Unified groups" using the API and then reference that template when updating the particular group.
(https://graph.microsoft.com/beta/directorySettingTemplates)
Love the Microsoft graph. Sounds like another addin that we can create that would make it easier to update these settings. Let's collaborate if you like. You can schedule a quick online meeting with me using our https://outlook.office365.com/owa/calendar/DeCarloSoftware2@decarlosoftware.com/bookings/ Use the option for the free "Products questions and answers" session. If not I will let you know after we create the addin.
- Andy_nigamMar 19, 2018Copper Contributor
Hey Don,
Would you be kind to share a key part of the code to suppress welcome email ?
Don DeCarlo wrote:
Dear Berend
Yes is looks like you can use the Graph API to update these as well. That is pretty cool.
You have to find the directory template object for "Unified groups" using the API and then reference that template when updating the particular group.
(https://graph.microsoft.com/beta/directorySettingTemplates)
Love the Microsoft graph. Sounds like another addin that we can create that would make it easier to update these settings. Let's collaborate if you like. You can schedule a quick online meeting with me using our https://outlook.office365.com/owa/calendar/DeCarloSoftware2@decarlosoftware.com/bookings/ Use the option for the free "Products questions and answers" session. If not I will let you know after we create the addin.
The API reference doesn't say which key needs to be off. I may have missed it as I am not very familiar with MS group underneath.- Marco_DisselMay 22, 2018Brass Contributor
Anyone found the url/setting to disable the unifiedgroupwelcomemessageenabled via the msgraph?
- Sander KoningSep 20, 2018Copper Contributor
I can't find a way either. We've created a dedicated powershell function app specifically to disable the welcome mail.
- Bernd RickenbergJul 24, 2017Brass Contributor
Thanks for your response. Interessting with the directorySettingTemplates. Unfortunately it looks like it does not solve my problem, because the template does not expose the welcome mail and GAL settings.
- Don DeCarloJul 24, 2017Brass Contributor
Dear Bernd
I see that now. Those settings are on the mailbox in exchange rather than the Group. I put together a quick app with a button on the Groups ribbon "update settings". That pops a Custom task pane in Outlook with a simple update on the mailbox settings for that group. Is that what you are looking for?Let me know more details and as I said we can work together. https://outlook.office365.com/owa/calendar/DeCarloSoftware2@decarlosoftware.com/bookings/
- Bernd RickenbergJul 26, 2017Brass Contributor
Hi Don,
Thanks for your reply. I would be interested in how you get/set these values on the exchange mailbox. I cannot see the attributes exposed in either Exchange REST nor Microsoft Graph API.
I am looking for an automated way to this. So, an Outlook add-in does not solve my issue...
- TonyRedmondJul 24, 2017MVP
Philisophical question: If an issue is easily solved in a one-line PowerShell command, why would you even think about writing some code to do the same thing with the Microsoft Graph? Much as I like the Graph (see https://www.petri.com/exploring-office-365-graph-explorer), there is no point in recreating wheels, even if the new wheel is extra-sparkly.
- doughortonJan 18, 2021Copper Contributor
TonyRedmond One reason is if you -- like me -- are developing hosted services for use in a client's tenant and must use graph API calls to accomplish tasks like this because your code does not run within the client's network.
- TonyRedmondJan 18, 2021MVP
doughorton That's fair and a good reason. Another good reason is when you must deal with hundreds or even thousands of groups as Graph-based code will be much faster to process these objects than PowerShell will ever be. My comment still holds true in many other cases when PowerShell can do a job without the need to write any Graph code.
- Don DeCarloJul 24, 2017Brass Contributor
Dear Tony
I am starting to appreciate that these easy to use buttons apps (inside the office ribbon) are sometimes a better way to "fill in" the features in Office 365 and Azure.
Groups is an interesting object. You can provide certain capabilities to "Owners" of the Group that don't require an IT or Powershell type of solution. In many cases the Group Owner or Member can be an Outlook user who doesn't have or need Powershell. Eventually Microsoft will catch up the UI elements in Groups as they have been doing in Office 365. For now, we can fill in with addins to the UI for some of those missing elements.
We create many custom addins for customers making the move to Office 365 and Azure and each one seems to make the transition easier, faster and better. Change is always hard and ease of use or the familiarity of the Office apps can increase adoption and in some cases, remove the barrier for making the move.
MS Graph give us a standard way to create or update most objects throughout all the services making it efficient and affordable to do the apps for customers even in a simple example like this one. The value can be in the Outlook user maintaining the setting rather than an IT request.