Skip to content

Commit

Permalink
Added BPA validations (SharePoint sharing / Entra ID Admins)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Buechi committed Aug 28, 2024
1 parent 0b9f1c0 commit be802b5
Showing 1 changed file with 43 additions and 16 deletions.
59 changes: 43 additions & 16 deletions Config/AXE.BPATemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@
"asApp": "True"
},
"ExtractFields": [
"sharingCapability",
"isResharingByExternalUsersEnabled",
"isUnmanagedSyncAppForTenantRestricted",
"isSiteCreationEnabled",
Expand All @@ -247,24 +246,19 @@
"StoreAs": "JSON",
"FrontendFields": [
{
"name": "SPO: Sharing capability",
"value": "SharepointSettings.sharingCapability",
"formatter": "string"
},
{
"name": "SPO: Resharing by external users",
"name": "SPO: Resharing by external users disabled",
"value": "SharepointSettings.isResharingByExternalUsersEnabled",
"formatter": "bool"
"formatter": "reverseBool"
},
{
"name": "SPO: Allow users to sync from unmanaged devices",
"value": "SharepointSettings.isUnmanagedSyncAppForTenantRestricted",
"formatter": "reverseBool"
},
{
"name": "SPO: Site creation by standard users enabled",
"name": "SPO: Site creation by standard users disabled",
"value": "SharepointSettings.isSiteCreationEnabled",
"formatter": "bool"
"formatter": "reverseBool"
},
{
"name": "SPO: Default Timezone",
Expand All @@ -277,26 +271,59 @@
"formatter": "bool"
},
{
"name": "SPO: Legacy Auth Protocols Enabled",
"name": "SPO: Legacy Auth Protocols Disabled",
"value": "SharepointSettings.isLegacyAuthProtocolsEnabled",
"formatter": "reverseBool"
}
]
},
{
"name": "SharepointAnonymousSharingEnabled",
"API": "Graph",
"URL": "https://graph.microsoft.com/beta/admin/sharepoint/settings",
"where": "$_.sharingCapability -eq 'ExternalUserAndGuestSharing'",
"Parameters": {
"asApp": "True"
},
"ExtractFields": [
"sharingCapability"
],
"StoreAs": "bool",
"FrontendFields": [
{
"name": "SPO: Anonymous Sharing disabled",
"value": "SharepointAnonymousSharingEnabled",
"formatter": "reverseBool"
}
]
},
{
"name": "BreakGlassAccount",
"API": "Graph",
"URL": "https://graph.microsoft.com/beta/users?$filter=startswith(displayName,'BreakGlass ')&$select=displayName",
"where": "$_.count -eq 1",
"FrontendFields": [
{
"name": "BreakGlass Account",
"value": "BreakGlassAccount",
"formatter": "bool"
}
]
},
{
"name": "adminsTable",
"name": "adminRoles",
"UseExistingInfo": false,
"API": "Graph",
"URL": "https://graph.microsoft.com/beta/directoryRoles/roleTemplateId=62e90394-69f5-4237-9190-012177145e10/members",
"URL": "https://graph.microsoft.com/v1.0/directoryRoles?$expand=members($select=displayName)&$select=displayName",
"ExtractFields": [
"displayName",
"userPrincipalName"
"members"
],
"StoreAs": "JSON",
"FrontendFields": [
{
"name": "Admins Table",
"value": "adminsTable",
"name": "Admin Roles",
"value": "adminRoles",
"formatter": "table"
}
]
Expand Down

0 comments on commit be802b5

Please sign in to comment.