-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Add-PnPTeamsTeam throwing Authentication Method is not allowed #462
Comments
@prawnz - This is a known issue for app-only context. You can use this command only with delegated permissions and user context due to limitations of SharePoint APIs. If you wish you use app-only context, would suggest that you use
|
@gautamdsheth all good.. will use your suggested method. |
When I try to use
But the O365 group and teamsite is created correctly. |
uuh sorry, an update to 1.5.0 solves the problem |
I am facing the same issue with PnP.PowerShell version 1.5.0 I have added all the details in this issue |
* Downgraded dependencies to handle Az DLLs * Fix #916 - added PnP alias for commands * Added SiteAlias for New-PnPSite, Principals for PnPHubSite * Updated docs * Fixed output for hub site registration. * Fix #990 - fix for odata.nextLink issue * #840 - added NoCrawl parameter to disable SPList indexing * Docs update * #1007 - fix for Add-PnPTeamsTeam issue
Reporting an Issue or Missing Feature
I am using a certificate authentication method which is created using the Register-PnPAzureADApp with Connect-PnPOnline. When I try to user Add-PnPTeamsTeam with a modern team site is created using New-PnPSite -Type "TeamSite" -Title $siteTitle -Alias $groupAlias -IsPublic -Wait
I am getting Authentication method not allowed as shown
[DBG]: PS C:\Projects\DOF-M365Provisioning> Add-PnPTeamsTeam
Add-PnPTeamsTeam: {"odata.error":{"code":"10005","message":{"lang":"en-US","value":"Authentication method is not allowed."}}}
Expected behavior
I am expecting the Add-PnpTeamsTeam cmdlet to complete.
Steps to reproduce behavior
Connect-PnPOnline -URL "https://$($tenantName)-admin.sharepoint.com" -ClientId $appRegistrationClientIdValue -Thumbprint $certThumbprintValue -Tenant $tenantIdValue
$tenantSiteUrl = $ ($tenantSite.Url)
$tenantSite = New-PnPSite -Type "TeamSite" -Title $siteTitle -Alias $groupAlias -IsPublic -Wait
Connect-PnPOnline -URL $tenantSiteUrl -ClientId $appRegistrationClientIdValue -Thumbprint $certThumbprintValue -Tenant $tenantIdValue
Add-PnPTeamsTeam
What is the version of the Cmdlet module you are running?
PnP.Powershell 1.4.0
Which operating system/environment are you running PnP PowerShell on?
The text was updated successfully, but these errors were encountered: