Microsoft Teams
A Microsoft customizable chat-based workspace.
10,088 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I've SharePoint Admin role enabled. While executing 'New-PnPTeamsTeam' command I'm getting error. Please advise which role/permission needed to overcome error and how to activate?
Write-Host "Connect to Admin centre"
Connect-PnPOnline -ClientId $appId -CertificatePath $Path -CertificatePassword $password -Url $AdminCenterURL -Tenant $Tenant
Write-Host "Creating New Teams Site"
New-PnPTeamsTeam -DisplayName $SiteTitle -Description $SiteDescription -MailNickName $SiteName -Owners $TeamSiteOwner -Visibility Private
New-PnPTeamsTeam : Caller does not have the required permissions for accessing this API. AllowedPermissions:'TeamMember.ReadWriteNonOwnerRole.All,TeamMember.ReadWrite.All'
At line:3 char:17