Requested_scopes does not contain 'name' when login via apple

I’m trying to setup my app to suppport login with apple
I setup option in Apple connection to include aditional scope ‘name‘
Also, check boxes Name, EmailAddress = true

Also I have 2 actions (post-login, post-user-registered) and sending the whole event to my local app
In the event I see that request.query.requested_scope does not contain that scope ‘name‘ I added in apple connection settings

“request”: {
“ip”: “3”,
“asn”: “420”,
“method”: “GET”,
“query”: {
“audience”: “”,
“client_id”: “wtaPnQ4kTkfqKKcNP”,
“nonce”: “a123”,
“protocol”: “oauth2”,
“redirect_uri”: “”,
“response_type”: “id_token token”,
“scope”: “openid profile email”,
“screen_hint”: “signup”
},
“body”: {

},
"geoip": {
},
"hostname": "dev-bus.auth0.com",
"language": "ru-RU,ru;q=0.9",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36"

},
“stats”: {
“logins_count”: 1
},
“user”: {
“nonce_supported”: true,
“app_metadata”: {

},
"created_at": "2025-10-13T11:49:00.846Z",
"email_verified": true,
"email": "arno@gmail.com",
"identities": [
  {
    "connection": "apple",
    "isSocial": true,
    "provider": "apple",
    "userId": "001324.ec2786489b7396eb.1453",
    "user_id": "001324.ec278689b7396eb.1453"
  }
],
"name": ".com",
"nickname": "",
"picture": "https://s.gravatar.cog&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Far.png",
"updated_at": "2025-10-13T11:49:00.846Z",
"user_id": "apple|001324.ec25f3b7396eb.1453",
"user_metadata": {
  
},
"multifactor": [
  
]

},

(I removed some data there not to share it in public)
I need to get user first and last name, how do I do that?

Hi @ahrykhno

Welcome to the Auth0 Community!

After doing some research on the matter, it appears that there could be a couple of reasons for this behaviour, most commonly the cause appears to be that Apple could be sending the “name” attribute only on the first login for each client_id and not on any subsequent logins for the same user. Allow me to share a couple of articles/documentations that should prove useful in troubleshooting this issue:

Hope this helped clear the issue for you, but let me know if you are still experiencing the same outcome.

Best regards,
Gerald

So I tried to remove my user from Auth0 and also removed connection in my appleId but it didn’t help.
Everything I get is only my email and that’s it

As I already said, I definetely see that Auth0 is not adding “name“ to scope when sending request to Apple. I believe this is the main problem

Hi @ahrykhno

Thank you for the information provided!

I have found some additional details that should hopefully help with this issue:

  • Make sure that the " name " scope is set at the Connection level, so that it is being requested by Auth0 from Apple;
  • I have noticed a difference when comparing the use of Developer Keys versus not using them : I am able to receive the ‘name’ from Apple only when Dev Key are not being used. Although I cannot confirm this is an expected behaviour, Dev Key do behave differently and can create such unexpected issues; furthermore, this situation has been presented to us in the past and not using Dev Keys was the solution, which could be applicable in your case;
  • If you are able to set up the connection with a client ID and secret, I also found that I needed to go into my Apple ID settings and in Sign-In and Security > Sign in with Apple I was able to select “Stop using sign in with Apple” for my test account and then go through the login flow again to make sure the ‘name’ was now going through as well.

Hope this helps!
Gerald

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.