MidPoint provides the possibility to periodically review various settings, e.g. assignment of roles to users. This feature is called Access certification. It is implemented in the form of certification campaigns.
A certification campaign is a review process that consists of identifying a set of certification cases, selecting reviewers for them, gathering decisions of these reviewers, and executing remediation process, if needed. Reviewer selection and decision gathering can be done multiple times, in case of multi-stage campaigns. Remediation process can be automated or manual. It is assumed that certification campaigns will be run regularly, e.g. yearly, twice a year, monthly, and so on.
In the following we'll see how a campaign looks like. Then we'll go through a very quick tutorial. And after that we'll have a look at various possibilities connected to defining certification campaigns.
Information on this page is related to midPoint 3.4.
In version 3.3, access certification feature is present at the level of a technology preview. It is not suitable for production environments, mainly because of performance issues. Also, not all features mentioned here are implemented in 3.3.
Certification campaigns are created using templates that are called certification campaign definitions, or certification definitions for short. Each definition contains the following elements:
- name - the name of the certification campaign definition, e.g. "All user assignments"
- description - more verbose description of the definition, e.g. "Certifies all users' assignments. Everything is certified by the administrator."
- handlerUri - defines the software element (handler) that implements all the processing required by the certification campaigns of the given type. There are handlers that come bundled with midPoint, while others can be customer-written. Currently, there is one handler named http://midpoint.evolveum.com/xml/ns/public/certification/handlers-3#direct-assignment, that is able to handle certification of many types of direct assignments, e.g. user-to-role, user-to-org, role-to-role, etc.
- scopeDefinition - while the handler provides basic character of the certification (e.g. "we'll be dealing with direct assignments"), the scope definition says more precisely which objects (in this case, assignments) are involved. E.g. only user-to-role? And which users? Which roles? And so on. More on this below.
- ownerRef - who owns the definition and related campaigns? Campaign owner may be different from the owner of the campaign definition.
- stageDefinition(s) - how will the individual review stages look like, e.g. how long should a given stage take? how will the reviewers be selected? More on this below.
- remediationDefinition - how will the remediation phase look like, e.g. will it be automated or manual?
An example of a campaign definition (taken from samples/certification/def-all-user-assignments.xml file):
In this case, scope definition is missing. It means that default values are used: all assignments of all users are taken into account.
There is one stage. Stage definition consists of the following:
- number - because in midPoint data structures, lists are generally unordered, each stage has a number that specifies in which order it will be executed. Numbers have to start at 1 and increase consecutively.
- name and description,
- duration, specified as duration property - this influences notifications and automated closure of the stage,
- notifyBeforeDeadline - how long before deadline (given by the stage duration) will notifications be sent. This is a multivalued property, so it is possible to specify more than one notification. In the above example, first notification is sent 48 hours before deadline, and the second one 12 hours before.
- notifyOnlyWhenNoDecision - if set to true (the default), notifications are sent only to reviewers that have not decided yet.
- reviewerSpecification - how the reviewers will be selected? In this simplistic case, everything will be reviewed by the administrator. More on reviewer specification below.
Very quick tutorial
It is advisable to go through a very quick tutorial at this point in order to see how certification works.
Campaign definition options
Scope definition and reviewer definition are powerful mechanisms allowing to customize certification campaign a lot. Let us have look at the details.
Scope definition controls the set of certification cases that are created when the certification campaign is started. You can configure the following:
- objectType - what kind of objects we are dealing with? The default is UserType. But you can specify also RoleType, OrgType, ServiceType, FocusType or AbstractRoleType here.
- searchFilter - what objects of a given type should be selected? This is a standard midPoint filter. The default is "all objects of a given type".
- itemSelectionExpression - expression that selects items that are to be included in the certification. Exact use of this expression depends on the certification handler. The direct assignment handler calls this expression individually with each assignment to determine which assignments should be included and which should not.
- caseGenerationExpression - in the future, it will be possible to define an expression that produces certification cases. This can be any expression, whose input is an object that has passed the search filter specified above, and its output is a list of certification cases. However, this is not implemented yet.
- Handler-specific properties. For example, direct assignment handler provides the following ones:
- includeAssignments - should assignments be included in the certification? (default = true)
- includeInducements - should inducements be included in the certification? (default = true)
- includeRoles - should assignments/inducements of roles be included in the certification? (default = true)
- includeOrgs - should assignments/inducements of orgs be included in the certification? (default = true)
- includeResources - should assignments/inducements of resources be included in the certification? (default = true)
- includeServices - should assignments/inducements of services be included in the certification? (default = true)
- enabledItemsOnly - should we approve only assignments/inducements that are currently enabled? (I.e. with administrativeStatus either null or ENABLED) (default = true)
An example of more advanced scope definition:
This selects user-role assignments for users that belong under GovernorOffice and for roles with riskLevel = "critical".
This is described in a separate document.
Automated scheduling of campaigns
Campaigns can be automatically started by using tasks. So, for example, to auto-start campaigns in samples/certification directory, please import the start-*.xml files.
The task looks like this:
After importing the task(s), campaigns are automatically scheduled at given times.
Current status of a campaign can be seen when clicking on "Campaigns scheduling" under "Certifications" menu. All certification-related tasks are shown. (Besides tasks for starting campaigns there are also remediation tasks, but that will be eventually fixed.)
Configuring choice buttons
Unneeded choice buttons might be hidden at the level of the system configuration. The configuration is done by listing available buttons, like this:
If there are no available responses listed, all 6 can be used (accept, revoke, reduce, notDecided, delegate, noResponse).
If there is a pre-existing response that is currently not among specified items, it is displayed as red button "Illegal Response" just to distinguish it from "no response" state. It can be changed to any of the available responses. Seems like this:
As for statistics, we currently list all 6 of responses. (Might be changed in the future.)
There are four types of reports available: certification definitions, campaigns, campaign cases and campaign decisions. They are described on Access Certification Reports page.
Certification module provides notifications for certification campaign owner as well as for individual reviewers. More information can be found on Access Certification Notifications page.
Individual operations are authorized in a specific way. For detailed information, please see Access Certification Security page.