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 21, 2017If I grab the access token returned from PnP PowerShell using Connect-PnPMicrosoftGraph -Scopes "Group.ReadWrite.All","User.Read.All" and use this in the same code, it works just fine. So, the Graph can do it, if the access token contains the correct permissions.
PnP PowerShell requires the two mentioned application permissions, but it also presents some delegated permissions in the consent dialog, so I'm not sure which permissions are requested during this consent approach.
Feb 21, 2017
Most likely, the token you are "grabbing" contains delegated permissions.