# User Permissions Switching After Logging in

**URL:** <https://community.grafana.com/t/user-permissions-switching-after-logging-in/53764>\
**Category:** Grafana\
**Tags:** ansible, grafana-roles, auth, backend-platform, provisioning\
**Created:** [September 24, 2021, 12:45pm UTC](https://community.grafana.com/t/user-permissions-switching-after-logging-in/53764 "2021-09-24T12:45:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spencerleith](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@spencerleith](https://community.grafana.com/u/spencerleith)\
**Post date:** [September 24, 2021, 12:45pm UTC](https://community.grafana.com/t/user-permissions-switching-after-logging-in/53764/1 "2021-09-24T12:45:19Z")

</div>

What Grafana version - 8.0.2

Trying to allow a group of users admin permissions through a distribution group

We have multiple groups set up which define different permissions. Through our ansible playgroups, we have the following to allow one group admin permissions.

group\_mappings:

```
                  - name: Main Org.

                    id: 1

                    groups:

                      - group_dn: "CN=linux_A,

                                  org_role: Admin

                      - group_dn: "CN=linux_B,

                                  org_role: Admin

                      - group_dn: "CN=linux_C

                                   org_role: Viewer

```

The user is a part of the linux\_B and linux\_C group and each time the user logs in their permissions default to Viewer

I expect the permissions of the user to be Admin

Any help on this would be greatly appreciated.

Regards  
Spencer

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [September 24, 2022, 12:46pm UTC](https://community.grafana.com/t/user-permissions-switching-after-logging-in/53764/2 "2022-09-24T12:46:17Z")

</div>

Closed on September 24, 2022, 12:46pm UTC

This topic was automatically closed after 365 days. New replies are no longer allowed.
