> For the complete documentation index, see [llms.txt](https://help.aikido.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.aikido.dev/docs/docs-ja/hajimeni/automated-user-management/saml-login/microsoft-azure-custom-attributes-with-saml-entra-id.md).

# Microsoft Azure: SAML / Entra ID によるカスタム属性

まず、次のガイドを使用して SAML ログインが動作していることを確認してください:

[https://help.aikido.dev/doc/microsoft-azure-login-with-saml--entra-id/doc74BfKR60Z](/docs/docs-ja/hajimeni/automated-user-management/saml-login/microsoft-azure-login-with-saml-entra-id.md)

### Azure のグループベース SAML カスタム属性の設定 <a href="#setting-up-azure-group-based-saml-custom-attributes" id="setting-up-azure-group-based-saml-custom-attributes"></a>

1. アプリケーション登録に移動します

   ![Aikido-SSO エンタープライズ アプリケーションのプロパティと設定を管理するための Azure ポータル画面。](/files/9105d339a36385d9468383d0c12b65b1fbb78e77)
2. アプリ ロールを作成します。**値** ここにはクレームの値を入れます。この例では、次の設定を行っています `aikido_role`、そのため有効な値は次のとおりです `admin`, `デフォルト`, `team_only`.

   ![Microsoft Azure で Aikido-SSO 用の新しいアプリ ロール「Aikido Admin」を作成しています。](/files/10dca52444602b81fc89c1fa8492100641b6ccbb)
3. 保存したら、アプリの設定に戻り、「ユーザーとグループ」にグループを追加します

   ![Azure ポータル: Aikido-SSO エンタープライズ アプリケーションにユーザーまたはグループを割り当てます。](/files/9db727a2551a3d6a0b24b45b8b714cc7187b4205)
4. 管理アクセスを付与したい Entra グループを追加し（この場合）、ステップ 2 で作成したロールを追加します。

   ![Azure の割り当ての追加: ディレクトリ権限の対象となるユーザー、グループ、ロールを選択します。](/files/fa0d562e12daaa425145f5b4fdee26ed1f760660)
5. アプリのシングル サインオン設定に戻り、「属性とクレーム」→「編集」に進みます

   ![Aikido-SSO アプリケーションの Azure ポータル SAML ベースのシングル サインオン設定。](/files/a3f4f95e9ce61ef0b9aeff1a8e68781766e2600b)
6. 「新しいクレームの追加」をクリックします

   ![SAML クレームを追加および管理するための Azure ポータルの「属性とクレーム」ページ。](/files/985714fd35564d9ce80f9598f41f5cc80a4e40c0)
7. 属性名を入力し、ソース属性として user.assignedroles を指定します。（これは `admin` ステップ 2 で設定した値です）

   ![Azure のクレーム設定: 「aikido\_role」を「user.assignedroles」属性にマッピングします。](/files/98dffc56c1627e1eb700ea5dd9acc744fccf51fb)
8. これで完了です。SAML ログイン時に、これらの変更が反映されます。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.aikido.dev/docs/docs-ja/hajimeni/automated-user-management/saml-login/microsoft-azure-custom-attributes-with-saml-entra-id.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
