RahalCorporate
Roles & PermissionsAdmin Guide

Initializing Predefined Roles

Creating the default Member, Manager, and Admin roles for a company

Initializing Predefined Roles

Every company should have the three predefined roles (Member, Manager, Admin) to provide standard access levels. This guide explains how to initialize these roles.

When Roles Are Automatically Created

Predefined roles are typically created automatically when:

TriggerResult
Company creation via API with role initializationAll 3 predefined roles created
Company created through standard onboardingAll 3 predefined roles created

When Manual Initialization Is Needed

Manual initialization may be required when:

  • Company was created without role initialization
  • Roles were accidentally deleted from the database
  • Company was migrated from another system
  • Testing or development scenarios

Initializing Predefined Roles

Init predefined roles dialog

Go to Company Roles from the platform admin dashboard.

Click Init Predefined Roles

Click the Init Predefined Roles button in the top-right corner.

Select Company

In the dialog that appears, select the company that needs predefined roles:

  • Use the dropdown to find the company
  • If you have a company context set, it will be pre-selected

Create Roles

Click Create Roles to initialize all three predefined roles.

What Gets Created

The initialization creates these three roles:

Member Role

PropertyValue
NameMember
DescriptionBasic company member with personal booking capabilities
Permissions (6)Read/Write User Booking Requests, Read/Write Travelers, Read/Write User Passports

Manager Role

PropertyValue
NameManager
DescriptionCompany manager with team oversight and approval capabilities
Permissions (11)Access Dashboard, Read Companies, Read/Process Booking Requests, Read Users, Read/Write Travelers, plus all Member permissions

Admin Role

PropertyValue
NameAdmin
DescriptionCompany administrator with full access to company settings and user management
Permissions (27)All Manager permissions, plus full User/Role/Policy/Budget/Delegation management

Verifying Initialization

After initialization, verify the roles were created:

  1. Stay on the Company Roles page
  2. Filter by the target company (if needed)
  3. You should see three new roles with the "Predefined" badge:
    • MEMBER
    • MANAGER
    • ADMIN

Error Handling

"Predefined roles already exist for this company"

This error appears when the company already has predefined roles:

  • Cause: Roles were previously initialized
  • Solution: No action needed — roles are already present

This is a safety check preventing duplicate role creation. Each company can only have predefined roles initialized once.

"Company with ID not found"

This error appears when the selected company doesn't exist:

  • Cause: Company was deleted or ID is invalid
  • Solution: Verify the company exists and try again

Permission Denied

If you see a permission error:

  • Cause: Your admin role lacks required permissions
  • Solution: Ensure you have Write Company Roles permission

After Initialization

Next Steps

  1. Verify roles: Check that all three roles appear in the list
  2. Assign users: Assign roles to existing company users
  3. Create custom roles: If needed, create additional roles for specific needs

Customizing Role Names

You can customize the display names of predefined roles after creation:

  1. Click Edit on the predefined role
  2. Change the Name field (e.g., "Member" → "Standard User")
  3. Update the Description if desired
  4. Save changes

Only the display name and description can be changed. The code (MEMBER, MANAGER, ADMIN) and permissions are fixed.

Troubleshooting

Roles Not Appearing After Init

  1. Refresh the page
  2. Check the company filter — ensure correct company is selected
  3. Check the role type filter — ensure "Predefined" or "All" is selected

Wrong Company Selected

If you accidentally initialized roles for the wrong company:

  • The roles are now permanent (cannot be deleted)
  • This is generally harmless — predefined roles are useful for any company
  • No corrective action is needed

Missing Init Button

If the Init Predefined Roles button is missing:

  • Verify you have Write Company Roles permission
  • This feature is only available to platform admins
  • Company-scoped admins may not see this option

On this page