Release in version 3.22.0:


Move departments with drag and drop functionality. 


Departments can be moved via drag and drop in "company/users", even if they already have users:

  • Moving main-department with sub-departments in structure -> Moves main-department with sub-departments included
  • Moving only sub-department with no connected sub-departments under -> Moves only sub-department and main-department is not moved
  •  Moving sub-department with connected sub-departments under -> Moves sub-departments with sup-departments included


Move departments with drag and drop:

1. Mark department you want to move before dragging:

2. Drag and hover over desired department so it's marked:

3. Drop department and select in pop-up whether or not users should keep, inherit etc in regards to roles


Options when moving department:

Depending on previously connected roles from previous main-department

1. Keep: Keep default roles from previous department. Users does not inherit roles from new department. 

2. Inherit: Users will be connected to default roles from new department and default roles from previous departments will be disconnected

3. Keep and Inherit: User will be connected to new default roles and also keep roles from previous department

4. Disconnect: Users will not be connected to new default roles, and will be disconnected from default roles from previous departments


If the department you're moving using drag and drop does not have default roles attached, and the new department has default roles, a pop-up will appear with two available options:


1. Inherit: Users will be connected to default roles from departments

2. Don't inherit: Users will not be connected to default roles from department



In competence in admin tools:


Connect Users to Roles from Parent Department


By using the "Connect users to roles from parent department" function, you can assign users roles from a parent department to its sub-departments. This allows users to inherit roles and permissions from the main department to their respective sub-departments.


Example:

If the main department has a specific role defined, users in a sub-department can automatically be assigned this role by enabling "Connect users to roles from parent department." This ensures that users in the sub-department have the same roles and permissions as those in the main department.


Role assignment as default for a department

When a role is created, it can be set as the default for a department under its properties.

  • If "Default for department" is selected, all users in the chosen department will be added to the role.
  • If the main department has an assigned role and has sub-departments, you have the option to link users to default roles from parent departments.

Example:

By accessing the edit properties for "Sub-Department 1" and selecting the option "Connect users to default roles from all parent departments," all users in "Sub-Department 1" will be added to the role "Test A role."



Steps to connect:


When creating a role: Role can be set as default for department in properties:


If selecting "default for department" all users in the selected department will be added to role:


If the main-department has a role connected, and main-department has sub-departments connected - you have the option to connect users to default roles from parent departments:


For example: By going in edit properties in "Sub-department 1" and selecting option to "connect users to default roles from all parent departments" - all users from "Sub-department 1" will be added to role "Test A role":


To enable the connection of users to default roles from parent departments, this setting must be configured individually in each sub-department. The role inheritance applies upwards within the department structure. 


Users are added to parent departments until it is not applied in properties for the parent department: