Staff sign in to the Studio, Business Made and the mobile app as users (user records). Customers who sign in to the website are a different record, and this page is not for them: see The customer account portal. An AI employee gets its own user through Set up an AI employee for a role, not through an invitation.
What a person may do comes from their roles. A role holds three things: what they may do to records (read, create, update, delete, review, approve), what they may do with page components, and which screens they see in each app. A person gets roles two ways:
- Through a group (
usergroup), the usual way. Each group grants one or more roles, and the person's record lists the groups they are in. - Directly, as roles on their own record.
Everything they hold through both is added together. The full rules, with every built-in role and how menus combine, are in Identity and access and Configuration. This page is the job: from "invite Maria as our front-desk manager" to Maria signed in with the right access.
Ask first
- Who: their first name, last name and email address. Never guess an address.
- What should they be able to do? Name the job ("runs the front desk", "does the books"), then match it to a group in step 2. If nothing fits, a new role and group (steps 1–2).
- Is there already a group for this job? List the business's groups first. Don't make a second "Sales" group.
- A personal note for the invitation email, if they want one.
- Is the person signed in as an administrator? Inviting, resending and changing someone's groups or roles need the ConfigAdmin role. The Owner role on its own is not enough (appengine
users/users.controller.ts690–730, 784–822). If the person doesn't hold it, say so and stop.
Steps
1. Roles & Permissions: a role (only if no built-in role fits)
Most businesses never need this. Look at the built-in roles first:
| Role | For | Screens it sees by default |
|---|---|---|
User | everyday staff | the everyday screens |
Publisher, Reviewer | people who publish, or who review and approve | maker screens |
PowerUser, ContentAdmin | managers | manager screens |
ConfigAdmin | people who run the setup: users, roles, integrations | admin screens |
Owner | the owner | everything |
ContentAdmin and ConfigAdmin are administrator roles. Don't hand them out for convenience.
When the job needs something narrower ("sees CRM only, can't delete anything"), make a role. It is a userrole record. Create it with call_appengine PUT /repository/create (the request the Role screen sends):
{
"datatype": "userrole",
"isNew": true,
"data": {
"name": "front-desk",
"description": "Front desk staff: bookings and customers, no deletes",
"permissions": {
"content": ["read", "create", "update"],
"component": ["view"],
"menuInclude": ["/crm", "/reservation"],
"menuExclude": []
}
}
}| Field | What goes in |
|---|---|
name | Letters, numbers, hyphens and underscores only. It can't be changed later: groups and people refer to the role by this name. |
description | Who it is for. Shown wherever the role is picked. |
permissions.content | Any of read, create, update, delete, review, approve. |
permissions.component | Any of view, add, remove, configure. |
permissions.menuInclude | The screens they may open (Studio paths). Empty means no restriction in that app. |
permissions.menuExclude | ["all"] with nothing included means no access to that app, and it wins over any other role the person holds. |
Without "isNew": true the create is refused with 400 record is not marked as new.
On screen: Configuration › Roles & Permissions (/role-permission). Menu access has one tab per app: Appmint, Business Made and Mobile app. Editing a built-in role saves the business's own copy of it, and that copy wins over the built-in from then on.
Hands on: the role's name.
Check: open it at /role-permission?openId=<role id>. Its ticks match what was asked.
Stop: changing a role that people already hold changes their access at once. Say who holds it and what changes, and wait for yes.
2. Users & Groups: the group that grants the role
A group is a usergroup record: name, description, roles (role names) and, optionally, a passwordPolicy. Every business also has one built-in group per built-in role (User, Owner, ConfigAdmin…), so "make them a ContentAdmin" is the ContentAdmin group and needs no new one.
For a new role, make its group with call_appengine PUT /repository/create:
{ "datatype": "usergroup", "isNew": true, "data": { "name": "Front desk", "description": "Front desk team", "roles": ["front-desk"] } }On screen: Users & Groups (/user-group) › Groups › Create User Group: name, description, password policy, the roles it grants, its members.
Who is in a group is stored on each person, as group names in their record's data.groups. The group record doesn't hold its members.
Hands on: the group's id (sk). The invitation can name the group by id or by name.
Check: /user-group?view=groups&group=<group id> shows the group with its roles ticked.
3. Users & Groups: the invitation
Stop: this emails the person. Show their name, the address, the group and so what they will be able to do, and any note, and wait for yes.
Real action: call_appengine POST /profile/user/invite/send:
{
"email": "[email protected]",
"firstName": "Maria",
"lastName": "Lopez",
"groups": ["<group id or name>"],
"message": "Welcome aboard! This gets you into our booking screens."
}| Field | What it does |
|---|---|
email | Required. Who is invited. |
firstName, lastName | Shown on their sign-up form. They can change them there. |
groups | Groups they join when they accept, by id or name. This is the usual way to give access. |
roles | Roles given to them directly, by name. Use a group instead unless asked. |
message | A personal note for the email. |
expiresIn | Hours the link works. Default 72. |
employeeId | The HR record's employee id, when the invitation is for someone already in HR. Their login is linked to it when they accept. |
What happens (tested on a local engine):
- A
user_invitationrecord is saved withstatus: "pending", the inviter, the groups and roles, and anexpiryDate72 hours away. - The person gets "You are invited to join
" (templateuser-invitation), naming who invited them, with a link to the Studio's invite page (/invite/complete?org=<org>&token=<token>) and the date it expires. - Root groups and roles can't be given: the request is refused with 403 (
users/root-access.ts).
On screen: Users & Groups › Invitations › Invite. The form has first and last name (both required), email, Assign to Groups and a personal message.
The "Send welcome email" box doesn't stop the email. The Invite form's Send welcome email with login instructions tick is sent along, but the server never reads it (users/users.service.ts 131–262). Every invitation is emailed. Never untick it to "add someone quietly".
A group name is not checked until the person accepts. An invitation naming a group that doesn't exist is saved and emailed without complaint. When the person then sets their password they get 404 group not found, and no login is made (tested). Hand on the id from step 2, or a name you have just read back.
Hands on: the invitation's id (sk).
Check: Invitations tab, Pending: the person is listed with their group. Or repo_find on user_invitation with { "data.email": "<email>" }: data.status is pending.
When the invitation goes wrong
| What happened | What to do |
|---|---|
| "They never got it." | Resend: call_appengine POST /profile/user/invite/resend/<invitation id>. It sends the same link again and gives it 72 more hours, so a copy already in their inbox keeps working. It works on an expired invitation too. Stop first: it emails them. |
| Invite sent again to someone who still has a pending invitation | Not refused. The same invitation is updated: the new groups and roles are added to the old ones, and a new link is made. The link in the first email stops working (tested). Prefer Resend. |
| The link says it has expired | Resend it (above). |
| "This invitation has already been used" | They accepted. They sign in with that email. |
| "This invitation link is not valid" | It was cancelled, or the link is mistyped. Send a new invitation. |
| 400 A user with this email already exists in the organization | They already have a login. Change their groups instead (step 5). |
| 409 This invitation grants the role '…', which no longer exists | A role named directly on the invitation was deleted. Cancel it and invite again. |
| Cancel it | Invitations › the row's menu › Cancel Invitation. This deletes the invitation record, so the link answers not valid from then on. Through the API: DELETE /repository/delete/user_invitation/<id>. |
| Copy the link to send another way | The row's menu › Copy Link. Anyone holding the link can accept, so give it only to that person. |
4. They accept
The person opens the link, sees the business's name, checks their name and chooses a password. That password must be at least 8 characters and pass the password policy that will govern them (their group's, or the business's). Then their login is made:
data.groupsis the invitation's groups, by name. With neither groups nor roles, they go in theUsergroup.- With a group named, they get only that group.
Useris not added as well (tested: an invitation with one custom group gave a login with that group alone). If the job also needs the everyday screens, put them inUsertoo, or make the group grantUser. data.rolesis the invitation's direct roles.- The invitation becomes
status: "completed"withcompletedAtand the newuserId. - An
employeeIdon the invitation, or a single HR employee with the same email, is linked to the login.
Hands on: the user's id.
Check: Users & Groups › Users lists them. Their profile (/user-group?openId=<user id>) shows the group, and the role through it. The Invitations tab shows the invitation under Accepted.
5. Change their access later (when asked)
Use these endpoints, not a raw write to the user record. Each checks what may be granted and records the change.
| Change | Real action |
|---|---|
| Add to a group | POST /profile/user/group/add { "email": "<email>", "groups": ["<group id or name>"] } |
| Take out of a group | POST /profile/user/group/remove { "email": "<email>", "groups": ["<group name>"] } |
| Give a role directly | POST /profile/user/role/add { "email": "<email>", "roles": ["<role name>"] }. An unknown role is refused with 404 role not found. |
| Take a direct role away | POST /profile/user/role/remove { "email": "<email>", "roles": ["<role name>"] } |
| Lock or unlock their sign-in | POST /profile/user/lockout { "userId": "<id>", "locked": true }. Owner only. You can't lock yourself, an Owner or a system account. |
| Remove their login | DELETE /profile/user/delete/<email>?reason=…. They are emailed that their account was removed. The login goes to Trash and can be restored: see Restore from Trash and see who changed what. |
- Every group or role change emails the person "Your access changed" (template
access-changed), listing what was added and removed, and puts a notice in their tray. Stop before each one: say what changes and that they will be told. - When it takes effect. The server reads the person's current roles and groups on every request, so a change counts from their next action. The menus they see come with their sign-in, so the sidebar changes when they next sign in or their session refreshes.
- To take someone's access away fully, lock them or remove them. Taking them out of every group leaves them a login with no role.
Check: their profile shows the new groups and roles.
When it's done
Tell the person:
- who was invited, at which address, into which group, and what that group lets them do;
- that the link works for 72 hours, until the date in the email, and how to resend it;
- any role or group you made, and where to change it later.
Open Users & Groups › Invitations so they can see it pending.
What it can't do yet
- No invitation without an email. The Invite form's "Send welcome email" tick does nothing (step 3).
- Groups aren't checked when the invitation is sent. A wrong group strands the person at the last step with group not found (step 3).
- No role picker on the Invite form. It gives groups only. A direct role goes through the API (
roles) or is added after they accept. - Inviting needs ConfigAdmin. An Owner without the ConfigAdmin role is refused.
- Sending a second invitation replaces the link. Only Resend keeps the link they already have.
Don'ts
- Don't invite anyone without a yes, and don't guess an address.
- Don't give
ConfigAdmin,ContentAdminorOwnerunless the person asked for that exact access. - Don't change a person's groups or roles with a raw write to their
userrecord (repo_update). Use the endpoints in step 5. - Don't send the invitation link through another channel unless asked. Whoever has it can accept it.
- Don't make a new group or role when one already does the job.
- Don't use this for customers or AI employees. Each has its own page.