↑↓ to navigate ↵ to open Esc to close Search by Algolia

You are reading the documentation of FileRun 2026.4.0, which is not released yet. It is subject to change, so do not use it for planning. Go to the documentation of FileRun 2026.3.0

Roles

A role is a set of permissions that applies to every user account that has the role. This page describes the list of roles, how to add, change and delete a role, the Guest role, the roles of administrators, and the Assign role tool.

What a role is

A role holds the permissions of an account. An account that has a role takes all the permissions of the role. A change of the role applies at once to every account that has the role.

  • An account has one role or no role.
  • While an account has a role, its individual permissions cannot be set. In the user window, the permission tabs are disabled. For an account with the role Editors, they show "The permissions are defined by the "Editors" role.".
  • An account without a role has its own individual permissions.
  • A role does not hold the name, the e-mail address, the password or the groups of an account.
  • The superuser account and the visitor account cannot have a role.

The permissions are described in User permissions.

Who can manage roles

  • The superuser can manage every role.
  • An independent administrator can manage only the roles that this administrator created.
  • A regular administrator who has the permission User can manage roles. can manage every role, except the role of their own account.

The Roles section is hidden from the other administrators. See Administrator permissions.

The list of roles

The roles are in the control panel, under Users → Roles. The list has these columns:

  • Name
  • Created by: the independent administrator who created the role. Only the superuser sees this column. The column is shown only when the page lists a role that an independent administrator created.
  • Users: the number of accounts that have the role
  • Home folder template: the Path template of the role. The independent administrators do not see this column.
  • Description
  • ID

The search box finds a text in the name, in the description or in the home folder template of a role.

To open a role, double-click it, or select it and click Edit. To see the accounts that have a role, select the role and click List users. The list Users → All users then shows only these accounts.

Adding a role

  1. In the control panel, open Users → Roles.
  2. Click Add new. The tab Add role opens. It has two tabs: Basic info and Permissions.
  3. In the Basic info tab, type the Role name. This field is required.
  4. Optionally, type a Description.
  5. In the Permissions tab, set the permissions. The new role starts with the default permissions of a new account.
  6. Click Add role.

The tab closes, and the list shows the new role.

A role that the superuser or a regular administrator creates belongs to nobody. Its name must be different from the names of the other roles that belong to nobody. A role that an independent administrator creates belongs to that administrator. Its name must be different from the names of the other roles of that administrator. A name that is already used is refused with "Role name already used. Please choose another one.".

The fields of the role window

The Basic info tab has these fields:

  • Role name
  • Description

The Permissions tab has these tabs:

  • Basic permissions
  • Home folder
  • Upload
  • Access
  • Manage
  • Metadata and comments
  • Share
  • Admin, which only the superuser sees

Most of the fields of these tabs are permissions. See User permissions. The Admin tab is described in Administrator permissions.

The Home folder tab also has the field Path template. FileRun builds the home folder path of each account of the role from this template, for example /user-files/{USERNAME}. An account that gets a role with an empty Path template has no home folder. The placeholders, and the cases in which the template of an administrator applies instead, are described in Home folders.

  • The Path template field is hidden from an administrator who has a Home folder template path.
  • For an independent administrator, the path is inside the home folder of that administrator.

The Space quota field of the same tab is described in Storage quotas.

Editing a role

  1. In the control panel, open Users → Roles.
  2. Double-click the role. The role opens in a new tab.
  3. Change the fields.
  4. Click Save changes.

An administrator other than the superuser does not see the Admin tab. The administrator settings of the role stay as the superuser set them.

What happens to the accounts of the role

  • Every account of the role has the new permissions at once.
  • When the Path template changes, FileRun changes the home folder path of every account of the role. FileRun creates the new folders when they are missing. It does not move the files. The window shows this warning: "Important: Changing this path will update the home folder paths of all user accounts using this role. It will result in the automatic removal of all these users' shares."
  • For each account whose home folder path changes, FileRun removes the shares that the account made, and its collections. FileRun also removes the web links, the stars and the folder notifications of the account in the old home folder.
  • When the role makes independent administrators, a change of the Path template also changes the home folders of the accounts that these administrators created. FileRun replaces the old path of the home folder of the administrator with the new path.
  • When the superuser changes the Home folder template path in the Admin tab to a path that is not empty, FileRun sets again the home folders of the accounts that the administrators of the role created.
  • When the home folder of one account cannot be changed, FileRun refuses the whole change. The role and its accounts keep their old values. A folder that FileRun created before the refusal stays on the disk, empty.
  • When the superuser gives an admin type to a role, every account of the role that was not an administrator is signed out. FileRun also revokes its app passwords and the access that it gave to applications through OAuth2.
  • When a role no longer lets its accounts manage shared drives, the drives of these accounts have no admin any more. See Drives without an admin.

Deleting a role

  1. In the control panel, open Users → Roles.
  2. Double-click the role. The role opens in a new tab.
  3. Click Delete role.
  4. The window says "This action will not delete any user accounts.". Click Delete role.

The tab closes, and the list no longer shows the role.

FileRun refuses to delete these roles:

  • A role that one or more accounts have. The message holds the number of these accounts, for example "You cannot delete this role because it is assigned to 3 users.".
  • The Guest role. The message is "This role is a predefined one and cannot be deleted!".
  • A role that an authentication source gives to the accounts that it creates. This also applies to a source that is disabled. The message is "This role is currently being assigned to newly authenticated users and cannot be deleted!".
  • The role that the sign-up settings give to the new accounts, under Users → Settings → Sign up. This also applies while the sign-up is off. The message is "This role is assigned to the user accounts that are created through the sign-up form and cannot be deleted!". To delete the role, first choose another role in the sign-up settings. See User sign-up.

So the deletion of a role changes no account. To delete a role that accounts have, first give these accounts another role. List users shows the accounts. The superuser can change the role of all of them at once, with the Assign role tool.

Giving a role to an account

The role of an account is in the user window, under Permissions → Role, in the Role field. - None - means no role. The window of the superuser account and the window of the visitor account have no Role tab.

The window that adds a user account does not offer the Guest role. To make a guest account in the control panel, give the Guest role to an existing account.

Who can give which role

  • The superuser can give every role.
  • An independent administrator can give the roles that this administrator created, and the Guest role.
  • A regular administrator can give the roles that belong to nobody, and the Guest role. The roles that belong to nobody are the roles that the superuser and the regular administrators created.
  • Only the superuser can give a role that has an admin type.
  • Nobody, the superuser included, can give a role that has an admin type to an account that an independent administrator created. FileRun refuses with "A user account that has an owner cannot be an administrator.".

The Role field of the user window lists only the roles that you can give.

What a change of role does to an account

  • The account takes the permissions of the new role.
  • FileRun sets the home folder path of the account from the Path template of the new role. When the path changes, FileRun removes the shares of the account, as described in What happens to the accounts of the role. With - None -, the home folder path does not change. See Home folders for the details.
  • With the Guest role, the account becomes a guest account. It loses its home folder, its app passwords and the access that it gave to applications through OAuth2. The account must have an e-mail address. Without one, FileRun refuses with "A guest user account requires an e-mail address.".
  • With another role, or with - None -, a guest account becomes a regular account.
  • With a role that has an admin type, an account that was not an administrator is signed out. FileRun also revokes its app passwords and the access that it gave to applications through OAuth2.

The user window shows a warning about these effects. For example: "Changing the role can cause a home folder path change." and "If the home folder path changes, the user's shares will automatically be removed.".

The Guest role

FileRun creates the Guest role at the installation. Every guest account has this role.

  • The Guest role cannot be deleted.
  • Its name and its description cannot be changed. Its Basic info tab shows "This is a system default role." instead of the fields.
  • Some permissions are fixed for the guests. Their fields are disabled in the window of the Guest role. For example, a guest has no home folder, cannot share and cannot be an administrator.
  • The superuser and the regular administrators who can manage roles can change the other permissions of the Guest role. These permissions apply to every guest account.
  • The independent administrators do not see the Guest role in their list, but they can give it to an account.

What a guest can do, and when FileRun deletes a guest account, is described in Guest accounts.

Roles of administrators

The Admin tab of a role has the tabs Admin type, Admin permissions and Can manage. When the Admin type of the role is Regular admin or Independent admin, every account of the role is an administrator of that kind.

  • Only the superuser sees the Admin tab, and only the superuser can create a role of administrators.
  • Only the superuser can give such a role to an account. The other administrators do not see these roles in the Role field.
  • An account that an independent administrator created cannot be an administrator. So such an account cannot get a role of administrators, and a role that such an account has cannot get an admin type. FileRun refuses the change of the Admin type with "User accounts that have an owner hold this role. A user account that has an owner cannot be an administrator.".
  • A regular administrator who can manage roles can change the other permissions of a role of administrators. The role of their own account is an exception.

The fields of the Admin tab, and the rules between them, are described in Administrator permissions.

Roles of independent administrators

An independent administrator can create roles for the accounts that this administrator manages.

  • These roles belong to the independent administrator. The independent administrator sees and manages only these roles.
  • The independent administrator can give these roles and the Guest role to accounts. The other roles are not offered.
  • The Path template of such a role is a path inside the home folder of the independent administrator. FileRun creates the folder when it is missing. An empty Path template means no home folder, as for the other roles.
  • The superuser and the regular administrators who can manage roles can also change these roles. A regular administrator cannot give them to an account.

An installation that was updated from an earlier version can have a role whose independent administrator no longer exists. The accounts of such a role keep their home folders. While the role has a path template, a new account cannot get it, until the superuser saves the role with a full path template. See A role whose owner was deleted.

The role of new accounts

  • Authentication sources. Each authentication source has the option Role of new user accounts. FileRun gives this role to every account that the source creates. The option is required. See Authentication integration.
  • The sign-up. The sign-up settings have the field Role. Every account that the sign-up form creates gets this role. The field is required while the sign-up is enabled. See User sign-up.
  • The import. The Import users tool has the field Assign a role to the users. See Importing and exporting user accounts.

The authentication sources and the sign-up do not offer the Guest role.

The Assign role tool

The Assign role tool gives one role to many accounts at once. Only the superuser can use it. The tool is in the control panel, under Users → Roles → Assign role.

The tool changes only the regular accounts and the guest accounts. It never changes the superuser account, the visitor account or the system account.

  1. Open Users → Roles → Assign role. The tab 1. Select users opens.
  2. In Select users with role, choose the accounts to change:
    • - Disregard role -: every account, with a role or without one. This is the default.
    • - None -: the accounts that have no role
    • - Any -: the accounts that have a role
    • the name of a role: the accounts that have this role
  3. Optionally, check Select only disabled users. The tool then selects only the accounts that are deactivated.
  4. Under Information, read the number of accounts that were found, for example "Found 12 users.".
  5. Open the tab 2. Select role. This tab is available only when the tool found accounts.
  6. In the Role field, choose the new role. The default is the Guest role. - None - removes the role.
  7. Click the button that shows the name of the role and the number of accounts, for example Assign role "Editors" to 12 users.
  8. The tab 3. Assign role shows one line for each account. The line says whether the change succeeded, or why it failed.

Each account changes as described in What a change of role does to an account. What else applies:

  • An account that already has the new role is not changed. Its line says "The new role setting is the same as the old one!".
  • With - None -, the accounts have their own individual permissions again. The tool does not change these permissions. Check them in the window of each account.
  • When the license limits the guest accounts separately, FileRun refuses a change that goes over a limit of the license. The line of the account shows the reason.
  • When the change of one account cannot be completed, that account keeps its old role, its home folder and its permissions. For example, the account is an independent administrator, and the home folder of one of the accounts that it created cannot be moved together with its own. The line of the account shows the reason, and the tool goes on with the next account.
  • When you choose the Guest role, the tool shows the warning "Remember that guest user accounts without access to any share get automatically deleted.". See When guest accounts are deleted.
  • The tool gives the Guest role also to an account that has no e-mail address. Such a guest needs an address the next time an administrator saves the account. See Guest accounts.
  • The tool refuses a role that has an admin type for an account that an independent administrator created.
  • An account whose independent administrator no longer exists becomes an account without an owner. See Accounts whose administrator no longer exists.

Caution

The tool changes all the selected accounts at once, and it cannot undo the change. When the home folder path of an account changes, its shares are removed. With the Guest role, every selected account loses its home folder and its shares.

The activity log and the API

The actions on the roles are written to the activity log. The names of these actions are in Activity log actions.

The roles can also be managed through the API. See API: Managing roles.