'Name' and 'Email Address' Attributes Missing in Apple Connection User Profile
This article clarifies why the user profile created in the Auth0 tenant after a user performs "Sign in with Apple" is missing the 'name' and 'email address' attributes, even though the account is created successfully in Auth0.
-
Apple connection
-
User profile attributes
-
"Sign in with Apple"
Several factors can cause the 'name' and 'email address' attributes to be missing from the user profile:
-
The configuration uses the Auth0 Developer Key for the Apple connection, which is not recommended. Consult documentation on Devkeys.
-
The 'name' and 'Email Address' attributes are not correctly enabled in the Apple connection under the Settings tab. (See below)
- Apple does not send the 'email' and 'name' attributes to the client (Auth0) in some scenarios. For example, the
emailvalue may be empty for Sign in with Apple at Work & School users. Consult Apple documentation on [Authenticating Users with Sign in with Apple].
To minimize the occurrence of this issue, follow the steps to ensure the attributes are correctly enabled and cached data is updated:
-
Disable the 'name' and 'Email Address' attributes in the Apple connection Settings.
-
Select Save to apply the change.
-
Re-enable the 'name' and 'Email Address' attributes.
-
Select Save to apply the change.
-
Delete the Apple connection user profile from the Auth0 tenant.
-
The user must Log in again with the same credentials to re-create the user profile in the Auth0 tenant.