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] New-PnPSiteFileVersionExpirationReportJob throws auth error #4721

Open
1 of 6 tasks
sympmarc opened this issue Jan 31, 2025 · 0 comments
Open
1 of 6 tasks

[BUG] New-PnPSiteFileVersionExpirationReportJob throws auth error #4721

sympmarc opened this issue Jan 31, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@sympmarc
Copy link
Contributor

sympmarc commented Jan 31, 2025

This may or may not be a bug, but I've tried everything I can think of to make it work.

I'm trying to run New-PnPSiteFileVersionExpirationReportJob as an SP Admin. I have Site Owner permission to the site I'm trying to run it on.

I'm using Connect-PnPOnline to connect to the site, which is successful.

Image

When I run the cmdlet, I get the following error:

Image

I've also tried New-PnPLibraryFileVersionExpirationReportJob and get the same error.

I've tried making only a single connection to the site in question (no -ReturnConnection)

My question is what permissions I need to run this cmdlet.

Expected behavior

I expect the ReportJob to be submitted.

Actual behavior

See error above.

Steps to reproduce behavior

See screenshot above.

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

2.12

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

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify
@sympmarc sympmarc added the bug Something isn't working label Jan 31, 2025
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

1 participant