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] Get-PnPTermGroup : returns all tenant terms groups and not only the connected site collection's ones #4403

Open
Mathieu-Valmont opened this issue Oct 8, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Mathieu-Valmont
Copy link

Suddenly the Get-PnPTermGroup cmdlet returns all tenant term groups where it used to only returns the terms groups of the connected site collection.

I'm still working on PowerShell 5.1 and the 1.12.0 version of PnP.
I know this version is not maintained anymore but I don't understand why this change suddenly occured.

OS: Windows

How to reproduce :

  1. Connect to a site collection
    Connect-PnPOnline -Url [sitecollection] -clientid $myClientId -clientsecret $myClientSecret
  2. Execute Get-PnPTermGroup

Thank you for your help.

@Mathieu-Valmont Mathieu-Valmont added the bug Something isn't working label Oct 8, 2024
@VictorRomanov1986
Copy link

I can confirm the same problem with version 2.12.0

@vkuybida
Copy link

The same issue is in latest version (2.12.0) as well :(

@vkuybida
Copy link

I can confirm the same problem with version 2.12.0

It seems like it is related to the #2222

If you use app id/app secret for connection - Get-PnPTermGroup returns unexpected results (seems like it does not use current connection for specific site)

If you use other connection options, for example - Connect-PnPOnline -Url "your site url" -UseWebLogin - it works as expected

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

No branches or pull requests

3 participants