Roles, Competences and Competence Rules

Roles determine what a user can do in TAS: which templates they can start, which tasks they handle and which cases they can see. Competences and competence rules let you assign roles in bulk and automatically. Only administrators can see the Roles page. To open it, select Roles in the main menu.

Roles, competences and rules: what is the difference

TermWhat it isHow it reaches the user
RoleThe basic permission. Templates, tasks, case visibility and system rights are always checked against roles.Manually in the role or user detail, through directory synchronization, by a process or through a competence.
CompetenceA bundle: a group of users together with a group of roles. The roles are either selected manually or defined by a name pattern (for example, all roles whose name contains "001 Accounting").Every member of the competence receives all of its roles with the source Competence.
Competence ruleA template for creating competences. From a text, typically the name of a directory group, it creates a competence and adds roles and users to it.During user synchronization from LDAP, or manually with the Apply action.
Roles from competences are assigned by a scheduled job
Saving a competence does not change users' roles right away. The competence is only flagged for regeneration (the Generation status column shows Yes). The roles are assigned or removed only when the scheduled job Competence generator runs. By default it runs daily at 4:00, but it is disabled after installation. If you use competences, enable it in Administration on the Crons page.

Role list

No.ElementPurpose
1RolesTab with the list of roles.
2CompetencesTab with the list of competences.
3Add roleOpens the window for a new role.
4SearchFilters the role tree by name.
5AllRoot of the tree. Click it to show all roles in the table.
6CategoryRoles in the tree are grouped by category. Roles without a category are in the Uncategorized group.
7RoleClick it to show only this role in the table.
8Add roleSame as button 3.
9Column filterThe table has the columns ID, Role name, Category and Description. Filters, sorting, saved filters, views, columns and export work the same as in other tables.
10Row actionsEdit, Copy, Delete.
ActionPurpose
EditOpens the role detail. Double-clicking the row does the same.
CopyCreates a role named clone(1)_<název> with the same category, description, restriction and all assigned users, and opens it. System roles cannot be copied.
DeleteDeletes the role after confirmation. The role is removed from all users, from all template headers and from template visibility settings. The $AllUsers role cannot be deleted.
System roles in the list
Only a super administrator sees system roles (names starting with $) in the list. A regular administrator sees only $AllUsers. System roles are described in the System Roles article.

Role detail

No.ElementPurpose
1CloseCloses the detail. If there are unsaved changes, TAS asks you first.
2SaveSaves and keeps the detail open.
3Save and closeSaves and returns you to the list.
4Role nameRequired. This is the name you select the role by in templates.
5CategoryGroup in the role tree. Select an existing category or type a new one.
6DescriptionWhat the role is for. We recommend filling it in so that other administrators can find their way around.
7Restrict role assignment to roleOnly users who have the role selected here can then assign and edit this role. Only a super administrator can set it; for everyone else the field is disabled.
8Maximum number of users in roleHow many users can have the role. An empty field means unlimited. If the limit is exceeded, TAS refuses to save.
9Assign users to selected roleUsers who do not have the role. Search filters the list. Move users with the plus button or by double-clicking.
10AssignedUsers who have the role. Remove them with the minus button.
11Export to CSVDownloads the list of active users in the role (ID, username, first name, last name, display name, email, source and external ID).
12CompetencesTable of competences that contain this role (ID, Competence name, Description). Read-only.

The Assigned list contains only users who were given the role manually. Users who have the role from a competence are not listed, and removing users in the role detail does not take the role away from them. Every role change is recorded in the access log.

How to create a role and assign it to users

  1. Click Add role.
  2. Fill in Role name, select or type a Category and add a Description.
  3. In the Assign users to selected role list, search for users and move them to the Assigned list.
  4. Click Save and close.

Competences

The Competences tab shows all competences. Open the competence rules with the button above the table.

No.ElementPurpose
1RolesBack to the role list.
2CompetencesCurrent tab.
3Competence rulesOpens the list of competence rules.
4Add competenceOpens the window for a new competence.
5Rule nameThe rule the competence was created from. Empty for manually created competences.
6StatusActive or Inactive. An inactive competence does not assign roles.
7Generation statusYes means the competence is waiting for its roles to be regenerated by the scheduled job. No means the roles are up to date.
8Row actionsEdit, Status and Delete.

Status opens the Change status window, where you activate or deactivate the competence. Delete removes the competence after confirmation. Competences created from a rule cannot be deactivated, deleted or edited. They are controlled by their rule.

Competence detail

No.FieldPurpose
1CloseCloses the detail without saving.
2Save and closeSaves the competence and flags it for regeneration.
3Default nameRequired.
4Other language variantsNames in the other application languages. When AI is enabled, a button for automatic translation is next to it. The same link is also available for the description.
5Default descriptionRequired.
6ActiveOnly an active competence assigns roles.
7Assign rolesRoles that every member of the competence receives. System roles cannot be added here.
8AssignedSelected roles. Below them is the same pair of Assign users lists for the competence members.

You can recognize a competence created from a rule by the red notice "A competence created from a rule cannot be edited". All of its fields are disabled.

Regular expressions

Besides fixed selected roles, a competence can assign roles based on a pattern in their name. When a new role with a matching name is created, the competence members receive it the next time the Competence generator job runs, without you having to edit the competence.

No.ElementPurpose
1AddAdds a pattern. In the window, enter a Name (a label for you) and a Value (the pattern). The window immediately shows the roles that match the pattern.
2PreviewShows all roles that match any of the competence's patterns.

Patterns use SQL syntax: % means any number of characters, _ exactly one character, and ^ cancels the special meaning of the next character. For example, %001 Accounting% finds all roles whose name contains "001 Accounting". Patterns apply only to regular roles, never to system roles. Use the row menu to edit or delete a pattern.

Competence rules

Open the rules on the Competences tab with the Competence rules button.

No.ElementPurpose
1CloseBack to competences.
2Add ruleOpens the New rule window.
3Regular expressionThe expression the rule uses to recognize a text, for example a group name.
4StatusActive or Inactive. An inactive rule is not used.
5Row actionsEdit, Status, Apply, Delete.

The table also has the columns ID, Rule name and Description. Delete removes the rule and all competences created from it. Apply is available only for an active rule.

Rule detail

No.FieldPurpose
1CloseCloses the detail without saving.
2Save and closeSaves the rule and applies the changes to the competences created from it.
3Default nameRequired. Name template for the created competences. The tokens $1, $2 … are replaced with the parts of the text captured by parentheses in the regular expression.
4Default descriptionRequired. Description of the created competences. Both names also have language variants.
5Regular expressionRequired. A regular expression in JavaScript syntax, for example ^CN=PO-Approvers-([^,]+),.*$.
6ActiveOnly an active rule creates competences.
7Assign rolesRoles that all competences created from the rule receive.
8Assign usersUsers who will be members of all competences created from the rule, in addition to the users from synchronization.

Below the settings is the same Regular expressions section as for a competence. You can also use $1, $2 … in role patterns, so for example the pattern %$1% assigns roles whose name contains the captured part.

When you save the rule, TAS deletes the competences whose source text no longer matches the new expression, and updates the other competences created from the rule and flags them for regeneration.

How rules create competences

Rules are applied in two situations:

  1. User synchronization from LDAP. In Administration, in the Authentication section, the option to use competence rules must be enabled in the LDAP module settings. During synchronization, TAS compares every group the user is a member of (values of the memberOf attribute, typically in the form CN=…,OU=…,DC=…) with all active rules. When there is a match, it finds or creates a competence named according to the rule and adds the user to it. It removes the user from groups they are no longer a member of. Locked users have these competences removed.
  2. Manual application. In the rule's row menu, select Apply, enter the Competence text and check which Competence name will be created. The Save button becomes active only when the text matches the expression. The competence is created without users from synchronization.

In both cases, the roles are assigned to the users themselves only by the Competence generator scheduled job.

How to create a rule for directory groups

  1. Click Competence rules and then Add rule.
  2. In Default name, type a name template, for example Approvers – $1, and fill in the description.
  3. In Regular expression, enter an expression that matches the whole group value and captures the variable part in parentheses, for example ^CN=PO-Approvers-([^,]+),.*$.
  4. Leave Active selected.
  5. In Assign roles, select the roles that all such competences should grant, or add them with a pattern in the Regular expressions section.
  6. Click Save and close.
  7. Make sure that the Competence generator job is enabled in Administration on the Crons page.

Related: Users, User Detail, System Roles.

System roles

Syca (opens in a new tab)

Powered by HelpDocs (opens in a new tab)