Skip to content

[BUG]: Get-PnPUnifiedAuditLog -ContentType DLP throwing 401 error #3744

@reshmee011

Description

@reshmee011

Reporting an Issue or Missing Feature

Get-PnPUnifiedAuditLog -ContentType DLP throws the error
Unauthorized (401): The permission set (ActivityFeed.Read ServiceHealth.Read) sent in the request does not include the expected permission.

Expected behavior

The cmdlet to be successful

Actual behavior

Error 401 thrown
Unauthorized (401): The permission set (ActivityFeed.Read ServiceHealth.Read) sent in the request does not include the expected permission.

Steps to reproduce behavior

$SiteUrl = "https://reshmeeauckloo.sharepoint.com/"
Connect-PnPOnline -url $siteurl -Interactive
Get-PnPUnifiedAuditLog -ContentType DLP

Upon some investigation, found out connecting with entra app with missing permissions threatintelligence and activity reports, I could not reproduce the issue anymore.
image

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

2.3.37

Please assign to me.

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

  • Windows

Metadata

Metadata

Assignees

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