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?

Thanks!

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? Manage Metadata with Rules

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: Understand How Metadata Works in User Profiles

1 Like

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