# Change someone's roles

Roles decide which portal a person lands in and what they can do there. You change them in two places — the Update Roles drawer on the Users list, or the Roles tab on a user's edit screen. Both write to the same place; only the Roles tab saves each change immediately.

Source: https://help.pigi.io/guides/company-setup/people/manage-user-roles

## Quick answers

**Where do I change someone's roles?**
Two places, both under **People → Users** at /school/admin/users. Either switch the list
to the table view and press **Update Roles** on their row, or open their record and use
the **Roles** tab. Only company admins can do this.

**Do role changes save immediately?**
On the **Roles** tab, yes — each tick writes straight away and you see "Roles updated".
In the **Update Roles** drawer you must press the submit button at the bottom before
anything is written; you then see "Roles updated successfully".

**Why doesn't the person see their new role?**
Their sidebar is built from the roles that were loaded when they signed in. Ask them to
sign out and back in. What they are allowed to do changes immediately — only the menu lags.

**How do I take away someone's access?**
Untick every role on the **Roles** tab. They can still sign in, but their sidebar is
empty and every portal bounces them back to the homepage with a message such as
"Admin access required".

**Can I make somebody a platform super admin from here?**
No. The Roles list only grants roles inside your company. The platform-wide super-admin
setting is separate and cannot be set by a company admin.

**Why is a role missing from the list?**
Roles can be restricted to certain company types. A role that does not apply to your
company type is filtered out of the **Update Roles** drawer. The **Roles** tab shows the
full system list.

## What this is

A role is a grant inside one company. The same person can be an admin at one school and
a TFI at another, and PiGi reads the roles for whichever company they are currently
acting as. Roles are additive: someone holding both Admin and TFI gets both portals and
a switcher between them.

Changing roles does not change anything else about the person. It does not create a pilot
record, a staff record or a student record — those are separate. Ticking **Instructor**
on a user who has no pilot record gives them the instructor portal but nothing to fly.
Use [Add an instructor](add-an-instructor.md) to set up a real instructor.

## Before you start

- You need the Admin role in the company whose roles you are changing.
- The person must already be a company user. See [Add a user](add-a-user.md).

## Steps — from the user's record (recommended)

1. Open **People → Users**.
2. Click the person's card or row.
3. Open the **Roles** tab. Each role is a row showing its name and a one-line
   description of what it grants.
4. Click a row to grant the role, click it again to remove it. The row locks while it
   saves and you see "Roles updated".

## Steps — from the list

1. Open **People → Users** and switch the view to the table (list) layout.
2. Press **Update Roles** on the person's row. A drawer opens headed
   **Update Roles - <their name>**.
3. Tick the roles they should have and untick the ones they should not.
4. Press the submit button at the foot of the drawer. You see "Roles updated successfully".

## Known limitations

- The **Remove** button beside **Update Roles** does not work — it always shows
  "Failed to remove user". Strip the person's roles instead.
- The **Update Roles** drawer applies additions and removals as separate calls. If one of
  them fails the drawer still reports success, so re-open the record and confirm the
  result on the **Roles** tab.
- A role change does not refresh the person's menu until their next sign-in.
- Granting the Instructor or TFI role does not create the pilot record those portals
  expect. Sections of the portal will be empty until one exists.

## Related

- [Understand the company roles](roles-explained.md)
- [Add a user to your company](add-a-user.md)
- [Add an instructor](add-an-instructor.md)
