-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for managing claims mapping policies (azuread_claims_mapping_policy
, azuread_claims_mapping_policy_assignment
)
#644
Comments
claimsMappingPolicy
)azuread_claims_mapping_policy
azuread_claims_mapping_policy
azuread_claims_mapping_policy
)
azuread_claims_mapping_policy
)azuread_claims_mapping_policy
, azuread_claims_mapping_policy_assignment
)
Our team internally has started some work to add this support since we have a need for it. Based on early work in the hamilton sdk we currently have an alpha quality functional resource that works like this to create a claims mapping policy: resource "azuread_claims_mapping_policy" "test" {
definition = [
jsonencode(
{
ClaimsMappingPolicy = {
ClaimsSchema = [
{
ID = "employeeid"
JwtClaimType = "name"
SamlClaimType = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"
Source = "user"
},
{
ID = "tenantcountry"
JwtClaimType = "country"
SamlClaimType = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country"
Source = "company"
}
]
IncludeBasicClaimSet = "true"
Version = 1
}
}
),
]
description = "hcl-created-policy"
display_name = "hcl-create-policy"
} Plan output is still a bit funny as it shows a diff every single time for the entire definition block, this is something we'll still need to improve before it's really ready but we'll be testing it as well as adding policy assignment support for service principals. |
Adds support for the claims mapping policy resource so these can be managed with Terraform. Related to: - manicminer/hamilton#147 - hashicorp#644 - https://docs.microsoft.com/en-us/graph/api/resources/claimsmappingpolicy?view=graph-rest-1.0
Adds support for the claims mapping policy assignment resource so claims mapping policies can be assigned to a service principle with Terraform. Related to: - manicminer/hamilton#147 - hashicorp#644 - https://docs.microsoft.com/en-us/graph/api/serviceprincipal-post-claimsmappingpolicies?view=graph-rest-1.0&tabs=http
Adds support for the claims mapping policy resource so these can be managed with Terraform. Related to: - manicminer/hamilton#147 - hashicorp#644 - https://docs.microsoft.com/en-us/graph/api/resources/claimsmappingpolicy?view=graph-rest-1.0
Adds support for the claims mapping policy assignment resource so claims mapping policies can be assigned to a service principle with Terraform. Related to: - manicminer/hamilton#147 - hashicorp#644 - https://docs.microsoft.com/en-us/graph/api/serviceprincipal-post-claimsmappingpolicies?view=graph-rest-1.0&tabs=http
Adds support for the claims mapping policy assignment resource so claims mapping policies can be assigned to a service principle with Terraform. Related to: - manicminer/hamilton#147 - hashicorp#644 - https://docs.microsoft.com/en-us/graph/api/serviceprincipal-post-claimsmappingpolicies?view=graph-rest-1.0&tabs=http
Adds support for the claims mapping policy resource so these can be managed with Terraform. Related to: - manicminer/hamilton#147 - hashicorp#644 - https://docs.microsoft.com/en-us/graph/api/resources/claimsmappingpolicy?view=graph-rest-1.0
Adds support for the claims mapping policy assignment resource so claims mapping policies can be assigned to a service principle with Terraform. Related to: - manicminer/hamilton#147 - hashicorp#644 - https://docs.microsoft.com/en-us/graph/api/serviceprincipal-post-claimsmappingpolicies?view=graph-rest-1.0&tabs=http
Adds support for the claims mapping policy assignment resource so claims mapping policies can be assigned to a service principle with Terraform. Related to: - manicminer/hamilton#147 - hashicorp#644 - https://docs.microsoft.com/en-us/graph/api/serviceprincipal-post-claimsmappingpolicies?view=graph-rest-1.0&tabs=http
Adds support for the claims mapping policy assignment resource so claims mapping policies can be assigned to a service principle with Terraform. Related to: - manicminer/hamilton#147 - hashicorp#644 - https://docs.microsoft.com/en-us/graph/api/serviceprincipal-post-claimsmappingpolicies?view=graph-rest-1.0&tabs=http
Adds support for the claims mapping policy resource so these can be managed with Terraform. Related to: - manicminer/hamilton#147 - #644 - https://docs.microsoft.com/en-us/graph/api/resources/claimsmappingpolicy?view=graph-rest-1.0
Adds support for the claims mapping policy assignment resource so claims mapping policies can be assigned to a service principle with Terraform. Related to: - manicminer/hamilton#147 - #644 - https://docs.microsoft.com/en-us/graph/api/serviceprincipal-post-claimsmappingpolicies?view=graph-rest-1.0&tabs=http
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description
We want to manage claim mappings within our Terraform configuration.
New or Affected Resource(s)
azuread_claims_mapping_policy
azuread_claims_mapping_policy_assignment
Potential Terraform Configuration
References
https://docs.microsoft.com/en-us/graph/api/resources/claimsmappingpolicy?view=graph-rest-1.0
https://docs.microsoft.com/en-us/graph/api/resources/claimsmappingpolicy?view=graph-rest-1.0#properties-of-a-claims-mapping-policy-definition
The text was updated successfully, but these errors were encountered: