Open nbaju1 opened 1 year ago
pretty sure your problem is case sensitivity. All the policy stuff uses PascalCase and you are using camelCase
Were you able to figure this out?
I'm also seeing the same problem. In my case the issue seems to be setting transformation
as the Source for the ClaimsSchema. If I change it to another value like user
(which doesn't trigger the claims transformation) I don't have any issues running the apply.
resource "azuread_claims_mapping_policy" "test" {
definition = [jsonencode(
{
ClaimsMappingPolicy = {
Version = 1
IncludeBasicClaimSet = true
ClaimsSchema = [
{
Source = "user"
Id = "extensionattribute1"
},
{
Source = "transformation"
Id = "DataJoin"
TransformationId = "JoinTheData"
JwtClaimType = "JoinTheData"
},
],
ClaimsTransformation = [
{
Id = "JoinTheData"
TransformationMethod = "Join"
InputClaims = [
{
ClaimTypeReferenceId = "extensionattribute1"
TransformationClaimType = "string1"
}
],
InputParameters = [
{
Id = "string2"
Value = "ext"
},
{
Id = "separator"
Value = "-"
}]
OutputClaims = [
{
ClaimTypeReferenceId = "DataJoin"
TransformationClaimType = "OutputClaim"
}
]
}
],
}
}
)]
display_name = "test_transformation"
}
So it seems as if Source = "transformation"
is not supported.
Any updates on this by chance?
Has anyone succeeded in creating a claims mapping policy with a claims transformation? Have tested many iterations, both based on MS docs and the intercepted JSON files when configuring transformations in the UI.
Current iteration which fails (the previous configuration works fine):
This produces the following error: