# Namespaced claim replaces period (.) with colon (:)

**URL:** <https://community.auth0.com/t/namespaced-claim-replaces-period-with-colon/59773>\
**Category:** Get Help\
**Tags:** custom-claims, jwt, oidc, auth0\
**Created:** [March 19, 2021, 10:16pm UTC](https://community.auth0.com/t/namespaced-claim-replaces-period-with-colon/59773 "2021-03-19T22:16:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Guangjie](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/guangjie/32/17341_2.png) [@Guangjie](https://community.auth0.com/u/Guangjie)\
**Post date:** [May 18, 2021, 11:30am UTC](https://community.auth0.com/t/namespaced-claim-replaces-period-with-colon/59773/2 "2021-05-18T11:30:35Z")

</div>

Hi Blake,

You are right, the dot/period `.` is not allowed in user profile’s field names, not just in `app_metadata` or `user_metadata`.  
If you try to update the user profile with the following payload it will fail with error `Fields with \".\" are not allowed, please remove all dotted fields. Example: user_metadata.foo.bar`

```auto
{
    "user_metadata": {
        "foo.bar" : 12345
    }
}

```

However, if the user profile is from an external IdP, such as an OIDC connection in your case, we cannot control the field names of the user profile from the IdP, and it’s not worth to reject the authentication just because we don’t like the dot in the IdP’s user profile. So we replace them with colon `:`.

As a workaround, you could the following regex in a rule in the 2nd tenant to replace the colon in the field names back to dot:

```auto
// change the colon back to dot in the namespaced URL
let new_claim = claim.replace(/(?<!(http|https)):/g, '.');
```

---

_[View the full topic](https://community.auth0.com/t/namespaced-claim-replaces-period-with-colon/59773)._
