Authentication setup
To model organizations as Privy users, you must configure your authentication service to issue JWTs to individuals that contain:- Organization ID claim: an ID for the organization they belong to
- Individual ID claim: a unique ID for the individual
- User ID claim: set this field to the organization ID claim on your JWTs
- Sub-user ID claim: set this field to the unique individual ID claim on your JWTs
Organization user
When modeling organizations as users, all organizations should have a unique organization ID. To create the organization user, simply create a Privy user with alinked_accounts array that contains a single entry: an account of type: 'custom_auth' with custom_user_id set to the organization ID.
This creates a Privy user representing the organization, that can be accessed by multiple individuals with JWTs containing the organization ID.

