
servicea.28287 (Customer) asked a question.
Is it against Okta rules to set claim both an access token and an identity token with the same name for default attributes? When I do this, I keep getting the error that the claim name should be unique. However, when I do this for custom attributes, it accepts both, allowing me to use the same name in both the access token and the id token.

Hello @servicea.28287 (Customer) Thank you for reacting out to our Community!
Please review our documentation below on this matter:
https://developer.okta.com/docs/guides/validate-id-tokens/main/#id-tokens-vs-access-tokens
My advice would be to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.
https://devforum.okta.com/
The Okta Community Catalysts Program is now live. Collect online badges when you participate in the Okta Help Center Questions community. Learn more here.
Hi @Paul S. (Okta, Inc.) . I read the documentation, it didn't help resolve my query. I'm getting this error when I use same name for claims(both access & ID) for email attribute only, which is a default attribute. Although I have also used the default attributes firstName and lastName in claims and didn't get this error. So, while creating claims, is there a naming convention that should be followed?