What you configure
Each user type has:- A name (e.g. Admin, Customer, Vendor, Guest)
- A description explaining who this persona is and what they need from the app
- A list of use cases — the actions or workflows this persona performs
How user types feed code generation
User types influence:- Authentication and authorization — which login flows, MFA requirements, and role assignments end up in the code
- Role-based access control — which routes, features, and data each persona can reach
- Conditional UI — what each persona sees on shared screens (e.g. an Admin sees “Delete user” on the user list; a Customer doesn’t)
- Onboarding flows — different welcome experiences per persona
FAQ
How granular should I make user types?
How granular should I make user types?
Group together personas who do roughly the same thing. “Admin” and “Super Admin” are usually one user type with a permission flag rather than two separate types. Treat them as separate types only when their workflows diverge enough to need different navigation, different default screens, or different feature sets.
What's the difference between a user type and a use case?
What's the difference between a user type and a use case?
A user type is a persona — Admin, Customer, Vendor. A use case is something that persona does — “Approve a refund”, “Place an order”, “List a product”. Each use case attaches to one or more user types and informs which features that user type can access.
Can guests or unauthenticated users be a user type?
Can guests or unauthenticated users be a user type?
Yes. Add a “Guest” user type for visitors who don’t have an account. Use cases for Guest typically include browsing public content, signing up, and logging in. Archie generates the unauthenticated routes accordingly.
What if my app has 20+ roles?
What if my app has 20+ roles?
Archie supports as many user types as you need, but consider whether they really need separate types or whether they’re variations of a smaller set with different permission flags. Maintenance is much simpler with fewer types.