pnp / pnpframework

PnP Framework is a .NET library targeting Microsoft 365 containing the PnP Provisioning engine and a ton of other useful extensions
https://pnp.github.io/pnpframework/
MIT License
200 stars 140 forks source link

New-PnPTenantSite command issue #1021

Open ekreddy opened 1 month ago

ekreddy commented 1 month ago

Hi Team, I am provisioning site using below command and identified issue.

New-PnPTenantSite -Title Contoso -Url "https://tenant.sharepoint.com/sites/contoso" -Owner user@example.org -TimeZone 4 -Template STS#0

who is running this command is sharepoint Admin and owner is also same which means I am running above command using "user@example.org"

If the user@example.org is not assigned with license , the site is provisoed by "global Adminsitrator" and in SCA we can see "Global admini"

If the user "user@example.org" is assigned with a license then we observed , Site is provisoned by "user@example.org" and SCA is "user@example.org"