File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Conditional Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
using namespace System.Net
2
2
3
- Function Invoke-ExecCaCheck {
3
+ function Invoke-ExecCaCheck {
4
4
<#
5
5
. FUNCTIONALITY
6
6
Entrypoint
@@ -23,18 +23,18 @@ Function Invoke-ExecCaCheck {
23
23
}
24
24
$results = try {
25
25
$CAContext = @ {
26
- ' @odata.type' = ' #microsoft.graph.whatIfApplicationContext '
26
+ ' @odata.type' = ' #microsoft.graph.applicationContext '
27
27
' includeApplications' = @ ($IncludeApplications )
28
28
}
29
29
$ConditionalAccessWhatIfDefinition = @ {
30
- ' conditionalAccessWhatIfSubject ' = @ {
31
- ' @odata.type' = ' #microsoft.graph.userSubject '
30
+ ' signInIdentity ' = @ {
31
+ ' @odata.type' = ' #microsoft.graph.userSignIn '
32
32
' userId' = " $userId "
33
33
}
34
- ' conditionalAccessContext ' = $CAContext
35
- ' conditionalAccessWhatIfConditions ' = @ {}
34
+ ' signInContext ' = $CAContext
35
+ ' signInConditions ' = @ {}
36
36
}
37
- $whatIfConditions = $ConditionalAccessWhatIfDefinition.conditionalAccessWhatIfConditions
37
+ $whatIfConditions = $ConditionalAccessWhatIfDefinition.signInConditions
38
38
if ($Request.body.UserRiskLevel ) { $whatIfConditions.userRiskLevel = $Request.body.UserRiskLevel.value }
39
39
if ($Request.body.SignInRiskLevel ) { $whatIfConditions.signInRiskLevel = $Request.body.SignInRiskLevel.value }
40
40
if ($Request.body.ClientAppType ) { $whatIfConditions.clientAppType = $Request.body.ClientAppType.value }
You can’t perform that action at this time.
0 commit comments