Repository navigation
Expand file tree
/
Copy pathGet-ZtGraphScope.ps1
More file actions
59 lines (53 loc) · 1.97 KB
/
Copy pathGet-ZtGraphScope.ps1
File metadata and controls
59 lines (53 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
function Get-ZtGraphScope {
<#
.SYNOPSIS
List the Graph scopes needed for the ZeroTrustAssessment.
.DESCRIPTION
List the Graph scopes needed for the ZeroTrustAssessment.
.EXAMPLE
PS C:\> Get-ZtGraphScope
List the Graph scopes needed for the ZeroTrustAssessment.
#>
[CmdletBinding()]
param()
# Any changes made to these permission scopes should be reflected in the documentation.
# /zerotrustassessment/website/docs/sections/permissions.md
# Default read-only scopes required for the assessment.
$scopes = @( #IMPORTANT: Read note above before adding any new scopes.
'Application.Read.All'
'AttackSimulation.Read.All'
'AuditLog.Read.All'
'CopilotPackages.Read.All'
'CrossTenantInformation.ReadBasic.All'
'CustomSecAttributeAssignment.Read.All'
'DeviceManagementApps.Read.All'
'DeviceManagementConfiguration.Read.All'
'DeviceManagementManagedDevices.Read.All'
'DeviceManagementRBAC.Read.All'
'DeviceManagementServiceConfig.Read.All'
'Directory.Read.All'
'DirectoryRecommendations.Read.All'
'EntitlementManagement.Read.All'
'IdentityRiskEvent.Read.All'
'IdentityRiskyServicePrincipal.Read.All'
'IdentityRiskyUser.Read.All'
'LifecycleWorkflows-Workflow.Read.All'
'NetworkAccess.Read.All'
'Policy.Read.All'
'Policy.Read.ConditionalAccess'
'Policy.Read.PermissionGrant'
'PrivilegedAccess.Read.AzureAD'
'PrivilegedAssignmentSchedule.Read.AzureADGroup'
'PrivilegedEligibilitySchedule.Read.AzureADGroup'
'Reports.Read.All'
'RoleManagement.Read.All'
'SecurityAlert.Read.All'
'SecurityEvents.Read.All'
'SecurityIdentitiesHealth.Read.All'
'SecurityIdentitiesSensors.Read.All'
'SecurityIncident.Read.All'
'ThreatHunting.Read.All'
'UserAuthenticationMethod.Read.All'
)
$scopes | Sort-Object -Unique
}