Mathias Osterkamp

Specialist – focus development Microsoft technology stack

Site termgroup add contributor or manager

Site termgroup add contributor or manager
Add site collection term group Managers and Contributors using JSOM On client side for CSOM we have already a solution for adding managers or contributors for term groups. You can have a look here for the original article. ClientContext clientContext = GetClientContext(); var taxonomySession = TaxonomySession.GetTaxonomySession(clientContext); var termStore = taxonomySession.GetDefaultSiteCollectionTermStore(); var myTermGroup = termStore.Groups.GetByName("My Custom Terms Group"); //Add Group Managers myTermGroup.AddGroupManager("i:0#.f|membership|...@tenant.onmicrosoft.com"); //Add Group Contributors myTermGroup.AddContributor("i:0#.f|membership|...@tenant.onmicrosoft.com"); myTermGroup.AddContributor("i:0#.f|membership|...@tenant.onmicrosoft.com"); clientContext.Load(myTermGroup, group => group.GroupManagerPrincipalNames, group => group.