Skip to content

Commit

Permalink
Create ScubaGear-Permissions.json
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHicks-MSFT authored and mitchelbaker-cisa committed Nov 7, 2024
1 parent 3d0ad4d commit 4328a82
Showing 1 changed file with 202 additions and 0 deletions.
202 changes: 202 additions & 0 deletions PowerShell/ScubaGear/Modules/Connection/ScubaGear-Permissions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
{
"ScubaGearGraphScopes": [
{
"description": "This section contains the needed Microsoft Graph permissions if aad is selected when running ScubaGear for the ProductName parameter",
"url": "https://github.com/cisagov/ScubaGear/blob/main/docs/prerequisites/interactive.md#application-permissions",
"Product": "aad",
"Permission": [
"RoleManagementPolicy.Read.AzureADGroup",
"RoleManagement.Read.Directory",
"Directory.Read.All",
"User.Read.All",
"GroupMember.Read.All",
"PrivilegedAccess.Read.AzureADGroup",
"Organization.Read.All",
"Policy.Read.All",
"PrivilegedEligibilitySchedule.Read.AzureADGroup"
]
},
{
"description": "This section contains the needed Microsoft Graph permissions if exo or defender are selected when running ScubaGear for the ProductName parameter",
"url": "https://github.com/cisagov/ScubaGear/blob/main/docs/prerequisites/interactive.md#application-permissions",
"Product": ["exo", "defender"],
"Permission": [
"User.Read.All"
]
}
],
"GraphCmdLetPermissions": [
{
"description": "This section contains the least Privileged permissions required for each Microsoft Graph cmdlet used in ScubaGear codebase",
"Permission": "Policy.Read.All",
"cmdlet": [
"Get-MgBetaIdentityConditionalAccessPolicy",
"Get-MgBetaPolicyAuthorizationPolicy"
],
"runtype": [
"delegated",
"application"
]
},
{
"Permission": "Organization.Read.All",
"cmdlet": [
"Get-MgBetaSubscribedSku"
],
"runtype": [
"delegated",
"application"
]
},
{
"Permission": "User.ReadBasic.All",
"cmdlet": [
"Get-MgBetaUserCount",
"Get-MgBetaUser"
],
"runtype": [
"delegated",
"application"
]
},
{
"Permission": "Directory.Read.All",
"cmdlet": [
"Get-MgBetaDirectorySetting",
"Get-MgBetaDirectoryObject"
],
"runtype": [
"delegated",
"application"
]
},
{
"Permission": "Policy.ReadWrite.AuthenticationMethod",
"cmdlet": [
"Get-MgPolicyAuthenticationMethodPolicy"
],
"runtype": [
"delegated",
"application"
]
},
{
"Permission": "Domain.Read.All",
"cmdlet": [
"Get-MgBetaDomain"
],
"runtype": [
"delegated",
"application"
]
},
{
"Permission": "RoleEligibilitySchedule.Read.Directory",
"cmdlet": [
"Get-MgRoleManagementDirectoryRoleEligibilityScheduleInstance"
],
"runtype": [
"delegated",
"application"
]
},
{
"Permission": "RoleAssignmentSchedule.Read.Directory",
"cmdlet": [
"Get-MgBetaRoleManagementDirectoryRoleAssignmentScheduleInstance"
],
"runtype": [
"delegated",
"application"
]
},
{
"Permission": "PrivilegedEligibilitySchedule.Read.AzureADGroup",
"cmdlet": [
"Get-MgBetaIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance"
],
"runtype": [
"delegated",
"application"
]
},
{
"Permission": "AccessReview.Read.All",
"cmdlet": [
"Get-MgBetaPrivilegedAccessResource"
],
"runtype": [
"delegated",
"application"
]
},
{
"Permission": "Organization.Read.All",
"cmdlet": [
"Get-MgBetaOrganization"
],
"runtype": [
"application"
]
},
{
"Permission": "User.Read",
"cmdlet": [
"Get-MgBetaOrganization"
],
"runtype": [
"delegated"
]
},
{
"Permission": "RoleManagement.Read.Directory",
"cmdlet": [
"Get-MgBetaDirectoryRole",
"Get-MgBetaDirectoryRoleMember"
],
"runtype": [
"delegated",
"application"
]
},
{
"Permission": "RoleManagement.Read.Directory",
"cmdlet": [
"Get-MgBetaPolicyRoleManagementPolicyRule"
],
"runtype": [
"application"
]
},
{
"Permission": "RoleManagementPolicy.Read.Directory",
"cmdlet": [
"Get-MgBetaPolicyRoleManagementPolicyRule",
"Get-MgBetaPolicyRoleManagementPolicyAssignment"
],
"runtype": [
"Delegated"
]
},
{
"Permission": "GroupMember.Read.All",
"cmdlet": [
"Get-MgBetaGroupMember",
"Get-MgBetaGroup"
],
"runtype": [
"delegated",
"application"
]
},
{
"Permission": "RoleManagement.Read.All",
"cmdlet": [
"Get-MgBetaPolicyRoleManagementPolicyAssignment"
],
"runtype": [
"application"
]
}
]
}

0 comments on commit 4328a82

Please sign in to comment.