# Adding Users to an Application as part of API user creation

**URL:** <https://community.auth0.com/t/adding-users-to-an-application-as-part-of-api-user-creation/88351>\
**Category:** Get Help\
**Created:** [August 8, 2022, 3:40pm UTC](https://community.auth0.com/t/adding-users-to-an-application-as-part-of-api-user-creation/88351 "2022-08-08T15:40:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![efdp](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/efdp/32/33201_2.png) [@efdp](https://community.auth0.com/u/efdp)\
**Post date:** [August 8, 2022, 3:40pm UTC](https://community.auth0.com/t/adding-users-to-an-application-as-part-of-api-user-creation/88351/1 "2022-08-08T15:40:55Z")

</div>

Hi,

I am using universal login for users to login to my application but have an SPA signup page talking to my own API in order to create users.

Everything is working fine and users are being created using the management API from my API but having done that they are prompted to authorise the SPA Application when they first log in using Universal login.

How do I go about creating the user and it knowing which application they have been created “for”?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [August 10, 2022, 8:01pm UTC](https://community.auth0.com/t/adding-users-to-an-application-as-part-of-api-user-creation/88351/3 "2022-08-10T20:01:53Z")

</div>

Hi @efdp,

Welcome to the Auth0 Community!

I understand you would like to create users and add them to applications on creation.

> [@efdp](#):
>
> How do I go about creating the user and it knowing which application they have been created “for”?

First, let me clarify that the Connection name is a required field when creating users. Therefore, when creating users, you can determine which applications they belong by checking the Database Connections enabled for the applications.

I hope this answers your question.

Please reach out if you have any additional questions. I would be glad to help!

Thank you.

---

<div class="post-metadata">

**Author:** ![efdp](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/efdp/32/33201_2.png) [@efdp](https://community.auth0.com/u/efdp)\
**Post date:** [August 11, 2022, 10:55am UTC](https://community.auth0.com/t/adding-users-to-an-application-as-part-of-api-user-creation/88351/4 "2022-08-11T10:55:25Z")

</div>

Thanks @rueben.tiow,

I have double checked that and my application does have access to that the connection. The problem here is more UX than functionality. When I used to use universal login for both signup and login my users would simply sign up and login.

Now that I am using my own page and the management API to do signup the flow has changed. Users now signup, login and then get presented with another screen asking them to give permission to the uPredict application.

I would really like to get rid of this prompt for permission as from their perspective they just signed up to my website and now they are being asked to give it permission when they log in.

Cheers,

Eldon Ferran de Pol

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [August 15, 2022, 11:43pm UTC](https://community.auth0.com/t/adding-users-to-an-application-as-part-of-api-user-creation/88351/5 "2022-08-15T23:43:21Z")

</div>

Hi @efdp,

Thank you for your response.

> [@efdp](#):
>
> I would really like to get rid of this prompt for permission as from their perspective they just signed up to my website and now they are being asked to give it permission when they log in.

In this case, I recommend that you enable the **Allow Skipping User Consent** setting located in your API settings. Doing so should skip the user consent page whenever they sign up.

Please read this related [Community Topic](https://community.auth0.com/t/how-do-i-skip-the-consent-page-for-my-api-authorization-flow/6035/2) that goes into more details.

Let me know how this works for you.

Thank you.

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [August 16, 2022, 4:11pm UTC](https://community.auth0.com/t/adding-users-to-an-application-as-part-of-api-user-creation/88351/6 "2022-08-16T16:11:48Z")

</div>

Hi @efdp,

Allow me to add that as an alternative, you could also pass the **prompt=none** query parameter in your authentication request to skip the user consent.

For example:

```auto
GET https://YOUR_DOMAIN/authorize
    ?response_type=id_token token&
    client_id=...&
    redirect_uri=...&
    state=...&
    scope=openid...&
    nonce=...&
    audience=...&
    response_mode=...&
    prompt=none

```

> **[Configure Silent Authentication](https://auth0.com/docs/authenticate/login/configure-silent-authentication)**
>
> Learn how to keep users logged in to your application using silent authentication.

I hope this helps!

Thank you.

---

<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 21, 2022, 6:10pm UTC](https://community.auth0.com/t/adding-users-to-an-application-as-part-of-api-user-creation/88351/7 "2022-12-21T18:10:30Z")

</div>


