# Which concept should i choose to create a sign up page authO universal with different value for an user and a teacher?

**URL:** <https://community.auth0.com/t/which-concept-should-i-choose-to-create-a-sign-up-page-autho-universal-with-different-value-for-an-user-and-a-teacher/94823>\
**Category:** Get Help\
**Tags:** admin-management, dashboard\
**Created:** [November 21, 2022, 10:05am UTC](https://community.auth0.com/t/which-concept-should-i-choose-to-create-a-sign-up-page-autho-universal-with-different-value-for-an-user-and-a-teacher/94823 "2022-11-21T10:05:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neos](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/neos/32/34386_2.png) [@Neos](https://community.auth0.com/u/Neos)\
**Post date:** [November 21, 2022, 10:05am UTC](https://community.auth0.com/t/which-concept-should-i-choose-to-create-a-sign-up-page-autho-universal-with-different-value-for-an-user-and-a-teacher/94823/1 "2022-11-21T10:05:20Z")

</div>

Hello !

I read about role management acces, RPAC, regarding the rules also but i could not find which is matching the best solution for my problem.

I will described my problem with details.

What i want is two create two button on my application  
“Register as a user” and “Register as a teacher”.

My goal is :

1. When i click on my application “Register as a user”, i want to send a parameter to the universal sign up page of auth0 with a param example ?role=user. I will at the pre registration page retrieve somehow the value “user” and show “Sign up as a user” (not if this is possible ? )  
Then during the post registration sighn up, i will assign to this user a role “user”, that i created in auth0 dashboard.

2)When i click on my application “Register as a teacher”, i want to send a parameter to the universal sign up page of auth0 with a param example ?role=teacher. I will at the pre registration page retrieve somehow the value “teacher” and show “Sign up as a teacher”.  
Then during the post registration, i will assign to this user a role teacher, that i created in auth0 dashboard.

I read also other topics : [Question about registering users with different roles](https://community.auth0.com/t/question-about-registering-users-with-different-roles/30051) this is similair but it’s not completely what i want to do.

Is there any way to achieve this goal please with auth0 ?, i am looking now for a while for some time on different solutions, but i am a little bit confused if i am on the good track or not, or if have to create several tenants, applications ?  
Thanks for your help

---

<div class="post-metadata">

**Author:** ![Neos](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/neos/32/34386_2.png) [@Neos](https://community.auth0.com/u/Neos)\
**Post date:** [November 23, 2022, 4:27pm UTC](https://community.auth0.com/t/which-concept-should-i-choose-to-create-a-sign-up-page-autho-universal-with-different-value-for-an-user-and-a-teacher/94823/3 "2022-11-23T16:27:06Z")

</div>

Finally, i found a way to send parameters, i saw we can send parameters in the endpoint /authorize with the method loginwithRedirect().  
And you you can retrieve this parameter on the new universal login, not the classic.  
You have to go to authO dashboard \> branding \> universal login\> select new \> customize and then you can enable a toogle, where you can modify the javascript files.  
There you can retrieve the parameters.

But my problem was mainly solve, because my business logic was changed, and i don’t need no more to have two roles, but if i have to, i think i will have to choose between the rules or the post registration actions. I don’t know which is the best way the rules or the actions.

---

<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 23, 2022, 6:09pm UTC](https://community.auth0.com/t/which-concept-should-i-choose-to-create-a-sign-up-page-autho-universal-with-different-value-for-an-user-and-a-teacher/94823/4 "2022-11-23T18:09:49Z")

</div>

Thank you a lot for sharing it with the rest of community!

---

<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:** [December 7, 2022, 6:10pm UTC](https://community.auth0.com/t/which-concept-should-i-choose-to-create-a-sign-up-page-autho-universal-with-different-value-for-an-user-and-a-teacher/94823/5 "2022-12-07T18:10:16Z")

</div>

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