> 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/saml-user-rights-using-custom-attributes-advanced.md).

# SAML ユーザー権限: カスタム属性（高度）

> これらはユーザー権限を設定するための高度な方法です。使用をおすすめします [SAML アクセスプロファイル](/docs/docs-ja/hajimeni/automated-user-management/saml-login/saml-user-rights-access-profiles-recommended.md)
>
> [https://help.aikido.dev/doc/saml-user-rights-access-profiles-recommended/docVaVb0VPy1](/docs/docs-ja/hajimeni/automated-user-management/saml-login/saml-user-rights-access-profiles-recommended.md)

このガイドでは、SAML のカスタム属性を使用して Aikido 内でユーザー権限を設定および管理する方法を詳しく説明します。次のような属性を活用することで `aikido_role`, `aikido_data_edit_rights`, `aikido_can_ignore`, `aikido_can_snooze`, `aikido_can_change_severity`, `aikido_can_manage_teams`、そして `aikido_teams`、ID プロバイダー内からユーザーの権限と役割を制御できます。この方法により、ユーザーは ID プロバイダーで設定されたのと同じアクセス権を Aikido でも持つことができます。

* **aikido\_access\_profile:** [**詳細情報**](/docs/docs-ja/hajimeni/automated-user-management/saml-login/saml-user-rights-access-profiles-recommended.md)\
  SAML アクセスプロファイルを設定する際には、これを使用するクレームです。

  ```xml
  <saml:Attribute Name="aikido_access_profile">
      <saml:AttributeValue xsi:type="xs:anyType">マイアクセスプロファイル</saml:AttributeValue>
  </saml:Attribute>
  ```
* **aikido\_username:** Aikido でユーザー名を定義できます

  ```xml
  <saml:Attribute Name="aikido_username">
      <saml:AttributeValue xsi:type="xs:anyType">山田太郎</saml:AttributeValue>
  </saml:Attribute>
  ```
* **aikido\_role:** `admin`, `default`, `team_only`

  ```xml
  <saml:Attribute Name="aikido_role">
      <saml:AttributeValue xsi:type="xs:anyType">デフォルト</saml:AttributeValue>
  </saml:Attribute>
  ```
* **aikido\_data\_edit\_rights:** `標準`, `読み取り専用`

  ```xml
  <saml:Attribute Name="aikido_data_edit_rights">
      <saml:AttributeValue xsi:type="xs:anyType">標準</saml:AttributeValue>
  </saml:Attribute>
  ```
* **aikido\_can\_ignore:** `true`, `false`

  ```xml
  <saml:Attribute Name="aikido_can_ignore">
      <saml:AttributeValue xsi:type="xs:anyType">true</saml:AttributeValue>
  </saml:Attribute>
  ```
* **aikido\_can\_snooze:** `true`, `false`

  ```xml
  <saml:Attribute Name="aikido_can_snooze">
      <saml:AttributeValue xsi:type="xs:anyType">true</saml:AttributeValue>
  </saml:Attribute>
  ```
* **aikido\_can\_change\_severity:** `true`, `false`

  ```xml
  <saml:Attribute Name="aikido_can_change_severity">
      <saml:AttributeValue xsi:type="xs:anyType">true</saml:AttributeValue>
  </saml:Attribute>
  ```
* **aikido\_can\_manage\_teams:** `true`, `false`

  ```xml
  <saml:Attribute Name="aikido_can_manage_teams">
      <saml:AttributeValue xsi:type="xs:anyType">true</saml:AttributeValue>
  </saml:Attribute>
  ```
* **aikido\_can\_export\_data:** `true`, `false`

  ```xml
  <saml:Attribute Name="aikido_can_export_data">
      <saml:AttributeValue xsi:type="xs:anyType">true</saml:AttributeValue>
  </saml:Attribute>
  ```
* **aikido\_can\_manage\_clouds:** `true`, `false`

  ```xml
  <saml:Attribute Name="aikido_can_manage_clouds">
      <saml:AttributeValue xsi:type="xs:anyType">true</saml:AttributeValue>
  </saml:Attribute>
  ```
* **aikido\_can\_manage\_containers:** `true`, `false`

  ```xml
  <saml:Attribute Name="aikido_can_manage_containers">
      <saml:AttributeValue xsi:type="xs:anyType">true</saml:AttributeValue>
  </saml:Attribute>
  ```
* **aikido\_can\_manage\_domains:** `true`, `false`

  ```xml
  <saml:Attribute Name="aikido_can_manage_domains">
      <saml:AttributeValue xsi:type="xs:anyType">true</saml:AttributeValue>
  </saml:Attribute>
  ```
* **aikido\_can\_manage\_pentests:** `true`, `false`

  ```xml
  <saml:Attribute Name="aikido_can_manage_pentests">
      <saml:AttributeValue xsi:type="xs:anyType">true</saml:AttributeValue>
  </saml:Attribute>
  ```
* **aikido\_can\_manage\_code\_quality:** `true`, `false`

  <pre class="language-xml"><code class="lang-xml">&#x3C;saml:Attribute Name="aikido_can_manage_code_quality">
  <strong>    &#x3C;saml:AttributeValue xsi:type="xs:anyType">true&#x3C;/saml:AttributeValue>
  </strong>&#x3C;/saml:Attribute>
  </code></pre>
* **aikido\_can\_manage\_repos:** `true`, `false`

  <pre class="language-xml"><code class="lang-xml">&#x3C;saml:Attribute Name="aikido_can_manage_repos">
  <strong>    &#x3C;saml:AttributeValue xsi:type="xs:anyType">true&#x3C;/saml:AttributeValue>
  </strong>&#x3C;/saml:Attribute>
  </code></pre>
* **aikido\_teams:** ユーザーが所属するさまざまなチームをここで定義できます。チームが Aikido に存在しない場合は作成されます。ユーザーは指定されたこれらのチームに自動参加します。この設定を行うと、ユーザーは他のすべてのチームから削除されます。

  ```xml
  <saml:Attribute Name="aikido_teams">
      <saml:AttributeValue xsi:type="xs:anyType">team1</saml:AttributeValue>
      <saml:AttributeValue xsi:type="xs:anyType">team2</saml:AttributeValue>
  </saml:Attribute>
  ```
* **aikido\_workspace\_ids:** ユーザーが所属するさまざまな Aikido ワークスペースをここで定義できます。ユーザーは指定されたこれらのワークスペースに自動参加します。このフィールドを設定すると、ユーザーは他のすべてのワークスペースから削除されます。

  ```xml
  <saml:Attribute Name="aikido_workspace_ids">
      <saml:AttributeValue xsi:type="xs:anyType">1233</saml:AttributeValue>
      <saml:AttributeValue xsi:type="xs:anyType">2511</saml:AttributeValue>
  </saml:Attribute>
  ```
* **github\_samlidentity\_nameid:** （GitHub 固有）SAML ユーザーに基づくチームメンバーの同期は、ユーザーが SAML 経由で GitHub にもログインしている場合にのみ現在機能します。 `github_samlidentity_nameid` ユーザーのメールアドレスを含む SAML クレームを送信すると、チーム同期をトリガーした際に SAML のチームメンバーも同期されます。

  ```xml
  <saml:Attribute Name="github_samlidentity_nameid">
      <saml:AttributeValue xsi:type="xs:anyType">example@email.com</saml:AttributeValue>
  </saml:Attribute>
  ```
* **github\_user\_slug:** （GitHub 固有）SAML ユーザーに基づくチームメンバーの同期は、ユーザーが SAML 経由で GitHub にもログインしている場合にのみ現在機能します。 `github_user_slug` ユーザーの GitHub スラッグを含む SAML クレームで、チーム同期をトリガーすると SAML のチームメンバーも同期されます。

  ```xml
  <saml:Attribute Name="github_user_slug">
      <saml:AttributeValue xsi:type="xs:anyType"johndoe</saml:AttributeValue>
  </saml:Attribute>
  ```


---

# 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/saml-user-rights-using-custom-attributes-advanced.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.
