User roles
Groups of rights for individual users are created in the User roles book. Users who are to have the same rights will have one user role in which the rights are defined.

Picture: User roles book
The List tab contains an overview of all user roles that have been created. Here we can create a new role using the Insert key or using the New button in the ribbon, which can be found on the Home tab. The use of a role can be cancelled using the Invalidate button or the F8 key.
The Role kind is intended mainly to identify the origin of the role when switching from user rights to user roles. Group roles were created by converting user groups, which could previously be defined in the User groups book. Object roles were created by converting user groups used in the object repository (OBJ* tables).
The following options can be used in the bulk actions in user roles:
- Add rights - allows one or more rights (marked with an asterisk) to be assigned to the selected marked user roles. These rights will have a green icon in the definition of the selected roles.
- Remove rights - allows one or more rights (marked with an asterisk) to be denied to the selected marked user roles. These rights will have a red icon in the definition of the selected roles.
- Delete rights - allows one or more rights (marked with an asterisk) to be deleted from the selected marked user roles. These rights will be removed from the definition of the selected roles.
User rights
On this tab, we define the rights of the User role.

Picture: User rights
Description of fields:
Companies |
It is possible to define for which company the user role with the selected rights is defined. |
Inherites properties from these roles |
List of roles that are part of the given role. These roles can also be seen in the Tree of inherited roles. |
Rights |
Summary of all user rights. In change mode, rights can be easily assigned or removed. Rights can have 3 kinds of states, depending on the mode:
|
|
The Redundant column shows which rights are repeated in the role. These rights can simply be deleted, as the role already contains them. |
Roles using the selected right |
Shows which users have a specific right from the Rights section assigned. |
The parent and child roles can be seen in the tree of inherited properties.
Using the F5 key or the Change option in the ribbon, we switch to change mode of the given user role. The Show all rights button displays all rights, which can also be seen in the Rights section.
Individual rights can be assigned and cancelled using the Assign rights or Remove rights button. All rights can be assigned to a User role using the Assign all rights option in the ribbon.
Record access groups
Using Record access groups (Groups of rights), we define the role's authorization to view and change specific records in K2 modules

Picture: Record access groups defined for a role
This group can be used to restrict viewing/changing of records, e.g. for a specific book in purchase or specific records in the book of sales orders. Users who do not have this group assigned will see a record with asterisks instead of the information.

Picture: Groups of rights
Description of fields:
Record access groups |
List of created groups of rights. |
Users of group (for viewing) |
Users who are authorized to view the records are listed here. |
Group users (for change) |
Users who are authorized to change the records are listed here. |
Roles for browsing |
This section displays the roles that are authorized to view. |
Roles for editing |
This section displays the roles that are authorized to change. |
Example: A user does not have the right to view and read a specific sales order
Administrator - the DEMO user has the Sensitive sales orders group of records assigned with authorization both to change and to view. This information can be found on the Groups tab in the Users book, or in the User roles book on the Record access groups tab.

Picture: Sensitive sales orders group of records
The DEMO user logs into the Sales Orders book and, using the Shift+Ctrl+F5 keyboard shortcut, changes the group of rights for sales order 10/2021/6 to Sensitive sales orders.

Picture: Setting the group of rights
If a user who does not have the Sensitive sales orders group of rights logs into IS K2, they see the data of the selected sales order replaced by asterisks.

Picture: Sales order with asterisks

Picture: Basic data of a sales order without the group of rights with authorization both to change and to read
A user may also lack the authorization to read or change only a specific record, e.g. a warehouse. If they lack authorization only for the given data, they will see asterisks in the given field. The other data is visible to the user.

Picture: User without authorization to read a specific record
Role application
On the role application tab, we can see to which roles the role selected in the User roles book passes its rights. There is also information about the properties that the role passes to the listed users.
The Used in these additional rights section lists the additional rights of the role.
The Used in modifications of these universal forms section contains information for the case when universal forms are saved directly to the role.
If we have created, e.g., a filter that is saved for a user and the selected role, this information is displayed in the Used in these saved objects. section.

Picture: Role application
The created user role is assigned to a user in the Users - security settings book on the Roles and rights tab.

Picture: Users - security settings
Deleting user roles
The Application column on the Basic data tab shows the number of users who have the given role assigned. If the role is not used by any user, it can be deleted. We mark the role or roles we want to delete using the Ctrl + Space keyboard shortcut. The deletion is started via the Bulk actions tab.

Picture: Deleting a user role
Description of fields:
Delete unused roles |
A role that is not used by any user is simply deleted. |
|
Delete roles used by other roles or users. |
A role we want to delete that is used by a user or another role. |
|
|
Pass the inherited roles to the receiving roles and users. |
The users keep the rights of the given role. The role is deleted. |
|
Delete even though the role contains rights. |
The rights of the given role will be deleted from the users. The role will be deleted as well. |
A group role listed in the Purpose column was created by conversion from user groups in K2 luna. As for function or purpose, all roles can have the same purpose regardless of this classification. IS K2 does not distinguish anywhere whether a role is a group role or not; it serves only for better orientation of the administrator when switching from K2 luna to K2 gaia.
The rights of roles can be easily compared using the Record comparer.