# Setting amr claim within rules

**URL:** <https://community.auth0.com/t/setting-amr-claim-within-rules/51167>\
**Category:** Get Help\
**Created:** [October 7, 2020, 2:37pm UTC](https://community.auth0.com/t/setting-amr-claim-within-rules/51167 "2020-10-07T14:37:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthew.nolf](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/matthew.nolf/32/24480_2.png) [@matthew.nolf](https://community.auth0.com/u/matthew.nolf)\
**Post date:** [October 7, 2020, 2:37pm UTC](https://community.auth0.com/t/setting-amr-claim-within-rules/51167/1 "2020-10-07T14:37:58Z")

</div>

Hi,

Is it possible to set/append to the `amr` claim within the access token (`context.accessToken.amr`) during the execution of a rule?

Unfortunately, I have not been able to achieve this, the `amr` claim seems to removed/sanitised away.

Thanks in advance.

Matt

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 13, 2020, 8:07pm UTC](https://community.auth0.com/t/setting-amr-claim-within-rules/51167/3 "2020-10-13T20:07:31Z")

</div>

Hi @matthew.nolf,

Non-namespaced claims are typically removed. Try adding a custom claim with a non-auth0 namespace, you can add whatever you would like to the token.

> **[Sample Use Cases: Scopes and Claims](https://auth0.com/docs/get-started/apis/scopes/sample-use-cases-scopes-and-claims)**
>
> Learn how to use scopes and claims with applications and APIs.

---

<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:** [October 28, 2020, 8:07pm UTC](https://community.auth0.com/t/setting-amr-claim-within-rules/51167/4 "2020-10-28T20:07:44Z")

</div>

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