# Roles after upgrading from 11

CrushFTP 11 had administrators of two kinds: full ones, and accounts with single admin flags such as "may edit users" or "may edit jobs". CrushMFT 27 has [roles](Security-Roles.md). This page says what happens to your administrators when you upgrade, and how to move them over.

## Nothing changes by itself

A server that is upgraded starts with every account working as before. The old flags are still read and still mean what they meant. No account is rewritten, and nobody loses or gains anything on the day of the upgrade.

The pages show such accounts as holding **legacy** flags.

## Why move at all

Three of the old "partial" administrators were full administrators by another name:

| Old flag | Why it was everything |
|---|---|
| edit users | could give any account the full admin flag, or point a user's folder at the server's own files |
| edit jobs | could build a job that runs a program on the server |
| edit preferences | could change how people sign in, and so sign in as anybody |

A server that hands these out to people it does not fully trust has more administrators than it thinks. Roles close these paths: the corresponding roles leave out what equals full control.

There is a second reason. The API treats accounts on legacy flags strictly: such an account is refused admin operations there until it is converted, or uses a token.

## The conversion

It is a tool you run, when you choose, account by account or for many at once: **Convert legacy admins** in [Access Roles](Prefs-Access.md#convert-legacy-admins).

For each account with flags it shows what the account has now, what it would become, and what the change would **take away**.

| In 11 | Becomes |
|---|---|
| full administrator (`CONNECT`) | the role Administrator. Nothing is taken away. |
| a limited admin of a group, with its list of allowed settings | User Manager, scoped to that group; each allowed setting becomes a permission for that setting |
| each other flag | the built-in roles it stands for: view users, run jobs, read logs and so on |

For three flags the conversion takes something away, and says what before anything is written:

- a converted **user editor** can no longer give admin rights or map a folder into the server's own files;
- a converted **job editor** can no longer build the tasks that equal full control, such as running a program;
- a converted **preferences editor** loses the sections that equal full control.

If one of these people really needs what is taken away, they need to be an Administrator, and now you know it.

The old flags of a converted account are kept beside it, as `rbac_site_before`, for a way back by hand.

## A plan

1. **Upgrade, and change nothing** for a few days.
2. **List the accounts with flags**: the conversion page does it.
3. **Start with the full administrators.** They lose nothing. Convert them and check that they can still do everything.
4. **Go through the others one by one.** Read "Takes away". Talk to the person. Convert, and let them work for a day.
5. **Look at the jobs**, below.
6. **When no account has flags left**, turn the old flags off for good with the server setting `rbac_legacy_flags`. From then on a flag that somebody writes into an account by hand does nothing.

## Jobs and events

Jobs are not converted. A job from 11 has no record of whose authority it runs with, and runs with full authority, as it always did, until somebody saves it under 27. From that save on it runs with an authority of its own, taken from what the person who saved it may do.

So after the conversion of the people, open the jobs that matter and save each as the person who should own it. A job that needs more than its owner may do will say so when it is saved, not at three in the morning.

Events of users that run jobs follow the same rule.

## Limited admins

The limited admins of 11, with **User can administer group named** and their list of permitted settings, keep working unconverted: see [Limited admins](Users-Admin-Limited.md). Converted, such an account is a User Manager whose "managed" users are the members of that group, and the pages it sees are the same.

## Other things that carry over

- **Where administrators may come from**, the list of addresses in [Banning](Prefs-Banning.md), holds for role holders as it did for flag holders.
- **Second factors, keys and passwords** of the accounts are untouched.
- **Who did what** is from now on in the access audit log as well as in the server log.
