> ## Documentation Index
> Fetch the complete documentation index at: https://translations.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Auth0 Dashboard を使用してルールのグローバル変数を設定する方法について説明します。

# ルールのグローバル変数を設定する

<Warning>
  ルール と フック の提供終了 (EOL) 日は **2026 年 11 月 18 日**です。また、**2023 年 10 月 16 日**以降に作成された新しいテナントでは、これらはすでに利用できません。アクティブなフックを持つ既存のテナントは、提供終了までフック機能を引き続き利用できます。

  Auth0 を拡張するには、Actions の使用を強くお勧めします。Actions では、豊富な型情報、インラインドキュメント、公開 `npm` パッケージを利用できるほか、外部連携に接続して拡張機能の利用体験をさらに高められます。Actions でできることの詳細については、[Understand How Auth0 Actions Work](/docs/ja-jp/customize/actions/actions-overview) を参照してください。

  移行を支援するために、[ルール から Actions への移行](/docs/ja-jp/customize/actions/migrate/migrate-from-rules-to-actions) と [フックから Actions への移行](/docs/ja-jp/customize/actions/migrate/migrate-from-hooks-to-actions) のガイドを用意しています。また、機能比較、[Actions のデモ](https://www.youtube.com/watch?v=UesFSY1klrI)、および移行に役立つその他のリソースを紹介した専用の [Move to Actions](https://auth0.com/extensibility/movetoactions) ページもあります。

  ルール と フック の非推奨化について詳しくは、ブログ記事 [Preparing for Rules and Hooks End of Life](https://auth0.com/blog/preparing-for-rules-and-hooks-end-of-life/) をご覧ください。
</Warning>

Auth0 Dashboard を使用して、ルールのグローバル変数を設定できます。詳しくは、[Auth0 ルール](/docs/ja-jp/customize/rules) を参照してください。

1. [Auth0 Dashboard > Auth Pipeline > ルール](https://manage.auth0.com/#/rules) に移動し、**Settings** セクションを探します。

   <Frame>
     <img src="https://mintcdn.com/translations/pvjQqAy3EB2TK6NP/docs/images/cdy7uua7fh8z/4OiSXzc5fYgPagHdOGbfvj/a589bdf811df66658fe21c509aed610c/Dashboard_-_Auth_Pipeline_-_Rules.png?fit=max&auto=format&n=pvjQqAy3EB2TK6NP&q=85&s=fd0731ae46909908816273b82c2faa9e" alt="Dashboard - Auth Pipeline - Rules " width="1039" height="795" data-path="docs/images/cdy7uua7fh8z/4OiSXzc5fYgPagHdOGbfvj/a589bdf811df66658fe21c509aed610c/Dashboard_-_Auth_Pipeline_-_Rules.png" />
   </Frame>
2. 変数のキーと値のペアを入力し、**+ Add** を選択します。

   入力した値は、グローバルな `configuration` オブジェクトを通じてすべてのルールで利用できるようになり、**Code Snippet** 列の値を使って参照できます。

<div id="learn-more">
  ## 詳細はこちら
</div>

* [ルールを作成する](/docs/ja-jp/customize/rules/create-rules)
