Support for Multi-Tenancy Registration with Organization Assignment #6211
              
  
  Closed
              
          
                  
                    
                      adnan425
                    
                  
                
                  started this conversation in
                Feature Requests
              
            Replies: 1 comment
-
| Please see #3829 thanks! | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
I'm currently building a multi-tenant app using Clerk + Next.js, where each organization has its own custom domain and isolated registration flow.
One challenge I faced is that Clerk's prebuilt components (like ) do not provide a way to pass the orgId or automatically assign users to a specific organization during registration. As a workaround, I had to build a custom sign-up flow using Clerk hooks (useSignUp) to manually attach orgId via publicMetadata, and then use a webhook (user.created) to programmatically add the user to the correct organization.
It would be incredibly helpful if Clerk provided a mechanism to:
This would streamline multi-tenant setups significantly and reduce the need for custom auth flows.
Thanks for the great tool, hoping to see better multi-tenancy support in the future!
Beta Was this translation helpful? Give feedback.
All reactions