If you're looking for a user management platform with custom roles and permissions for B2B SaaS apps, Clerk is a great option. It's a full-stack solution that includes embeddable UI components, flexible APIs and detailed admin dashboards. Clerk supports multifactor authentication, advanced security and customizable roles and permissions, so it's a good option for B2B apps. It also offers a free plan for up to 10,000 monthly active users and 100 monthly active orgs, with more features available in Pro and Enterprise plans.
Another option is PropelAuth, which is designed to handle multi-tenancy and offers custom roles and permissions with RBAC. PropelAuth supports many sign-in options, including passwordless magic links and SSO, and offers advanced security options like custom session lengths and MFA enforcement. It's good for companies large and small, and has transparent pricing with free and paid tiers for different needs.
Auth0 is another good option, with secure access control and customizable permissions. It has more than 30 SDKs and Quickstarts, so it's adaptable to many programming languages and frameworks. Auth0 has a lot of features, including Universal Login, Multi-Factor Authentication and customizable actions, so it's good for startups and large enterprises. You can try it for free before committing to a paid plan.