Skip to content
Version 2.4.0Try demo
Administration

Roles and Permissions ​

Roles and Permissions controls what each person is allowed to do in Horilla. You build named roles, put people into them and, when needed, give a person extra permissions directly.

Where: Settings → General → Roles and Permissions (/settings/user-group-view/).

Who: Superusers only. The administrator sees it; Ravi, Sofia and Tom were sent back to their dashboard, even though Tom holds payroll permissions.

This page controls what each person is allowed to do in Horilla. It has two tabs:

  • Roles is where you build named sets of permissions (the product's user groups) and put people into them. This is the normal way to give access.
  • Permissions lists people who already have access and lets you give an individual extra permissions on top of their roles.

How roles work ​

A role is a named bundle of permissions, for example "HR Manager" or "Payroll Manager". A person can be in several roles and gets all of the permissions of every role they are in, plus any permissions given to them directly. The page spells out the workflow at the top of the Roles tab: 1. Create a role, 2. Add employees (Members), 3. Set what they can do (Permissions).

The sample company has ten roles: Admin, Asset Manager, Attendance Manager, HR Manager, Helpdesk Agent, Leave Manager, Payroll Manager, Performance Manager, Project Manager and Recruiter. The administrator account is a superuser, so it does not need a role and the Admin role has no members.

Roles tab with HR Manager opened on its Members tab

  1. The Roles and Permissions tabs
  2. Search
  3. Create role
  4. The role name and counts
  5. Delete
  6. The Members and Permissions tabs of an opened role
  7. Add
  8. A member

Each line in the list is one role, with its initial, its name, how many employees are in it and how many permissions it holds. Click the arrow at the end of a line to open it. A large role can take several seconds to load; the panel shows "Loading..." until it is ready.

Careful

The role name is an editable field. Clicking on it makes it editable, and the new name is saved when you leave the field (names need at least four characters, read from the product code). Click the arrow at the far right of the line to open or close a role instead.

The Delete button asks "Delete this role? Employees will keep their accounts, but will no longer get permissions from this role." The people in the role lose its permissions; nothing else about them changes.

The Members tab ​

It says "People in this role get all of its permissions." Under it are a search box ("Search members by name, email or company"), a company filter, and one card per person with their name, email and the companies the role applies to. Each card has Edit and Remove links, and each company chip has a small cross that removes only that company.

How a person is added to a role: click Add (7). The Role members window opens.

Role members window to add people to HR Manager

  1. The message

  2. The employee search with its Filter

  3. The Companies choice

  4. The Cancel and Add members buttons

  5. Search for people in the Employees to add box (the Filter link narrows the search by department, job position and so on) and pick one or more.

  6. Under Companies, tick the companies in which the people get this role's permissions. Leaving them all empty means every company you manage. Lakeside has one company, so one box.

  7. Click Add members. Saving only adds people; it never removes anyone who is already in the role.

The Edit link on a member opens the same window for that one person ("Update which companies Daniel Okafor gets this role's permissions in. Other members of this role are not affected") with a Save changes button. Remove takes the person out of the role. We opened both windows and closed them.

Read from the product code: the Companies part only exists when the installation runs with company-scoped permissions, which is the case on the sample workspace. Without it, a role applies to every company.

The Permissions tab of a role ​

Open a role and click its Permissions tab. Horilla says: "Pick a module on the left, then turn Create / View / Edit / Delete on. Use View only or Full access for faster setup. Changes save automatically."

Permissions of the HR Manager role, Employee module

  1. The search box
  2. The number of permissions selected
  3. The module list
  4. The shortcut buttons
  5. The permission grid
  • The module list on the left shows 21 modules (Auth, Base, Employee, Documents, Automations, Appearance, Recruitment, Leave, Performance, Onboarding, Asset, Attendance, Payroll, Biometric, Ticket, Offboarding, Project, Meet, LDAP, Additional Info and Single Sign-On). The number next to a module is how many permissions the role holds in it. For HR Manager, Base has 140, Employee 54 and Recruitment 57, while Payroll has 0.
  • The grid lists the things a module manages (for Employee: Employee, Employee tag, Historical employee work information, Employee work information, Employee bank details and more). The columns are Create, View, Edit, Delete, Export and Other. Other holds special permissions, such as Update own profile and View Own Profile on the Employee row. A tick means the role is allowed to do that.
  • View only, Full access and Clear change a whole module at once. The top tick box in the grid selects every row of the module.
  • The search box finds a module or a feature by name.

Careful

Every tick saves automatically and takes effect for everyone in the role at once. Open this tab to look, not to experiment.

The count on a role's line and the count in its Permissions tab can differ. HR Manager shows 781 permissions on its line and 621 selected in the tab, because the line counts every permission stored for the role and the grid only counts the ones it can show.

Creating a role ​

Click Create role.

Create role window

  1. Role name
  2. The permission search
  3. The number selected
  4. The module list
  5. The shortcuts
  6. The grid
  7. Cancel and Create role

Role name is required (the hint reads "e.g. HR Managers"). Choosing permissions is optional: you can create an empty role and fill it in later. The grid works like the one above. After saving, the new role appears in the list with 0 employees; add its members as described above.

The Permissions tab (direct permissions) ​

The second tab at the top of the page, Permissions, is headed User Permissions: Review or assign permissions directly to individual employees. It lists the employees who hold any permission or role (in the sample: Daniel Okafor and Tom Becker, each with their job position, job role and department) and opens each one to show the combined permissions they get from their roles and from direct grants.

User Permissions tab

  1. The Roles and Permissions tabs
  2. The warning
  3. The search box
  4. The Assign button
  5. The employees

A yellow note says: Permissions assigned directly to an employee here apply in all companies. Use Roles to grant company-specific permissions. In other words, a direct permission cannot be limited to one company; a role can. The Assign button gives an employee direct permissions. We did not open it. Prefer roles whenever you can: they are easier to review and to take away.

You're readingSettings · Horilla 2.4.0