|
1 |
| -### Example 1: {{ Add title here }} |
| 1 | +### Example 1: List history of a specific user |
2 | 2 | ```powershell
|
3 |
| -PS C:\> {{ Add code here }} |
| 3 | +Connect-MgGraph -Scopes "IdentityRiskyUser.Read.All" |
| 4 | +Select-MgProfile beta |
| 5 | +Get-MgRiskyUserHistory -RiskyUserId 375844b0-2026-4265-b9f1-ee1708491e05 | Format-Table RiskDetail, RiskLastUpdatedDateTime, RiskState, UserDisplayName |
4 | 6 |
|
5 |
| -{{ Add output here }} |
| 7 | +RiskDetail RiskLastUpdatedDateTime RiskState UserDisplayName |
| 8 | +---------- ----------------------- --------- --------------- |
| 9 | +userPerformedSecuredPasswordReset 5/4/2022 10:54:35 PM remediated Jason Mayer |
| 10 | +adminConfirmedUserCompromised 5/27/2022 11:26:40 PM confirmedCompromised Jason Mayer |
| 11 | +adminDismissedAllRiskForUser 5/27/2022 11:28:07 PM dismissed Jason Mayer |
| 12 | +none 4/20/2022 3:33:58 PM atRisk Jason Mayer |
| 13 | +none 4/21/2022 9:58:21 PM atRisk Jason Mayer |
6 | 14 | ```
|
7 | 15 |
|
8 |
| -{{ Add description here }} |
| 16 | +The command return all the user risk history |
9 | 17 |
|
10 |
| -### Example 2: {{ Add title here }} |
| 18 | +### Example 2: List history of a specific user with detailed risk detection |
11 | 19 | ```powershell
|
12 |
| -PS C:\> {{ Add code here }} |
| 20 | +Connect-MgGraph -Scopes "IdentityRiskyUser.Read.All" |
| 21 | +Select-MgProfile beta |
| 22 | +Get-MgRiskyUserHistory -RiskyUserId 375844b0-2026-4265-b9f1-ee1708491e05| Format-Table RiskDetail, RiskLastUpdatedDateTime, @{N="RiskDetection";E={($_). Activity.RiskEventTypes}}, RiskState, UserDisplayName |
13 | 23 |
|
14 |
| -{{ Add output here }} |
| 24 | +RiskDetail RiskLastUpdatedDateTime RiskDetection RiskState UserDisplayName |
| 25 | +---------- ----------------------- ------------- --------- --------------- |
| 26 | +userPerformedSecuredPasswordReset 5/4/2022 10:54:35 PM remediated Jason Mayer |
| 27 | +adminConfirmedUserCompromised 5/27/2022 11:26:40 PM confirmedCompromised Jason Mayer |
| 28 | +adminDismissedAllRiskForUser 5/27/2022 11:28:07 PM dismissed Jason Mayer |
| 29 | +none 4/20/2022 3:33:58 PM anomalousToken atRisk Jason Mayer |
| 30 | +none 4/21/2022 9:58:21 PM anonymizedIPAddress atRisk Jason Mayer |
15 | 31 | ```
|
16 | 32 |
|
17 |
| -{{ Add description here }} |
18 |
| - |
| 33 | +The command return all the user risk history and expand the property of Activity |
0 commit comments