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.
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.
- SteveCoxMar 30, 2022Brass ContributorHi There I know this is an old thread but I am trying to create a Unified Group using Certificate based Authentication, I tried using ExchangeOnlineManagement Module, but apparently this doesn't work when you to use New-UnifiedGroup using CBA (Known Issue) so I tried using the Microsoft.Graph.Group Module using CBA to create the Unified Group, this created the Group, but I need to be able to Set the Primary Email address as well and cannot see a way to set this in the Microsoft.Graph.Group.
Do you know if there is a way to Set this via MS.Graph ? 
 
 - 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.