Creating a terraform self service profile resource requires the name of the profile. The allowed strategies and user attributes are optional attributes. User attributes are the SAML attributes that the identity provider must map to the correct values during a successful SAML assertion. This, however, is not enforceable; it basically acts like a guidance for the user during the self-service setup.
resource "auth0_self_service_profile" "profile" {
name = "profiletest"
allowed_strategies = ["samlp"]
user_attributes {
description = "The user's roles"
name = "roles"
is_optional = true
}
}