User Onboarding
How users join your company in Rahal
User Onboarding
Users can join your company through self-registration or admin creation. This page explains both flows in detail.
Self-Registration
The most common way users join is by signing up with their company email.
Prerequisites
For self-registration to work:
- Verified Domain — Your email domain (e.g.,
acme.com) must be in the company's verified domains - Active Company — The company must be active (not deactivated or deleted)
- Valid Email — The user's email must be at the verified domain
Email Signup Flow
-
User visits signup page
- Enters their company email (e.g.,
jane@acme.com) - Creates a password
- Provides their name
- Enters their company email (e.g.,
-
Domain matching
- Rahal extracts the domain (
acme.com) - Searches for a company with this verified domain
- If found, proceeds; if not, registration fails
- Rahal extracts the domain (
-
Account creation
- User record created with provided details
- CompanyUser membership created
- MEMBER role assigned by default
-
Activation
- If
allowAutoSignup: true: User is immediately active - If
allowAutoSignup: false: User is created as inactive
- If
-
Email verification
- Verification email sent
- User clicks link to confirm email
- Account marked as verified
OAuth Signup Flow
Users can also join via Google or Microsoft login:
-
User clicks OAuth button
- Google or Microsoft login flow
- Rahal receives verified email from provider
-
Domain matching
- Same as email signup
- Domain extracted and matched
-
Account creation
- User record created with OAuth details
- CompanyUser membership created
- Email automatically verified (OAuth provider verified it)
-
Activation
- Same auto-signup rules apply
OAuth signups skip email verification since the OAuth provider already verified the email address.
Admin-Created Users
Administrators can create users directly from the dashboard.
When to Use
- New employees who haven't self-registered
- Users who need immediate access
- Testing or demo accounts
- Users with non-standard email domains
Admin Creation Flow
-
Admin opens Create User form
- From Users page, click "Create User"
-
Admin enters user details
- Full name
- Email address
- Password
- Phone (optional)
- Company (required)
- Role (required)
- Status (Active/Inactive)
-
User created
- User record created with provided details
- CompanyUser membership created
- Email marked as verified (admin-created)
- Selected role assigned
-
User can login
- No email verification needed
- User logs in with provided credentials
Advantages of Admin Creation
| Aspect | Self-Registration | Admin-Created |
|---|---|---|
| Email verification | Required | Not required |
| Default role | MEMBER only | Any role |
| Initial status | Depends on auto-signup | Admin chooses |
| Domain requirement | Must match verified domain | Any email allowed |
Admin-created users can have any email domain, even ones not in verified domains. Use carefully.
Default Role Assignment
Self-Registered Users
All self-registered users receive the Member role:
- Basic booking permissions
- Manage own travelers
- Submit booking requests
To upgrade a self-registered user:
- Find them in the Users list
- Click Edit
- Select a different role
- Save changes
Admin-Created Users
Admins select the role during creation:
- Choose any active role
- Predefined or custom roles available
- Role takes effect immediately
Pending Users (Auto-Signup Disabled)
When auto-signup is disabled, self-registered users are created as inactive.
Identifying Pending Users
- Go to Users
- Filter by Status: Inactive
- Look for recently created users
Approving Pending Users
- Edit the inactive user
- Change Status to Active
- Optionally upgrade their role
- Save changes
The user can now log in.
Rejecting Pending Users
If a user should not have access:
- Leave them inactive, or
- Delete them from the system
Troubleshooting Onboarding
"No company found for this domain"
The email domain isn't associated with any company:
- Check the company's verified domains
- Add the domain if it should be included
- Verify spelling (exact match required)
User created but can't login
- Check if user is inactive (auto-signup disabled)
- Activate the user from the dashboard
- Verify email verification was completed (for email signup)
OAuth user can't access
- Same domain verification applies
- Check company is active
- Verify auto-signup setting
Wrong role assigned
For self-registered users:
- Edit the user
- Change to appropriate role
- Save changes