This is an old revision of the document!


Create evaluator with restrictions on one entity

Codeable evaluator is useful for restricting privileges on selected entity. For example, if you want one user to be able to see only other user (with defined username or uuid), or for restricting that user to see only a role (defined by code or uuid).

This tutorial describes how admin can create a new evaluator to achieve that.

This section describes how to create evaluator that restricts permission to see only one identity (user).

In first step we must get username of identity that will be restricted by this new evaluator.

For this step a role must exist so we can hook a new evaluator to this role. If you don't have such a role, please create one. Once you have a role, go to its submenu Permission and then add new evaluator by button Add.

On a modal window, select:

  • Entity type: IdmIdentity.
  • Evaluator type: CodeableEvaluator

Then, application will display an evaluator configuration dialog with one option marked identifier. Put UUID or username of an user (identiti) into this field.

Save the new evaluator. If the action was successful, you can verify new evaluator in the list of active evaluators.

Choose some other user (the user you want to give the permission to) and add him the role you configured. This user now obtains a new permission as defined in the evaluator.

Final result. We assigned a role to the richard.roe. This user now can see the john.doe identity in IdM.

This tutorial is similar to the first one. Instead of an identity, we grant user a permission to work with some certificate authority.

In first step we must get code of certification authority.

Code as identifier can be used from version 1.3.0 crt module. For lower version you must use ID (UUID) of certification authority. ID can be found in webrowser URL.

For next step must exists role. For this role will be created new evaluator. If you don't have role please create one. For this role go to submenu Permission and then add new evaluator by button Add.

On modal window select entity type as CrtAuthority. Evaluator type select CodeableEvaluator and then will be shown evaluator configuration with one option identifier. Into identifier can be put uuid or code of certification authority.

And after save new evaluator will be shown in evaluators table:

Add newly create role with new evaluator to user. This user will obtain a new permission. This permission allow made defined operation/s in evaluator.

After this role will be added to user. User will saw only this certification authority.

This restriction of certification authority can be used for add permission for request certificates only by one authority.

  • by fiserp