Open gavinbarron opened 3 weeks ago
A customer is trying to clear the Devices Conditions in a Conditional Access Policy and cannot using Update-MgIdentityConditionalAccessPolicy
Update-MgIdentityConditionalAccessPolicy
We can clear sections of a Conditional Access Policy using Update-MgIdentityConditionalAccessPolicy
When running the reproduction code we should see a request body with a null valued Devices property, e.g.:
{ "Conditions": { "Devices": null } }
Run the following commands with fiddler set up and intercepting requests to Microsoft Graph
Connect-MgGraph $policyId = "POLICYID" $params = @{ conditions = @{ devices = $null } } Update-MgIdentityConditionalAccessPolicy -ConditionalAccessPolicyId $policyId -BodyParameter $params
You will see that the body of the request sent over the wire contains and empty object {}
{}
No response
use Invoke-GraphRequest
Invoke-GraphRequest
not provided in IcM: https://portal.microsofticm.com/imp/v5/incidents/details/557480666
Not provided
Describe the bug
A customer is trying to clear the Devices Conditions in a Conditional Access Policy and cannot using
Update-MgIdentityConditionalAccessPolicy
Expected behavior
We can clear sections of a Conditional Access Policy using
Update-MgIdentityConditionalAccessPolicy
When running the reproduction code we should see a request body with a null valued Devices property, e.g.:
How to reproduce
Run the following commands with fiddler set up and intercepting requests to Microsoft Graph
You will see that the body of the request sent over the wire contains and empty object
{}
SDK Version
No response
Latest version known to work for scenario above?
No response
Known Workarounds
use
Invoke-GraphRequest
Debug output
not provided in IcM: https://portal.microsofticm.com/imp/v5/incidents/details/557480666
Configuration
Not provided
Other information
No response