# Authorization Extension group mapping not working

**URL:** <https://community.auth0.com/t/authorization-extension-group-mapping-not-working/6871>\
**Category:** Get Help\
**Tags:** authorization-extens\
**Created:** [June 2, 2017, 2:05am UTC](https://community.auth0.com/t/authorization-extension-group-mapping-not-working/6871 "2017-06-02T02:05:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilbertbgarza](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gilbertbgarza/32/3422_2.png) [@gilbertbgarza](https://community.auth0.com/u/gilbertbgarza)\
**Post date:** [June 2, 2017, 2:05am UTC](https://community.auth0.com/t/authorization-extension-group-mapping-not-working/6871/1 "2017-06-02T02:05:49Z")

</div>

Hi, I am trying to use the Authorization Extension. I have API access enabled and full read permissions set up for my Auth0 client, no problems there.

The problem is behavior. Group mappings do not seem to be working. Here is my setup:

- [group] SuperAdmins
- [group] Admins, with role R, and with a mapping set to include SuperAdmins
- [role] R, with permissions P1 and P2
- [permission] P1
- [permission] P2
- [user] Alice, who is a member of SuperAdmins

With this setup I expect Alice’s **calculated groups** to include both Admins and SuperAdmin. But the endpoint only returns the latter:

```
GET .../api/users/auth0|alice/groups/calculate
response body: {
  _id: '...',
  name: 'superadmins',
  description: 'Super Admins' } ]

```

The Admins group also does not show up in the Authorization Extension user interface. What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [June 2, 2017, 7:15pm UTC](https://community.auth0.com/t/authorization-extension-group-mapping-not-working/6871/2 "2017-06-02T19:15:37Z")

</div>

Group mappings are intended to automatically map group information coming from an external source/connection.

For example, if you have configured an Active Directory or Custom Database connection that returns as part of the user profile a `groups` property containing group information about the user at the connection source and you want to map those groups to groups managed by the Authorization extension then you should configure the mappings.

If you want to include groups within groups than you take a look at the _Nested Groups_ section instead of _Group Mappings_.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:54am UTC](https://community.auth0.com/t/authorization-extension-group-mapping-not-working/6871/3 "2018-03-02T05:54:19Z")

</div>


