# More precisions about why 2 extrat permissions are needed with Azure AD connection

**URL:** <https://community.auth0.com/t/more-precisions-about-why-2-extrat-permissions-are-needed-with-azure-ad-connection/73782>\
**Category:** Get Help\
**Tags:** azure-ad, azure, permissions\
**Created:** [November 25, 2021, 5:14pm UTC](https://community.auth0.com/t/more-precisions-about-why-2-extrat-permissions-are-needed-with-azure-ad-connection/73782 "2021-11-25T17:14:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![benoit.tigeot](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/benoit.tigeot/32/30945_2.png) [@benoit.tigeot](https://community.auth0.com/u/benoit.tigeot)\
**Post date:** [November 25, 2021, 5:14pm UTC](https://community.auth0.com/t/more-precisions-about-why-2-extrat-permissions-are-needed-with-azure-ad-connection/73782/1 "2021-11-25T17:14:12Z")

</div>

Hello

[On the documentation about Azure AD](https://auth0.com/docs/connections/enterprise/azure-active-directory/v2#add-permissions). There is a part about permissions. I would like to know when two “Permissions” are required?

After reading _[Microsoft Graph permissions reference](https://docs.microsoft.com/en-us/graph/permissions-reference)_ this is still no clear why those 2 permissions are required :

- `Directory.AccessAsUser.All` because documentation say `Directory.Read.All` already returns groups so why is it needed?
- `Directory.Read.All` as _Application Permission_. Is in case of calling Microsoft Graph API from Actions or Rules?

We implement Azure AD of other client and we have to justifiy about why we request this kind of permissions.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![benoit.tigeot](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/benoit.tigeot/32/30945_2.png) [@benoit.tigeot](https://community.auth0.com/u/benoit.tigeot)\
**Post date:** [November 26, 2021, 9:20am UTC](https://community.auth0.com/t/more-precisions-about-why-2-extrat-permissions-are-needed-with-azure-ad-connection/73782/2 "2021-11-26T09:20:11Z")

</div>

Ok.

After reading the Microsoft documentation. `Directory.Read.All` is not enough to get group. [`user` resource](https://docs.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0) do not include groups.

To get groups [you need other permissions](https://docs.microsoft.com/en-us/graph/api/group-get?view=graph-rest-1.0&tabs=http).  
For “Delegated”:

> GroupMember.Read.All, Group.Read.All, Directory.Read.All, Group.ReadWrite.All, Directory.ReadWrite.All, Directory.AccessAsUser.All

For “Application”:

> GroupMember.Read.All, Group.Read.All, Directory.Read.All, Group.ReadWrite.All, Directory.ReadWrite.All

Have a nice day.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 26, 2021, 4:37pm UTC](https://community.auth0.com/t/more-precisions-about-why-2-extrat-permissions-are-needed-with-azure-ad-connection/73782/3 "2021-11-26T16:37:38Z")

</div>

Thanks for sharing that with the rest of community!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 7, 2021, 2:24pm UTC](https://community.auth0.com/t/more-precisions-about-why-2-extrat-permissions-are-needed-with-azure-ad-connection/73782/4 "2021-12-07T14:24:41Z")

</div>


