Skip to content

[BUG] Add-PnPTermToTerm with Sites.Selected permissions not working #3041

@Richter79

Description

@Richter79

Reporting an Issue or Missing Feature

Granted access to an Azure App via Grant-/Set-PnPAzureADAppSitePermissions with FullControl (Sites.Selected permissions)
It does not seem to be possible to create terms in a SiteCollection termset via Add-PnPTermToTerm.
Permission for TermStore.ReadWrite.All is not allowed, since global termstore manipulations must not allowed for the App.

Expected behavior

Term can be created.

Actual behavior

Add-PnPTermToTerm: The current user has insufficient permissions to perform this operation.
image
New-PnPList is working, Get-PnPTerm is working.

Steps to reproduce behavior

  • Create an Azure App, granted Selected.Sites
    image
  • create / upload certificate
  • Grant-PnPAzureADAppSitePermissions (only read and write is possible)
  • Get-PnPAzureADAppSitePermission
  • Set-PnPAzureADAppSitePermission -PermissionId $permissionsId -Permissions FullControl
  • Connect-PnPOnline -Url URL -ClientId APPID -Thumbprint CERTTHUMBPRINT -Tenant TENANTID

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

PnP.PowerShell 2.1.1

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

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions