Create a new authenticationCombinationConfiguration object. In use, only fido2combinationConfigurations may be created, and these may only be created for custom authentication strength policies.
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
You can specify the following properties when creating an authenticationCombinationConfiguration. Additionally, you must supply the @odata.type and required properties of the derived type of authenticationCombinationConfiguration that you're creating. For example, "@odata.type" : "#microsoft.graph.fido2CombinationConfiguration".
Property
Type
Description
appliesToCombinations
authenticationMethodModes collection
The combinations to which this configuration applies. The only possible value for fido2combinationConfigurations is fido2. Required.
Response
If successful, this method returns a 201 Created response code and a fido2CombinationConfiguration object in the response body.
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
var requestBody = new AuthenticationCombinationConfiguration
{
OdataType = "#microsoft.graph.fido2CombinationConfiguration",
AppliesToCombinations = new List<AuthenticationMethodModes?>
{
AuthenticationMethodModes.Fido2,
},
AdditionalData = new Dictionary<string, object>
{
{
"allowedAAGUIDs" , new List<string>
{
"486c3b50-889c-480a-abc5-c04ef7c873e0",
"c042882f-a621-40c8-94d3-9cde3a826fed",
"ec454c08-4c77-4012-9d48-45f7f0fccdfb",
}
},
},
};
var result = await graphClient.Identity.ConditionalAccess.AuthenticationStrength.Policies["{authenticationStrengthPolicy-id}"].CombinationConfigurations.PostAsync(requestBody);
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$requestBody = new AuthenticationCombinationConfiguration();
$requestBody->set@odatatype('#microsoft.graph.fido2CombinationConfiguration');
$requestBody->setAppliesToCombinations([$requestBody->setAuthenticationMethodModes(new AuthenticationMethodModes('fido2'));
]);
$additionalData = [
'allowedAAGUIDs' => ['486c3b50-889c-480a-abc5-c04ef7c873e0', 'c042882f-a621-40c8-94d3-9cde3a826fed', 'ec454c08-4c77-4012-9d48-45f7f0fccdfb', ],
];
$requestBody->setAdditionalData($additionalData);
$result = $graphServiceClient->identity()->conditionalAccess()->authenticationStrength()->policies()->byPolicieId('authenticationStrengthPolicy-id')->combinationConfigurations()->post($requestBody);