Forum Discussion

Anonymous's avatar
Anonymous
Feb 20, 2017
Solved

Programmatically creation of Office 365 Groups

I can create an Office 365 Group with PnP PowerShell (https://msdn.microsoft.com/en-us/pnp_articles/modern-experience-customizations-provisioning-sites) with no problems at all - both the Office 365 ...
  • Mikael Svenson's avatar
    Mikael Svenson
    Aug 25, 2017

    You are one lazy.... ;)

     

    Tenant tenant = new Tenant(clientContext);
    var site = tenant.GetSitePropertiesByUrl(siteUrl, false);
    clientContext.Load(site, s => s.Status);
    site.Context.ExecuteQueryRetry();
    var status = site.Status;

Resources