Skip to content

Commit

Permalink
Added the permissions set in the cmdlet and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
reshmee011 committed Feb 12, 2024
1 parent 349ad0e commit 0414a3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions documentation/Get-PnPUnifiedAuditLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ online version: https://pnp.github.io/powershell/cmdlets/Get-PnPUnifiedAuditLog.

**Required Permissions**

* Microsoft Office 365 Management API: ActivityFeed.Read
* Microsoft Office 365 Management API: ActivityFeed.Read, Microsoft Office 365 Management API: ActivityFeed.ReadDlp, Microsoft Office 365 Management API: ActivityReports.Read, Microsoft Office 365 Management API: ServiceHealth.Read and Microsoft Office 365 Management API:ThreatIntelligence.Read

Gets unified audit logs from the Office 365 Management API. Requires the Azure Active Directory application permission 'ActivityFeed.Read'.
Gets unified audit logs from the Office 365 Management API. Requires the Azure Entra application permission 'ActivityFeed.Read', 'ActivityFeed.ReadDlp', 'ActivityReports.Read', 'ServiceHealth.Read' and 'ThreatIntelligence.Read'.

## SYNTAX

Expand Down
2 changes: 1 addition & 1 deletion src/Commands/ManagementApi/GetUnifiedAuditLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
namespace PnP.PowerShell.Commands.ManagementApi
{
[Cmdlet(VerbsCommon.Get, "PnPUnifiedAuditLog")]
[RequiredMinimalApiPermissions("https://manage.office.com/ActivityFeed.Read")]
[RequiredMinimalApiPermissions("https://manage.office.com/ActivityFeed.Read","https://manage.office.com/ActivityFeed.ReadDlp","https://manage.office.com/ServiceHealth.Read","https://manage.office.com/ActivityReports.Read","https://manage.office.com/ThreatIntelligence.Read")]
[OutputType(typeof(ManagementApiUnifiedLogRecord))]
public class GetUnifiedAuditLog : PnPOfficeManagementApiCmdlet
{
Expand Down

0 comments on commit 0414a3b

Please sign in to comment.