> 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`.

   ![Aikido-SSO 用に Microsoft Azure で新しいアプリ ロール「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.
