Forum Discussion

kiwithebird's avatar
kiwithebird
Copper Contributor
Jul 18, 2022

New-PnPMicrosoft365Group automatically connects to SharePoint Admin Center?

Hey Guys,

 

I have some trouble with the cmdlet New-PnPMicrosoft365Group.

 

I have to build up a connection to run PnP-Cmdlets, therefore I run:

 

Connect-PnPOnline -Url "https://tenantXY.sharepoint.com/sites/anysite

New-PnPMicrosoft365Group

 

Connection is done with AppRegistration and Certificate

Please disregard the missing Parameters "displayname", "mailnickname", etc.

 

Can you confirm:

  • Running New-PnPMicrosoft365Group builds up a connection towards the SharePoint Admin Center "https://tenantXY-admin.sharepoint.com"
  • Does it disconnect from the connection towards the SharePoint Admin Center and connects back to "https://tenantXY.sharepoint.com/sites/anysite"?
  • If I run the cmdlet Add-PnPSiteCollectionAdmin -Owners "email address removed for privacy reasons", does it add user1 as SiteCollection Admin in the SharePoint Admin Center "https://tenantXY-admin.sharepoint.com" or in the other site "https://tenantXY.sharepoint.com/sites/anysite"?

 

Thanks in Advance

Best Regards

 

Marco

No RepliesBe the first to reply

Resources