Grafana LDAP integration with Orgs or Teams

I am wondering if its possible to configure LDAP groups with Orgs. or teams in Grafana so that as new users in those ldap groups login, they are attached to the right teams or orgs.

Thanks.

1 answer

  • answered 2018-03-14 17:56 Rebeca Maia

    As shown in the documentation, it can be done in the [[servers.group_mappings]] section, in the configuration file (/etc/grafana/ldap.toml). LDAP must be enabled in the main configuration file (/etc/grafana/grafana.ini)

    /etc/grafana/grafana.ini:

    [auth.ldap]
    enabled = true
    

    And /etc/grafana/ldap.toml:

    # Map ldap groups to grafana org roles
    [[servers.group_mappings]]
    group_dn = "LDAP group"
    org_role = "Grafana role"
    org_id = 1 #The number for the org I want these people to go to, for example, 1
    

    Main Org is 1 and you can see the number for other orgs under Grafanas' Menu > Admin > Global Orgs.