Files
Alexander Zobnin d7a5f3ef80 Docs: SAML role and team sync (#23986)
* SAML: add docs for config options

* SAML: role and org mapping docs

* SAML: team sync docs

* Docs: add SAML to the team sync providers list

* Apply suggestions from code review

Co-Authored-By: Leonard Gram <leo@xlson.com>

* SAML: add `assertion_attribute_org` option to the org mapping example config

* SAML: write config sections as steb-by-step tasks

* SAML: docs tweaks

* SAML docs: minor style fixes

* SAML docs: update availability note

* Docs: add enterprise config page

* Docs: link saml options to the config page

* Apply suggestions from code review

Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>

* Docs: rename configuration to enterprise-configuration

* Docs: user's -> user

Co-authored-by: Leonard Gram <leo@xlson.com>
Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com>
2020-05-08 16:10:33 +03:00

2.6 KiB

+++ title = "Team sync" description = "Grafana Team Sync" keywords = ["grafana", "auth", "documentation"] aliases = ["/docs/grafana/latest/auth/saml/"] type = "docs" [menu.docs] name = "Team sync" parent = "enterprise" weight = 600 +++

Team sync

{{< docs-imagebox img="/img/docs/enterprise/team_members_ldap.png" class="docs-image--no-shadow docs-image--right" max-width= "600px" >}}

Team sync lets you set up synchronization between your auth providers teams and teams in Grafana. This enables LDAP, OAuth, or SAML users who are members of certain teams or groups to automatically be added or removed as members of certain teams in Grafana.

Only available in Grafana Enterprise.

Grafana keeps track of all synchronized users in teams, and you can see which users have been synchronized in the team members list, see LDAP label in screenshot. This mechanism allows Grafana to remove an existing synchronized user from a team when its group membership changes. This mechanism also enables you to manually add a user as member of a team, and it will not be removed when the user signs in. This gives you flexibility to combine LDAP group memberships and Grafana team memberships.

Currently the synchronization only happens when a user logs in, unless LDAP is used with the active background synchronization that was added in Grafana 6.3.

Synchronize a Grafana team with an external group

If you have already grouped some users into a team, then you can synchronize that team with an external group.

{{< docs-imagebox img="/img/docs/enterprise/team_add_external_group.png" class="docs-image--no-shadow docs-image--right" max-width= "600px" >}}

  1. In Grafana, navigate to Configuration > Teams.

  2. Select a team.

  3. On the External group sync tab, and click Add group.

  4. Insert the value of the group you want to sync with. This becomes the Grafana GroupID. Examples:

    • For LDAP, this is the LDAP distinguished name (DN) of LDAP group you want to synchronize with the team.
    • For Auth Proxy, this is the value we receive as part of the custom Groups header.
  5. Click Add group to save.

Supported providers

  • [Auth Proxy]({{< relref "../auth/auth-proxy.md#team-sync-enterprise-only">}})
  • [Azure AD]({{< relref "../auth/azuread.md#team-sync-enterprise-only" >}})
  • [GitHub OAuth]({{< relref "../auth/github.md#team-sync-enterprise-only" >}})
  • [GitLab OAuth]({{< relref "../auth/gitlab.md#team-sync-enterprise-only" >}})
  • [LDAP]({{< relref "enhanced_ldap.md#ldap-group-synchronization-for-teams" >}})
  • [SAML]({{< relref "saml.md#configure-team-sync" >}})