# OpenID Connect User Mapping: how to map a url-namespaced custom claim

**URL:** <https://community.auth0.com/t/openid-connect-user-mapping-how-to-map-a-url-namespaced-custom-claim/149500>\
**Category:** Get Help\
**Tags:** oidc-enterprise-connection, connections\
**Created:** [October 9, 2024, 8:18pm UTC](https://community.auth0.com/t/openid-connect-user-mapping-how-to-map-a-url-namespaced-custom-claim/149500 "2024-10-09T20:18:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![enigma3319](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/enigma3319/32/17856_2.png) [@enigma3319](https://community.auth0.com/u/enigma3319)\
**Post date:** [October 9, 2024, 8:18pm UTC](https://community.auth0.com/t/openid-connect-user-mapping-how-to-map-a-url-namespaced-custom-claim/149500/1 "2024-10-09T20:18:55Z")

</div>

Hello. I’m working with an Open ID Enterprise connection, and trying to figure out how to map a url-namespaced custom claim.

I read through the docs [Configure PKCE and Claim Mapping for OIDC Connections](https://auth0.com/docs/authenticate/identity-providers/enterprise-identity-providers/configure-pkce-claim-mapping-for-oidc#context-object)

but they don’t mention how to access namespaced custom claims

eg, given a custom claim of “[http://www.foobar.com/some\_value](http://www.foobar.com/some_value)”

How would I access it from token set?

This is the rough idea of what I’m trying to do (doesn’t actually work due to invalid syntax)

```auto
{
  "attributes": {
    "email": "${context.tokenset}['http://www.foobar.com/some_valuel']",
  },
  "mapping_mode": "use_map"
}

```

---

<div class="post-metadata">

**Author:** ![rushvora](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rushvora/32/74538_2.png) [@rushvora](https://community.auth0.com/u/rushvora)\
**Post date:** [April 30, 2025, 11:29am UTC](https://community.auth0.com/t/openid-connect-user-mapping-how-to-map-a-url-namespaced-custom-claim/149500/3 "2025-04-30T11:29:05Z")

</div>

Did you manage to find a solution for this? We’re working with AWS Cognito, and they default to their custom claims having the `custom:` prefix in the key, which Auth0 doesn’t allow due to invalid syntax, and I tried the same string in brackets thing that you pasted above.

We can use a Lambda to modify this at Cognito’s end, but asking all of our customers who might be using Cognito to do this might not be feasible.

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [May 2, 2025, 4:14pm UTC](https://community.auth0.com/t/openid-connect-user-mapping-how-to-map-a-url-namespaced-custom-claim/149500/4 "2025-05-02T16:14:36Z")

</div>

Hi @enigma3319, @rushvora,

Welcome to the Auth0 Community!

This issue has been raised up internally and unfortunately regardless of the syntax used namespaced custom claims in OIDC attribute mapping have to comply with standard JS format, so they are currently not supported. It has already been added as an opportunity backlog, but if you feel like it I would encourage creating a [Product Feedback](https://community.auth0.com/c/feedback/95) so it can reach more visibility and possibly get more votes in order to get implemented.

Thanks,  
Remus

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 16, 2025, 4:15pm UTC](https://community.auth0.com/t/openid-connect-user-mapping-how-to-map-a-url-namespaced-custom-claim/149500/5 "2025-05-16T16:15:01Z")

</div>

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