From 8fb28bd69fbc9b009709d0690c371276aa46e98f Mon Sep 17 00:00:00 2001 From: Rajat Bajaj Date: Thu, 16 Jan 2025 14:29:01 +0530 Subject: [PATCH] Support never_on_login as allowed value for set_user_root_attributes (#1123) --- docs/resources/connection.md | 2 +- internal/auth0/connection/schema.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/resources/connection.md b/docs/resources/connection.md index d9a3b96a..175a94fe 100644 --- a/docs/resources/connection.md +++ b/docs/resources/connection.md @@ -729,7 +729,7 @@ Optional: - `requires_username` (Boolean) Indicates whether the user is required to provide a username in addition to an email address. - `scopes` (Set of String) Permissions to grant to the connection. Within the Auth0 dashboard these appear under the "Attributes" and "Extended Attributes" sections. Some examples: `basic_profile`, `ext_profile`, `ext_nested_groups`, etc. - `scripts` (Map of String) A map of scripts used for an OAuth connection. Only accepts a `fetchUserProfile` script. -- `set_user_root_attributes` (String) Determines whether to sync user profile attributes (`name`, `given_name`, `family_name`, `nickname`, `picture`) at each login or only on the first login. Options include: `on_each_login`, `on_first_login`. Default value: `on_each_login`. +- `set_user_root_attributes` (String) Determines whether to sync user profile attributes (`name`, `given_name`, `family_name`, `nickname`, `picture`) at each login or only on the first login. Options include: `on_each_login`, `on_first_login`, `never_on_login`. Default value: `on_each_login`. - `should_trust_email_verified_connection` (String) Choose how Auth0 sets the email_verified field in the user profile. - `sign_in_endpoint` (String) SAML single login URL for the connection. - `sign_out_endpoint` (String) SAML single logout URL for the connection. diff --git a/internal/auth0/connection/schema.go b/internal/auth0/connection/schema.go index a93a51ec..2a9acd48 100644 --- a/internal/auth0/connection/schema.go +++ b/internal/auth0/connection/schema.go @@ -520,10 +520,10 @@ var optionsSchema = &schema.Schema{ Type: schema.TypeString, Optional: true, Computed: true, - ValidateFunc: validation.StringInSlice([]string{"on_each_login", "on_first_login"}, false), + ValidateFunc: validation.StringInSlice([]string{"on_each_login", "on_first_login", "never_on_login"}, false), Description: "Determines whether to sync user profile attributes (`name`, `given_name`, " + "`family_name`, `nickname`, `picture`) at each login or only on the first login. Options " + - "include: `on_each_login`, `on_first_login`. Default value: `on_each_login`.", + "include: `on_each_login`, `on_first_login`, `never_on_login`. Default value: `on_each_login`.", }, "non_persistent_attrs": { Type: schema.TypeSet,