Skip to content
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 Authentication method is not allowed #1007

Closed
1 of 6 tasks
YuriySamorodov opened this issue Aug 12, 2021 · 3 comments · Fixed by #1013
Closed
1 of 6 tasks

[BUG] Add-PnPTeamsTeam Authentication method is not allowed #1007

YuriySamorodov opened this issue Aug 12, 2021 · 3 comments · Fixed by #1013
Labels
bug Something isn't working

Comments

@YuriySamorodov
Copy link
Contributor

Reporting an Issue or Missing Feature

I am reporting a bug

Expected behavior

Add-PnPTeamsTeam should create a new team and attach it to an existing site

Actual behavior

When I try running Add-PnPTeamsTeam while connected to the site I want a team attach to with my global admin credentials
image
I get an error below:

Add-PnPTeamsTeam: {"odata.error":{"code":"10005","message":{"lang":"en-US","value":"Authentication method is not allowed."}}}

image

Steps to reproduce behavior

$credentials = Get-Credentials
Connect-PnPOnline -Url https://contoso.sharepoint.com/sites/test -Credentials $credentials
Get-PnPConnection
$splat = @{
    Url = 'https://contoso.sharepoint.com/sites/test'
    Alias = 'test'
    DisplayName = 'test'
    Owners = 'user@contoso.com'
}
Add-PnPMicrosoft365GroupToSite @splat
Add-PnPTeamsTeam

What is the version of the Cmdlet module you are running?

Name    : PnP.PowerShell
Version : 1.7.0

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify
@YuriySamorodov YuriySamorodov added the bug Something isn't working label Aug 12, 2021
@glasserre
Copy link

Hello.
I have this error too hen using PNP Provisioning template.

Invoke-PnPTenantTemplate -Path "clt-projectv3.xml" -Parameters $Parameters
WARNING: Teamifying site at URL - https://xxxxx.sharepoint.com/sites/test-v3-ww-cust-pj1 failed due to an exception:- {"odata.error":{"code":"10005","message":{"lang":"en-US","value":"Authentication method is not allowed."}}}

gautamdsheth added a commit to gautamdsheth/powershell that referenced this issue Aug 13, 2021
gautamdsheth added a commit that referenced this issue Aug 13, 2021
* 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
@gautamdsheth
Copy link
Collaborator

Fixed it, will be available in tomorrow's nightly.
Thanks @YuriySamorodov for bringing this up, was pending for quite some time 👍

@YuriySamorodov
Copy link
Contributor Author

Appreciate that @gautamdsheth! The way you and whole @erwinvanhunen team support PnP brings experience with this technology to the next level!

gautamdsheth added a commit that referenced this issue Aug 20, 2021
* 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

* #1029 - adds additional props for site designs
gautamdsheth added a commit that referenced this issue Sep 9, 2021
* 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

* #1029 - adds additional props for site designs

* #1048 - add support for OOTB themes
gautamdsheth added a commit that referenced this issue Sep 9, 2021
* 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

* #1029 - adds additional props for site designs

* #1048 - add support for OOTB themes

* #963 - fix for setting owners
gautamdsheth added a commit that referenced this issue Sep 17, 2021
* 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

* #1029 - adds additional props for site designs

* #1048 - add support for OOTB themes

* #963 - fix for setting owners

* #1102, #1081 - null check for M365 Group users commands
gautamdsheth added a commit that referenced this issue Sep 17, 2021
* 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

* #1029 - adds additional props for site designs

* #1048 - add support for OOTB themes

* #963 - fix for setting owners

* #1102, #1081 - null check for M365 Group users commands

* #1111 - removed mandatory Identity for cmdlet
gautamdsheth added a commit that referenced this issue Sep 17, 2021
* 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

* #1029 - adds additional props for site designs

* #1048 - add support for OOTB themes

* #963 - fix for setting owners

* #1102, #1081 - null check for M365 Group users commands

* #1111 - removed mandatory Identity for cmdlet

* #1005 - fix trailing slash issue for SPOSitePipeBind
gautamdsheth added a commit that referenced this issue Sep 17, 2021
…1125)

* 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

* #1029 - adds additional props for site designs

* #1048 - add support for OOTB themes

* #963 - fix for setting owners

* #1102, #1081 - null check for M365 Group users commands

* #1111 - removed mandatory Identity for cmdlet

* #1005 - fix trailing slash issue for SPOSitePipeBind

* #855 - consistent outcomes for PnPTeams and AzureADGroup cmdlets
gautamdsheth added a commit that referenced this issue Sep 17, 2021
* 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

* #1029 - adds additional props for site designs

* #1048 - add support for OOTB themes

* #963 - fix for setting owners

* #1102, #1081 - null check for M365 Group users commands

* #1111 - removed mandatory Identity for cmdlet

* #1005 - fix trailing slash issue for SPOSitePipeBind

* #855 - consistent outcomes for PnPTeams and AzureADGroup cmdlets

* Fix #820 - issue with removing site collection admin from personal sites
gautamdsheth added a commit that referenced this issue Sep 18, 2021
* 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

* #1029 - adds additional props for site designs

* #1048 - add support for OOTB themes

* #963 - fix for setting owners

* #1102, #1081 - null check for M365 Group users commands

* #1111 - removed mandatory Identity for cmdlet

* #1005 - fix trailing slash issue for SPOSitePipeBind

* #855 - consistent outcomes for PnPTeams and AzureADGroup cmdlets

* Fix #820 - issue with removing site collection admin from personal sites

* #1061 - potentially fixing trace log issue
gautamdsheth added a commit that referenced this issue Sep 23, 2021
* 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

* #1029 - adds additional props for site designs

* #1048 - add support for OOTB themes

* #963 - fix for setting owners

* #1102, #1081 - null check for M365 Group users commands

* #1111 - removed mandatory Identity for cmdlet

* #1005 - fix trailing slash issue for SPOSitePipeBind

* #855 - consistent outcomes for PnPTeams and AzureADGroup cmdlets

* Fix #820 - issue with removing site collection admin from personal sites

* #1061 - potentially fixing trace log issue

* Fix #1155 - issue with image extension for groups
gautamdsheth added a commit that referenced this issue Oct 1, 2021
* 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

* #1029 - adds additional props for site designs

* #1048 - add support for OOTB themes

* #963 - fix for setting owners

* #1102, #1081 - null check for M365 Group users commands

* #1111 - removed mandatory Identity for cmdlet

* #1005 - fix trailing slash issue for SPOSitePipeBind

* #855 - consistent outcomes for PnPTeams and AzureADGroup cmdlets

* Fix #820 - issue with removing site collection admin from personal sites

* #1061 - potentially fixing trace log issue

* Fix #1155 - issue with image extension for groups

* Removed alias cmdlets
gautamdsheth added a commit that referenced this issue Oct 1, 2021
* 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

* #1029 - adds additional props for site designs

* #1048 - add support for OOTB themes

* #963 - fix for setting owners

* #1102, #1081 - null check for M365 Group users commands

* #1111 - removed mandatory Identity for cmdlet

* #1005 - fix trailing slash issue for SPOSitePipeBind

* #855 - consistent outcomes for PnPTeams and AzureADGroup cmdlets

* Fix #820 - issue with removing site collection admin from personal sites

* #1061 - potentially fixing trace log issue

* Fix #1155 - issue with image extension for groups

* Removed alias cmdlets

* Updated changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants