You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

In SimpleOne, access to content items and categories is controlled by the system administrators. They can create user criteria records and define access conditions to any objects based on criteria specified.

Example:

You need to restrict the access to the Service Catalog so that only certain users could access and manage it: users with the content_manager role from Moscow, Russia. To do this, create a user criteria record and specify the conditions.

Create user criteria


Role required: admin, security_admin (for сreate-read-update-delete operations, also known as CRUD).

Users with non-administrative roles can only view user criteria created earlier.

To create a user criteria record, complete the steps below:

  1. Navigate to User Administration → User Criteria.
  2. Click New and fill in the fields.
  3. Click Save or Save and Exit to apply the changes.

User criteria form fields

FieldMandatoryDescription
NameNSpecify the record name.
RolesNSpecify roles users should match.
GroupsNSpecify groups users should match.
UsersNSpecify user records to match.
Advanced conditionsNSelect this checkbox to specify a more precise condition. When selected, the Conditions field appears.
ConditionsN

Specify a more precise condition for your criteria using the condition builder. Empty condition always returns true.

This field appears when the Advanced conditions checkbox is selected.

Specified conditions are applied to users from the Employee table. For users from the User table and other tables extended from it, or from the Employee table, specified conditions return false.

Match all rolesN

Select this checkbox if the user must have all roles specified in the Roles field to meet the criteria.

Match all groupsNSelect this checkbox if the user must be a member of all the groups specified in the Groups field to meet the criteria.
ActiveNSelect this checkbox to activate the user criteria.
CompaniesNSpecify the company the user should match. Leave this field empty if users from all companies are allowed.
LocationsNSpecify the location the user should match. Leave this field empty if users from all locations are allowed.
DepartmentsNSpecify the divisions the user should match. Leave this field empty if users from all divisions are allowed.
Match allN

Select this checkbox if all conditions in this record must be met to provide access. If the checkbox is clear, users must meet one of the criteria to gain access.

As an example, consider the following user criteria record with the conditions:

  • Location P or Q
  • Company X or Y.

If the Match all checkbox is selected, access is permitted only to the users with these locations and companies. An employee from company X and location Q can access objects, as well as an employee from company Y and location P.

If the Match all checkbox is clear, a user must meet at least one of these conditions. An employee with a location Q as well as an employee with company X can access objects.

API Usage


When you work with the user criteria functionality, the SimpleUserCriteria server-side API class allows you to perform your tasks.

  • No labels