Users Module
Invite users to the app viabase44.users.
Contents
Methods
| Method | Signature | Description |
|---|---|---|
inviteUser(user_email, role) | Promise<any> | Invite a user to the app |
Examples
Invite User
Invite Multiple Users
Roles
Therole parameter must be one of:
| Role | Description |
|---|---|
"user" | Standard user with default permissions |
"admin" | Administrator with elevated permissions |
"user" and "admin" are valid role values. An error will be thrown if you pass any other value.
Notes
- Email invitation: The invited user receives an email with a link to join the app
- Duplicate handling: Inviting an existing user will re-send the invitation
- Also available in auth:
base44.auth.inviteUser()provides the same functionality - Role validation: Only
"user"or"admin"are accepted

