# Global Configuration in Rules always returns {}

**URL:** <https://community.auth0.com/t/global-configuration-in-rules-always-returns/52024>\
**Category:** Get Help\
**Tags:** rules, configuration, auth0\
**Created:** [October 22, 2020, 10:24pm UTC](https://community.auth0.com/t/global-configuration-in-rules-always-returns/52024 "2020-10-22T22:24:57Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![wolfbrownie1995](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/wolfbrownie1995/32/18608_2.png) [@wolfbrownie1995](https://community.auth0.com/u/wolfbrownie1995)\
**Post date:** [October 22, 2020, 10:24pm UTC](https://community.auth0.com/t/global-configuration-in-rules-always-returns/52024/1 "2020-10-22T22:24:57Z")

</div>

I have some key value global configurations set in the Rules tab’s settings but when I try to reference them in my rules it returns undefined. Even when I console.log(configuration) it returns {}.

Though I am able to create and reference the global configuration variables in the connections → database tab. Though these are also undefined when referenced in rules.

Please help.  
Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![mm-taigarevolution](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mm-taigarevolution/32/12776_2.png) [@mm-taigarevolution](https://community.auth0.com/u/mm-taigarevolution)\
**Post date:** [October 23, 2020, 7:12am UTC](https://community.auth0.com/t/global-configuration-in-rules-always-returns/52024/2 "2020-10-23T07:12:02Z")

</div>

We are having the same problem. Please help.

Br,  
Markus

---

<div class="post-metadata">

**Author:** ![austinrivas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/austinrivas/32/25171_2.png) [@austinrivas](https://community.auth0.com/u/austinrivas)\
**Post date:** [October 24, 2020, 11:29am UTC](https://community.auth0.com/t/global-configuration-in-rules-always-returns/52024/3 "2020-10-24T11:29:30Z")

</div>

I am also experiencing this issue.

Here is the topic I created earlier on it [Configuration empty in Rules handler](https://community.auth0.com/t/configuration-empty-in-rules-handler/52112).

I also have an open support ticket about the problem.

---

<div class="post-metadata">

**Author:** ![wolfbrownie1995](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/wolfbrownie1995/32/18608_2.png) [@wolfbrownie1995](https://community.auth0.com/u/wolfbrownie1995)\
**Post date:** [October 28, 2020, 12:33am UTC](https://community.auth0.com/t/global-configuration-in-rules-always-returns/52024/4 "2020-10-28T00:33:29Z")

</div>

Does anyone have a solution to this???

---

<div class="post-metadata">

**Author:** ![supun](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/supun/32/17069_2.png) [@supun](https://community.auth0.com/u/supun)\
**Post date:** [October 28, 2020, 4:31am UTC](https://community.auth0.com/t/global-configuration-in-rules-always-returns/52024/5 "2020-10-28T04:31:27Z")

</div>

Hi [austinrivas](https://community.auth0.com/u/austinrivas) & [wolfbrownie1995](https://community.auth0.com/u/wolfbrownie1995),

Could you please DM me your tenant names to investigate this?

Thank you.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 28, 2020, 12:22pm UTC](https://community.auth0.com/t/global-configuration-in-rules-always-returns/52024/6 "2020-10-28T12:22:37Z")

</div>

Hey everyone!

It seems like there are a couple fo community threads related to the same issue. @supun I will merge them for better tracking and navigation. All the messages from those topics will be down under this message.

---

<div class="post-metadata">

**Author:** ![austinrivas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/austinrivas/32/25171_2.png) [@austinrivas](https://community.auth0.com/u/austinrivas)\
**Post date:** [October 24, 2020, 10:48am UTC](https://community.auth0.com/t/global-configuration-in-rules-always-returns/52024/7 "2020-10-24T10:48:48Z")

</div>

I have a rule defined that accesses a configuration value.

```auto
function (user, context, callback) {
  console.log('config', configuration);
  callback(null, user, context);
}

```

Whenever I execute this rule I see `config {}` despite having several configuration values set.

When I try to access the configuration values I get undefined.

---

<div class="post-metadata">

**Author:** ![austinrivas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/austinrivas/32/25171_2.png) [@austinrivas](https://community.auth0.com/u/austinrivas)\
**Post date:** [October 24, 2020, 11:35am UTC](https://community.auth0.com/t/global-configuration-in-rules-always-returns/52024/8 "2020-10-24T11:35:02Z")

</div>

Also reported here [Global Configuration in Rules always returns {} - #2 by mm-taigarevolution](https://community.auth0.com/t/global-configuration-in-rules-always-returns/52024/2)

---

<div class="post-metadata">

**Author:** ![wolfbrownie1995](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/wolfbrownie1995/32/18608_2.png) [@wolfbrownie1995](https://community.auth0.com/u/wolfbrownie1995)\
**Post date:** [October 28, 2020, 12:23am UTC](https://community.auth0.com/t/global-configuration-in-rules-always-returns/52024/9 "2020-10-28T00:23:04Z")

</div>

Has this been solved?? I am still experiencing this issue…

---

<div class="post-metadata">

**Author:** ![reuven.josef.k](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/reuven.josef.k/32/28675_2.png) [@reuven.josef.k](https://community.auth0.com/u/reuven.josef.k)\
**Post date:** [April 9, 2021, 9:19am UTC](https://community.auth0.com/t/global-configuration-in-rules-always-returns/52024/10 "2021-04-09T09:19:29Z")

</div>

Be sure to set your configuratin first,  
I made this mistake befor 😅

Follow these instructions:  
[https://auth0.com/docs/rules/configuration](https://auth0.com/docs/rules/configuration)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 9, 2021, 9:32am UTC](https://community.auth0.com/t/global-configuration-in-rules-always-returns/52024/11 "2021-04-09T09:32:54Z")

</div>

Thanks for sharing that with the rest of community!

---

<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:** [January 8, 2024, 8:28am UTC](https://community.auth0.com/t/global-configuration-in-rules-always-returns/52024/12 "2024-01-08T08:28:59Z")

</div>

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