Forum Discussion
Deleted
Feb 20, 2017Programmatically 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 ...
- 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;
Deleted
Feb 20, 2017In addition to the above - if the group was created with an app-only access token, if we browse to https://tenant.sharepoint.com/_layouts/groupstatus.aspx?id=groupid&target=documents with the tenant name and group id, the modern team site is provisioned in matter of ~30 seconds. To be, the seems like the provisioning process doesn't quite finish when requested in Microsoft Graph.
- Feb 20, 2017I cannot confirm in regards of the App Only support when working with the Microsoft Graph but I can confirm that the Group creation process works in the way you are seeing because same is happening when you do it from the UI:
(1) When you create the Group from OWA or Outlook, the EXO part is first created and then the Group site
(2) When you create a Modern Team site from the SPO landing page, the site is first created and then the EXO part
So in both cases, required artifacts for a Group are not being created at the same time