# Auth0 Actions Global Variables

**URL:** <https://community.auth0.com/t/auth0-actions-global-variables/112880>\
**Category:** Get Help\
**Tags:** auth0-deploy-cli, extensions\
**Created:** [August 4, 2023, 8:01am UTC](https://community.auth0.com/t/auth0-actions-global-variables/112880 "2023-08-04T08:01:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yashnitin.thakre](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yashnitin.thakre/32/49616_2.png) [@yashnitin.thakre](https://community.auth0.com/u/yashnitin.thakre)\
**Post date:** [August 4, 2023, 8:01am UTC](https://community.auth0.com/t/auth0-actions-global-variables/112880/1 "2023-08-04T08:01:59Z")

</div>

Hi all, I was trying to migrate Rules to Actions and I felt the need of having global variables for my actions. I realise from previous answers that we can use `action secrets` for this purpose. But as far as I know, secrets are local to a particular action script. Is there a way to have global secrets OR global variables that can be used across actions.

If there isn’t a mechanism like this, how do we tackle such instances when migrating from rules to actions.

---

<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:** [January 8, 2024, 11:48am UTC](https://community.auth0.com/t/auth0-actions-global-variables/112880/3 "2024-01-08T11:48:52Z")

</div>

Hey there!

As this topic is related to Actions and Rules & Hooks are being deprecated soon in favor of Actions, I’m excited to let you know about our next [Ask me Anything session in the Forum on Thursday, January 18 with the Rules, Hooks and Actions team](https://community.auth0.com/t/auth0-community-ask-me-anything-rules-hooks-and-why-actions-matter/124043) on Rules & Hooks and why Actions matter! Submit your questions in the thread above and our esteemed product experts will provide written answers on January 18. Find out more about Rules & Hooks and why Actions matter! Can’t wait to see you there!

[Learn more here!](https://community.auth0.com/t/auth0-community-ask-me-anything-rules-hooks-and-why-actions-matter/124043)

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [August 29, 2025, 5:54pm UTC](https://community.auth0.com/t/auth0-actions-global-variables/112880/5 "2025-08-29T17:54:14Z")

</div>

#### Hi everyone! 👋

**Actions Transaction Metadata** is now in **EA**. It lets you pass small key–value data **between multiple post-login Actions during a single authentication transaction.**

_How it works:_ set with `api.transaction.setMetadata([`key`], [`value`])`, then read via `event.transaction.metadata.key` later in the **same** login flow.

- You can read more about that feature from our docs → **Docs:** [auth0.com/docs/customize/actions/transaction-metadata](http://auth0.com/docs/customize/actions/transaction-metadata)

_ **NOTE:** _ _Transaction metadata is only available during the current authentication transaction and is not persisted beyond the completion of the authentication flow. This feature is only currently available on_ `post-login` _Actions._

Thanks!  
Dawid

---

<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:** [September 12, 2025, 5:55pm UTC](https://community.auth0.com/t/auth0-actions-global-variables/112880/6 "2025-09-12T17:55:09Z")

</div>

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