# Add user from Enterprise Identity Provider

**URL:** <https://community.auth0.com/t/add-user-from-enterprise-identity-provider/41920>\
**Category:** Get Help\
**Created:** [April 28, 2020, 8:21am UTC](https://community.auth0.com/t/add-user-from-enterprise-identity-provider/41920 "2020-04-28T08:21:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![slicc](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/slicc/32/12715_2.png) [@slicc](https://community.auth0.com/u/slicc)\
**Post date:** [April 28, 2020, 8:21am UTC](https://community.auth0.com/t/add-user-from-enterprise-identity-provider/41920/1 "2020-04-28T08:21:59Z")

</div>

Can I add a user using the Auth0 Dashboard when the user belongs to an AAD Enterprise Connection? I’d like to pre-add the user so that I can set them up with relevant app\_metadata values.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 28, 2020, 8:54pm UTC](https://community.auth0.com/t/add-user-from-enterprise-identity-provider/41920/3 "2020-04-28T20:54:57Z")

</div>

Hi @slicc,

The create user feature only works for DB connections. You can add a rule that checks for the user and adds the metadata that way.

Hope this helps,  
Dan

---

<div class="post-metadata">

**Author:** ![slicc](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/slicc/32/12715_2.png) [@slicc](https://community.auth0.com/u/slicc)\
**Post date:** [April 29, 2020, 9:01am UTC](https://community.auth0.com/t/add-user-from-enterprise-identity-provider/41920/4 "2020-04-29T09:01:16Z")

</div>

The metadata is user specific, the rule isn’t going to know what metadata to add. I guess this means I’d need to create a rule that calls an API that we are hosting to get the relevant user specific data?

I don’t suppose there is a way to store the data within Auth0 somewhere and have the rule look up the values from there?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 29, 2020, 8:04pm UTC](https://community.auth0.com/t/add-user-from-enterprise-identity-provider/41920/5 "2020-04-29T20:04:03Z")

</div>

If you are only calling the API on first login that would not be a problem at all, this is fairly typical. Typically you wouldn’t want to make an external API call every authentication, it can make login feel slow, but it is certainly possible.

Here is an example rule showing how to add a role from an SQL server:

> **[Assign Roles to Users](https://auth0.com/docs/manage-users/access-control/configure-core-rbac/rbac-users/assign-roles-to-users)**
>
> Learn how to assign roles to a user using the Auth0 Dashboard or the Management API.

You could add it to the user’s metadata, then add it to the token in a seperate rule (you may need to add it manually the first time).

Does that make sense?

Hopefully this helps!

---

<div class="post-metadata">

**Author:** ![slicc](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/slicc/32/12715_2.png) [@slicc](https://community.auth0.com/u/slicc)\
**Post date:** [April 30, 2020, 7:33am UTC](https://community.auth0.com/t/add-user-from-enterprise-identity-provider/41920/6 "2020-04-30T07:33:57Z")

</div>

Yes that’s fine.

Thanks

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 30, 2020, 5:48pm UTC](https://community.auth0.com/t/add-user-from-enterprise-identity-provider/41920/7 "2020-04-30T17:48:14Z")

</div>

Thanks for following up! Let us know if you have any other questions.

---

<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:** [May 15, 2020, 5:59pm UTC](https://community.auth0.com/t/add-user-from-enterprise-identity-provider/41920/8 "2020-05-15T17:59:27Z")

</div>

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