Skip to content

Commit baf0d4a

Browse files
Update multi-factor-authentication-enforcement.md
1 parent 6b8cc4a commit baf0d4a

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

articles/defender-for-cloud/multi-factor-authentication-enforcement.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Security recommendations for multi-factor authentication
33
description: Learn how to enforce multi-factor authentication for your Azure subscriptions using Microsoft Defender for Cloud
44
ms.topic: conceptual
5-
ms.date: 06/28/2023
5+
ms.date: 08/14/2023
66
---
77

88
# Manage multi-factor authentication (MFA) enforcement on your subscriptions
@@ -67,17 +67,19 @@ To see which accounts don't have MFA enabled, use the following Azure Resource G
6767

6868
1. Enter the following query and select **Run query**.
6969

70-
```kusto
71-
securityresources
72-
| where type == "microsoft.security/assessments"
73-
| where properties.displayName contains "Accounts with owner permissions on Azure resources should be MFA enabled"
74-
| where properties.status.code == "Unhealthy"
70+
```
71+
securityresources
72+
| where type =~ "microsoft.security/assessments/subassessments"
73+
| where id has "assessments/dabc9bc4-b8a8-45bd-9a5a-43000df8aa1c" or id has "assessments/c0cb17b2-0607-48a7-b0e0-903ed22de39b" or id has "assessments/6240402e-f77c-46fa-9060-a7ce53997754"
74+
| parse id with start "/assessments/"assessmentId"/subassessments/" userObjectId
75+
| summarize make_list(userObjectId) by strcat(tostring(properties.displayName), " (", assessmentId, ")")
76+
| project ["Recommendation Name"] = Column1 , ["Account ObjectIDs"] = list_userObjectId
7577
```
7678
7779
1. The `additionalData` property reveals the list of account object IDs for accounts that don't have MFA enforced.
7880
7981
> [!NOTE]
80-
> The accounts are shown as object IDs rather than account names to protect the privacy of the account holders.
82+
> The 'Account ObjectIDs' column contains the list of account object IDs for accounts that don't have MFA enforced per recommendation.
8183
8284
> [!TIP]
8385
> Alternatively, you can use the Defender for Cloud REST API method [Assessments - Get](/rest/api/defenderforcloud/assessments/get).

0 commit comments

Comments
 (0)