# Sign in user after creation through the management API

**URL:** <https://community.auth0.com/t/sign-in-user-after-creation-through-the-management-api/98070>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [January 12, 2023, 3:53pm UTC](https://community.auth0.com/t/sign-in-user-after-creation-through-the-management-api/98070 "2023-01-12T15:53:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![steven.oeyen](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/steven.oeyen/32/33282_2.png) [@steven.oeyen](https://community.auth0.com/u/steven.oeyen)\
**Post date:** [January 12, 2023, 3:53pm UTC](https://community.auth0.com/t/sign-in-user-after-creation-through-the-management-api/98070/1 "2023-01-12T15:53:26Z")

</div>

In our Laravel application we’ve implemented a custom user registration flow that will create a database user (custom database). This is done by calling the management API users/create.  
Is it possible to automatically sign in the new user after creation, without having them to enter their credentials in the Auth0 login page?

---

<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:** [January 20, 2023, 8:54pm UTC](https://community.auth0.com/t/sign-in-user-after-creation-through-the-management-api/98070/3 "2023-01-20T20:54:01Z")

</div>

Hi @steven.oeyen,

It _may_ be possible, but can be quite complex.

After creation there is no token issued for the user. Typically, the token issued after login represents the user and provides them with their “session”. In some cases a cookie is also issued that persists the session.

In order to obtain the token without user interaction, you will need to have access to the user’s credentials, which you can exchange directly for the token via the [Resource Owner Password Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/resource-owner-password-flow). This flow is somewhat dubious because it requires you to handle the user’s password, although you may already be doing this.

If I could suggest a more elegant solution; I would have your user log in, then present a secondary signup form that collects the necessary info.

---

<div class="post-metadata">

**Author:** ![steven.oeyen](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/steven.oeyen/32/33282_2.png) [@steven.oeyen](https://community.auth0.com/u/steven.oeyen)\
**Post date:** [January 23, 2023, 12:58pm UTC](https://community.auth0.com/t/sign-in-user-after-creation-through-the-management-api/98070/4 "2023-01-23T12:58:54Z")

</div>

hi @dan.woda ,

thanks for the update. Your suggestion was indeed the approach I decided on.

This article was also useful.  
[Understand How Progressive Profiling Works (auth0.com)](https://auth0.com/docs/manage-users/user-accounts/user-profiles/progressive-profiling)

---

<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:** [February 6, 2023, 12:59pm UTC](https://community.auth0.com/t/sign-in-user-after-creation-through-the-management-api/98070/5 "2023-02-06T12:59:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [May 14, 2024, 2:03pm UTC](https://community.auth0.com/t/sign-in-user-after-creation-through-the-management-api/98070/6 "2024-05-14T14:03:06Z")

</div>

Hey team!

This topic seems related to our new EA feature, Forms for Actions, which rolled out of the beta stage on May 7th. Our Product team prepared the whole Documentation page with examples of Use cases. [Forms for Actions](https://auth0.com/docs/customize/forms). If you find yourself having questions regarding this new feature for the next two weeks, we are hosting an [Ask Me Anything session](https://community.auth0.com/t/auth0-community-ask-me-anything-customize-and-extend-ciam-with-new-forms-for-actions/133516). Our Product Expert will provide comprehensive written answers on May 21st from 8 AM to 10 AM PST.  
Find out more about [Forms for Actions](https://auth0.com/docs/customize/forms) and [learn more about AMA](https://community.auth0.com/t/auth0-community-ask-me-anything-customize-and-extend-ciam-with-new-forms-for-actions/133516).

Thanks!  
Dawid
