-
Notifications
You must be signed in to change notification settings - Fork 388
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Reporting an Issue or Missing Feature
When I run SetSiteVersionPolicy
with App Permissions, I get an error: "Cannot call this API with an app-only principal."
The actual call is this:
Set-PnPSiteVersionPolicy -Connection $siteConnection -EnableAutoExpirationVersionTrim $true -ApplyToExistingDocumentLibraries -ApplyToNewDocumentLibraries
Expected behavior
Actual behavior
I've tested, and I believe it's a false error. The cmdlet seems to have the desired effect, in that a new Doc Lib created in the site right after running the cmdlet gets Automatic Versioning. (It can take up to 24h for it to take effect on existing libs.)
What is the version of the Cmdlet module you are running?
3.1.0
Which operating system/environment are you running PnP PowerShell on?
- Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Other : please specify
gautamdsheth and reshmee011
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working