# SAML-Benutzerrechte: Benutzerdefinierte Attribute (fortgeschritten)

> Dies ist die erweiterte Methode zur Einrichtung von Benutzerrechten. Wir empfehlen die Verwendung von [SAML Access Profiles](https://help.aikido.dev/docs/docs-de/getting-started/automated-user-management/saml-login/saml-user-rights-access-profiles-recommended.md)
>
> [https://help.aikido.dev/doc/saml-user-rights-access-profiles-recommended/docVaVb0VPy1](https://help.aikido.dev/docs/docs-de/getting-started/automated-user-management/saml-login/saml-user-rights-access-profiles-recommended.md)

Diese Anleitung bietet detaillierte Anweisungen, wie Sie Benutzerrechte in Aikido mithilfe benutzerdefinierter SAML-Attribute konfigurieren und verwalten. Mithilfe von Attributen wie `aikido_role`, `aikido_data_edit_rights`, `aikido_can_ignore`, `aikido_can_snooze`, `aikido_can_change_severity`, `aikido_can_manage_teams` und `aikido_teams` können Sie Benutzerberechtigungen und Rollen direkt in Ihrem Identity Provider steuern. Dieser Ansatz stellt sicher, dass Benutzer in Aikido denselben Zugriff haben, wie er in Ihrem Identity Provider eingerichtet ist.

- **aikido_access_profile:** [**Weitere Informationen**](https://help.aikido.dev/docs/docs-de/getting-started/automated-user-management/saml-login/saml-user-rights-access-profiles-recommended.md)
  Bei der Einrichtung von SAML Access Profiles ist dies der zu verwendende Claim.

  ```xml
  <saml:Attribute Name="aikido_access_profile">
      <saml:AttributeValue xsi:type="xs:anyType">My Access Profile</saml:AttributeValue>
  </saml:Attribute>
  ```

- **aikido_username:** Sie können den Namen des Benutzers in Aikido festlegen

  ```xml
  <saml:Attribute Name="aikido_username">
      <saml:AttributeValue xsi:type="xs:anyType">John Doe</saml:AttributeValue>
  </saml:Attribute>
  ```

- **aikido_role:** `admin`, `default`, `team_only`

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

- **aikido_data_edit_rights:** `standard`, `read_only`

  ```xml
  <saml:Attribute Name="aikido_data_edit_rights">
      <saml:AttributeValue xsi:type="xs:anyType">standard</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`

  ```
  <saml:Attribute Name="aikido_can_manage_code_quality">
      <saml:AttributeValue xsi:type="xs:anyType">true</saml:AttributeValue>
  </saml:Attribute>
  ```

- **aikido_can_manage_repos:** `true`, `false`

  ```
  <saml:Attribute Name="aikido_can_manage_repos">
      <saml:AttributeValue xsi:type="xs:anyType">true</saml:AttributeValue>
  </saml:Attribute>
  ```

- **aikido_teams:** Hier können Sie die verschiedenen Teams festlegen, denen der Benutzer angehört. Wenn die Team(s) in Aikido nicht existieren, werden sie erstellt. Der Benutzer tritt diesen angegebenen Teams automatisch bei. Wenn dies eingerichtet ist, wird der Benutzer aus allen anderen Teams entfernt.

  ```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:** Hier können Sie die verschiedenen Aikido-Workspaces festlegen, denen der Benutzer angehört. Der Benutzer tritt diesen angegebenen Workspaces automatisch bei. Wenn dieses Feld eingerichtet ist, wird der Benutzer aus allen anderen Workspaces entfernt.

  ```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.com) Die NameID, die GitHub für diesen Benutzer speichert, in der Regel seine E-Mail-Adresse. Aikido verwendet sie an zwei Stellen: für die GitHub-Team-Synchronisierung und um einen SAML-Benutzer mit dem GitHub-Konto zu verknüpfen, das einen Pull Request kommentiert, damit **Can ignore issues** greift. Die Team-Synchronisierung und diese Zuordnung funktionieren nur, wenn sich die Person auch bei GitHub mit SAML anmeldet. Sie muss sich nach dem Hinzufügen des Claims einmal mit SAML bei Aikido anmelden. Siehe [Wer ein Finding in einem Pull Request ignorieren kann](https://help.aikido.dev/docs/docs-de/pr-and-release-gating/aikido-ci-gating-functionality.md#who-can-ignore-a-finding-on-a-pull-request).

  ```xml
  <saml:Attribute Name="github_samlidentity_nameid">
      <saml:AttributeValue xsi:type="xs:anyType">example@email.com</saml:AttributeValue>
  </saml:Attribute>
  ```

- **github_user_slug:** (GitHub.com) Der GitHub-Benutzername, zum Beispiel `johndoe`. Aikido ordnet ihn dem Konto zu, das einen Pull-Request-Kommentar verfasst hat, und verwendet ihn für die GitHub-Team-Synchronisierung. Wenn sowohl dieser Claim als auch `github_samlidentity_nameid` gespeichert sind, verwendet Aikido zuerst `github_user_slug`. Die Person muss sich nach dem Hinzufügen des Claims einmal mit SAML bei Aikido anmelden.

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