Provides a Datadog AuthN Mappings resource. This feature lets you automatically assign roles to users based on their SAML attributes.
# Source the role
data "datadog_role" "ro_role" {
filter = "Datadog Read Only Role"
}
# Create a new AuthN mapping
resource "datadog_authn_mapping" "dev_ro_role_mapping" {
key = "Member-of"
value = "Development"
role = data.datadog_role.ro_role.id
}
key
(String) Identity provider key.value
(String) Identity provider value.role
(String) The ID of a role to attach to all users with the corresponding key and value.team
(String) The ID of a team to add all users with the corresponding key and value to.id
(String) The ID of this resource.Import is supported using the following syntax:
# AuthN mappings can be imported using their ID, e.g.
terraform import datadog_authn_mapping.dev_ro_mapping 000000-0000-0000-0000-000000000000