# Is there any global variable that can be used in Rules and can be updated?

**URL:** <https://community.auth0.com/t/is-there-any-global-variable-that-can-be-used-in-rules-and-can-be-updated/41322>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [April 18, 2020, 11:27am UTC](https://community.auth0.com/t/is-there-any-global-variable-that-can-be-used-in-rules-and-can-be-updated/41322 "2020-04-18T11:27:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andre.hermanto93](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andre.hermanto93/32/13514_2.png) [@andre.hermanto93](https://community.auth0.com/u/andre.hermanto93)\
**Post date:** [April 18, 2020, 11:27am UTC](https://community.auth0.com/t/is-there-any-global-variable-that-can-be-used-in-rules-and-can-be-updated/41322/1 "2020-04-18T11:27:48Z")

</div>

Hi Auth0 team,

I want to make a counter to count number of login based on certain email groups. However, I don’t know where to store this value.

I guess its very similar to this question: [How to update configuration object value in rules](http://community.auth0.com/t/how-to-update-configuration-object-value-in-rules/37005)

However, I don’t want the information to be bound to the user. Is there any way to do it?

Thank you

---

<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:** [April 20, 2020, 11:35pm UTC](https://community.auth0.com/t/is-there-any-global-variable-that-can-be-used-in-rules-and-can-be-updated/41322/3 "2020-04-20T23:35:44Z")

</div>

Hi @andre.hermanto93,

There isn’t a feature that will be able to do this right out of the box. If you will, please submit a [feedback ticket](https://auth0.com/feedback) with this as a feature request.

In the meant time, you could use an external API to build this out. Check out this FAQ I just wrote:

[http://community.auth0.com/t/how-do-i-call-my-api-from-a-rule/41309](http://community.auth0.com/t/how-do-i-call-my-api-from-a-rule/41309)

Hope this helps!  
Dan

---

<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 5, 2020, 11:35pm UTC](https://community.auth0.com/t/is-there-any-global-variable-that-can-be-used-in-rules-and-can-be-updated/41322/4 "2020-05-05T23:35:45Z")

</div>

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