# How do I configure Auth0 as a external identity provider for SharePoint online/Office 365

**URL:** <https://community.auth0.com/t/how-do-i-configure-auth0-as-a-external-identity-provider-for-sharepoint-online-office-365/60935>\
**Category:** Get Help\
**Tags:** sharepoint, office365\
**Created:** [April 12, 2021, 6:25am UTC](https://community.auth0.com/t/how-do-i-configure-auth0-as-a-external-identity-provider-for-sharepoint-online-office-365/60935 "2021-04-12T06:25:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![saravananl](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saravananl/32/12846_2.png) [@saravananl](https://community.auth0.com/u/saravananl)\
**Post date:** [April 12, 2021, 6:25am UTC](https://community.auth0.com/t/how-do-i-configure-auth0-as-a-external-identity-provider-for-sharepoint-online-office-365/60935/1 "2021-04-12T06:25:25Z")

</div>

hi,

how do I configure Auth0 as a external identity provider for SharePoint online/Office 365 . we plan to host a extranet and I came across a article where you could configure Auth0 as a IDP and use it . I this possible ?

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [April 12, 2021, 12:57pm UTC](https://community.auth0.com/t/how-do-i-configure-auth0-as-a-external-identity-provider-for-sharepoint-online-office-365/60935/3 "2021-04-12T12:57:36Z")

</div>

Hi @saravananl,

Does this look like the info you are looking for?:

[https://auth0.com/docs/integrations/office-365-custom-provisioning](https://auth0.com/docs/integrations/office-365-custom-provisioning)

---

<div class="post-metadata">

**Author:** ![saravananl](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saravananl/32/12846_2.png) [@saravananl](https://community.auth0.com/u/saravananl)\
**Post date:** [April 12, 2021, 1:08pm UTC](https://community.auth0.com/t/how-do-i-configure-auth0-as-a-external-identity-provider-for-sharepoint-online-office-365/60935/4 "2021-04-12T13:08:00Z")

</div>

Thanks. Looks close , but one question. should the user exists in Azure AD or just in Auth0 ?

---

<div class="post-metadata">

**Author:** ![saravananl](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saravananl/32/12846_2.png) [@saravananl](https://community.auth0.com/u/saravananl)\
**Post date:** [April 12, 2021, 1:11pm UTC](https://community.auth0.com/t/how-do-i-configure-auth0-as-a-external-identity-provider-for-sharepoint-online-office-365/60935/5 "2021-04-12T13:11:59Z")

</div>

Let me add some more information 0 We are trying to get external users access SharePoint online and we want the external users to be managed in Auth0 , not necessarily in AD .

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [April 12, 2021, 1:14pm UTC](https://community.auth0.com/t/how-do-i-configure-auth0-as-a-external-identity-provider-for-sharepoint-online-office-365/60935/6 "2021-04-12T13:14:13Z")

</div>

In the guide, users may or may not exist in Azure AD before they log in for the first time, but [using a rule](https://auth0.com/docs/integrations/office-365-custom-provisioning?_ga=2.221455896.1847387816.1618225160-1595415333.1607347674#create-the-azure-ad-provisioning-rule), a user will be created in Azure AD once they have logged in. I believe in order to allow them access to SharePoint, a user will need to be created in Azure AD at some point. You can, however, control access through Auth0 by adding additional rules: [https://auth0.com/docs/authorization/rules-for-authorization-policies](https://auth0.com/docs/authorization/rules-for-authorization-policies)

---

<div class="post-metadata">

**Author:** ![saravananl](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saravananl/32/12846_2.png) [@saravananl](https://community.auth0.com/u/saravananl)\
**Post date:** [April 12, 2021, 1:39pm UTC](https://community.auth0.com/t/how-do-i-configure-auth0-as-a-external-identity-provider-for-sharepoint-online-office-365/60935/7 "2021-04-12T13:39:53Z")

</div>

Thanks. To access SharePoint in Office 365 there needs to be license assigned to user when they are created, how is this done through Auth0 ? reason I am asking is , we need this to be a smooth login experience. creating a user is the first step but we should also add the license in order to ensure the user can access the app right ?

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [April 12, 2021, 1:48pm UTC](https://community.auth0.com/t/how-do-i-configure-auth0-as-a-external-identity-provider-for-sharepoint-online-office-365/60935/8 "2021-04-12T13:48:51Z")

</div>

That makes sense! When the user logs in via your Auth0 tenant, a [rule](https://auth0.com/docs/rules) will run behind the scenes. Rules are sandboxed javascript functions that execute after authentication.

Within the rule, a user will be created in Azure AD and a license will be assigned to them. The user will not be aware of this process. The first log-in will take a little longer than subsequent log-ins because of the provisioning process, but otherwise, there should be no difference for the user.

A sample Azure AD provisioning rule is provided in the guide: [https://auth0.com/docs/integrations/office-365-custom-provisioning?&\_ga=2.159083834.1847387816.1618225160-1595415333.1607347674#create-the-azure-ad-provisioning-rule](https://auth0.com/docs/integrations/office-365-custom-provisioning?&_ga=2.159083834.1847387816.1618225160-1595415333.1607347674#create-the-azure-ad-provisioning-rule)

---

<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:** [April 27, 2021, 1:49pm UTC](https://community.auth0.com/t/how-do-i-configure-auth0-as-a-external-identity-provider-for-sharepoint-online-office-365/60935/9 "2021-04-27T13:49:37Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
