I want to to only allows signed in users to be able to add users. For example, in my application, There is a ‘add users’ tab which is only accessible when you are signed in. Is there a way to hide the Sign up option during login but not completely disable it from the auth0 dashboard
Welcome to the Auth0 Community!
Unfortunately, it is not possible to disable the Sign Up option conditionally on certain users on your Universal Login Page. There is only the option to enable or disable for all users.
In this case, you could use two separate databases to mimic this behavior. In the first database with users that can log in, you could disable sign-ups on the database connection so that there is no option to register a new user. Then whenever they log in, they can add a new user which creates them in the second database with sign-ups enabled.
To do so, there is the option to either call the Authentication API/dbconnections/signup` endpoint or the Management API Create a user endpoint to create these users.
Please let me know how this works for you.