Create Rule to autogenerate an organization_id as app_metadata, or copy userid to organization_id upon user signup

Brand new here and creating my first app with Auth0 authentication.

Is there a way using rules to create a rule where when a new user signs up, either an organization_id field gets created and autoincremented as app_metadata for the user, or that their userid gets automatically copied into an organization_id field in their metadata?


Hi kylanchilders, and welcome to the Auth0 community! :tada:

Did you see these examples on how to update app_metadata or user_metadata from a rule?

Before you do that however, please also review these documents so you can make sure you store the information in the correct type of metadata: