How midPoint birthright provisioning with role autoassignment works
Consider a joiner whose starting access should follow from HR data alone: a new hire in Finance, based in one office, with a specific job code should receive the email group, the file share and the expense tool before a manager files a single request. In midPoint, role autoassignment answers that question. Roles carry expressions that decide when they are assigned automatically, and object templates can also assign roles automatically based on attributes of the user. Teams need this when default access is large enough, and stable enough across departments and locations, that manual requests would create a backlog and inconsistent grants. Before you configure anything, confirm which HR attributes are reliable, which combinations should trigger a birthright role, and who approves a change to those rules. This section covers the mechanisms only, not the full joiner, mover and leaver design, which is covered in the sibling topic on JML automation.
The two mechanisms suit different situations. Role-level autoassignment keeps the condition next to the role it grants, which helps when one role is owned by one application team. Object templates centralize decisions about a user object, which helps when several roles depend on the same attributes or when the rules need to be reviewed in one place. In midPoint 4.11, a GUI editor for role auto-assignment, including the condition, is documented in the release notes, so administrators who do not write expressions by hand can review and adjust conditions in the interface. Check the release notes for the exact editing options before you rely on them, and confirm whether your current release line includes the feature. Plan the version choice with the upgrade path in mind, because this feature is not available in releases before 4.11.
Birthright rules are easy to break silently, so keep them testable from the start. Record the expected role set for a set of sample HR records, run those records through the rules in a non-production environment, and compare the result before each change is promoted. Keep the rule expressions under version control with the rest of your configuration, and assign ownership for each rule to a named role owner. Review whether any birthright role grants sensitive access, because automatic assignment bypasses the request step that would normally route that grant to an approver. Ask your implementation partner or internal team to show how a rule change is previewed, tested and rolled back before go-live.
Choosing between role autoassignment, object templates and org inducements
This table compares the three midPoint mechanisms that can grant default access from HR attributes, across where the rule lives, who maintains it, how it is tested and when each fits. Read each row as a trade-off: the right choice usually depends on how many rules you need, who edits them and how much XML or expression work your team can support.
| Aspect | Role autoassignment | Object template | Org inducement |
|---|---|---|---|
| Where the rule lives | On the role object, as an autoassignment condition evaluated against the user | On the user object template, applied to every user on recalculation | On an organization or org-based role, so membership flows from the org structure |
| Typical trigger | A condition on user attributes such as department, employment type or location | A mapping or assignment rule that runs for all users or for users matching an archetype | Users assigned to an org, usually by an HR-driven org mapping |
| Who maintains it | Role owners and IAM engineers, who can see the rule next to the role it grants | Central IAM team, since the template governs many users at once | Org structure owners, with IAM engineers maintaining the inducement logic |
| Editing effort | The 4.11 GUI editor can maintain the auto-assignment condition, reducing XML work for simple conditions | Requires XML and expression knowledge to write and review mappings | Requires understanding of inducements and org membership, plus XML for the rule itself |
| How it is tested | Run recomputation on sample users in a simulation or test environment and inspect resulting assignments | Preview changes on test users before applying the template to production identities | Verify org membership first, then confirm the inducement produces the expected assignments |
| Best fit | A small number of clearly scoped default roles tied to one role owner | Baseline rules that apply to all users, such as a standard identity attribute mapping | Access that follows organizational placement and changes as people move between units |
| Main risk | Overlapping conditions across roles can grant more access than intended | A single change can affect every user, so mistakes spread quickly | Mistakes in org data propagate into access for everyone under that unit |
| Confirm before choosing | Check the release you run supports the condition editor you plan to use, per the 4.11 release notes | Confirm the template scope and archetype filters in your target version | Confirm how your org structure is loaded from HR and kept current |
Setting up birthright rules in midPoint
This sequence turns HR attributes into default access in midPoint in a controlled order, so each rule is confirmed against a known population before it assigns anything to a real person. The output is a tested birthright role set, enabled first for one pilot organization with a reviewed preview record.
Confirm HR attributes are authoritative
The HR system owner and the midPoint administrator confirm which HR fields drive birthright decisions, such as department, job code, location, employment type and manager, and that each one is mapped into midPoint from the HR resource as the source of truth. Check that the values are maintained by HR, consistently populated across records, and not editable through midPoint. Done when a sample of identities in midPoint shows the expected values for every field the rules will use, and the team agrees on which fields are off limits for rule logic.
Define the birthright role set with owners
Business owners and application owners agree which roles every person in a given population should receive on arrival, and which require a request or approval instead. Record each role with its business owner, the population it applies to, the HR attributes it depends on and the reason it is granted by default. Keep the set small at this stage. Done when there is a signed-off list that maps each birthright role to one population definition, with exceptions and approval-based roles listed separately.
Implement autoassignment expressions or template logic
Write the condition for each role as an autoassignment expression inside the role, or, where the rule applies across roles, as an assignment in an object template. Use the same HR attribute names and values confirmed in step one, and keep each condition readable enough for an owner to check against the agreed list. In midPoint 4.11 and later, the GUI editor for role auto-assignment shows the condition, which helps reviewers. Done when every birthright role in the signed-off set has one condition in version control or a documented change, and the conditions match the owner list without extra roles.
Preview the rules on a test population
Run midPoint's preview or simulation against a test population that includes typical records, edge cases such as missing values, transfers and contractors, and recently changed identities. Compare the proposed assignments with the owner list line by line. Look for people receiving roles they should not have, people missing expected roles and roles that fire on blank or unexpected values. Done when the preview output has been reviewed by the owners, each unexpected result has a documented fix or accepted explanation, and the rules are re-run until the preview is clean.
Test the rules against change scenarios
Test how birthright rules react to changes, not only to first-time records. Simulate a mover, such as a department transfer, and a leaver, and confirm that the birthright roles are added and removed as the owners expect. Also confirm that a rule does not remove access that was granted through a request or a manual process. Done when each change scenario has a recorded expected result and the observed result matches it, so the team knows how the rules behave over the lifecycle.
Enable birthright rules for a pilot organization
Enable the rules for one pilot organization or business unit, chosen with the HR owner, so that a limited population receives real assignments first. Monitor the first runs and review the assignments and any resulting provisioning to target systems, with the owners and the service desk aware of the change. Done when the pilot population's assignments match the approved list, the owners have signed off the results, and any issues found during the pilot are closed before the rules are extended.
Keep birthright rules under change control
Establish a review path for every later change to a birthright condition, including the preview run, the owner sign-off and the pilot check for significant changes. Ask Evolveum's documentation and your own test environment to confirm how autoassignment behaves in the midPoint version you run, and plan any upgrade around the same tests. Done when a documented change process exists, the test population is kept current, and each change has an owner approval and a recorded preview result.
Security risks in automatic access grants
Birthright rules grant access before any manager or reviewer sees the request, so a single rule error can reach every matching identity at once. The cards below cover the four places this risk concentrates in midPoint: the condition scope, who can edit the expressions, who can change the roles themselves, and whether each automatic grant leaves a record.
Overbroad autoassignment conditions
A condition that matches on a loose HR attribute, such as a department name or an empty field, can assign a sensitive role to far more people than intended. Because autoassignment runs on every recompute, one bad condition spreads quickly across the population. Before enabling a rule, run it in simulation against current HR data, count the matches per role, and confirm each match set with the application owner. Mirror that review in your test environment before the rule reaches production.
midPoint featuresExpression editing rights
Autoassignment conditions are expressions, and expressions are code that runs with midPoint's privileges. Anyone who can edit a role or object template can change who receives access, often without a second person reviewing the change. Restrict expression editing to a small administrator group, keep the expressions in version control, and require peer review for every change. Ask your integrator which administrator roles are allowed to edit expression-bearing objects.
Authorization over birthright roles
Birthright roles are often the highest-volume grants in the system, so the people who can change them hold broad influence. Set authorizations so that changing a birthright role or its condition is limited to named administrators, separate from those who manage ordinary user records. Check that help desk accounts cannot alter role definitions or templates. Review these authorizations at the same cadence as other administrator access.
Separation of duties in rule approval
The person who writes a birthright rule should not be the only person who approves it for production. Without a second approver, an error or a malicious change can pass straight through. Define a written approval step for each new or changed birthright rule, record who approved it, and keep the approval linked to the change. Confirm with your compliance team how this step maps to their existing change control.
Audit trail for automatic assignments
A grant made by a rule has no human requester, so the audit record must show which rule, which attribute values and which change triggered it. Without that record, reviewers cannot tell an intended grant from a faulty one. Confirm that your deployment logs assignment events with enough detail to trace each grant to its rule and source change, and test the trail by reconstructing a sample grant end to end. Agree the retention period with your compliance and legal teams.
Rollback and recovery of grants
When a faulty rule is found, you need a documented way to remove the grants it created without removing access that people obtained legitimately. Identify grants by their source rule before any change is made, and test the removal on a copy of the data. Plan the sequence so that affected users are not left with missing access during the fix. Ask your integrator to document this procedure as part of the rollout.
Keeping birthright rules testable across environments
Rule authors write the role autoassignment expressions, object template logic and org-based inducements that decide who receives default access. Their first job is to keep each rule small and tied to one documented HR condition, such as department, location or employment type, so that a test failure points to a single cause. Authors should work against a sample HR dataset that covers ordinary cases and known edge cases, not only the happy path.
- Sample HR datasets: Maintain a version-controlled set of anonymized or synthetic HR records that includes joiners, movers, leavers, rehires and people with missing or malformed attributes.
- Expected outcomes: Write, next to each sample record, the roles and org assignments that should result, so every rule change has a visible expected result.
- Small, named changes: Keep each expression change focused on one condition, and name the rule and its purpose in the commit message.
- Environment parity: Confirm that the development environment uses the same midPoint version and connector configuration as production before comparing results.
Before submitting a change, the author should rerun the full sample set and record any difference from the expected outcomes.
Reviewers check that the rule does what the access policy says, not only that the expression runs without errors. For birthright rules, the review question is whether a given group of people should receive a given role by default, and who signed off on that decision. Reviewers need to see the sample dataset, the expected outcomes and the actual results side by side, so they can challenge both the rule and the test data.
- Policy traceability: Link each rule to the access policy or owner decision that authorizes it, so the reviewer can confirm intent.
- Diff review: Read the change as a diff in version control, including changes to expected outcomes, since a changed expectation can hide a regression.
- Edge case challenge: Ask for the outcome for people with missing attributes, temporary roles and multiple affiliations before approving.
- Separation of duties: Where the organization requires it, have the person who wrote the rule differ from the person who approves it, and record both.
- Evidence retention: Keep the approved expected-outcome report with the change record so auditors can later see what was reviewed.
Reviewers should confirm that the approved version is the one promoted, not a later edit.
The operations team keeps birthright rules correct after the rules leave the author's workstation. They manage promotion between environments, schedule the checks that run after each midPoint upgrade, and watch for unexpected changes in the access that rules produce. Operations should treat the rule set as configuration that moves through the same pipeline as any other change, with a clear record of what is running where.
- Promotion from version control: Deploy rules only from the reviewed revision, and compare the deployed configuration with the repository after each release.
- Upgrade regression runs: Before upgrading midPoint, rerun the sample dataset and expected outcomes on a non-production copy, and check the release notes for changes to expressions or autoassignment behavior. Confirm the upgrade path with the midPoint releases page and the release notes for the target version.
- Drift detection: Schedule a periodic comparison between expected birthright assignments and actual assignments in production, and investigate any unexplained difference.
- Rollback plan: Keep the previous approved configuration available so a failed rule can be reverted quickly.
- Test tooling: Confirm with your DeployOpen or Evolveum contact which test harness, if any, fits your environment before building it.
Operations should record each upgrade test result alongside the release it validated.
What to confirm before relying on birthright autoassignment
Birthright rules run automatically against every identity, so a wrong assumption spreads quickly. The cards below cover the release, source behavior, attribute change effects, scale and upgrades that determine whether your rules behave as designed. Confirm each one in your own environment before the rules touch production identities.
GUI editor availability by release
The GUI editor for role auto-assignment, including its condition, is listed in the 4.11 release notes. If you run an earlier release, expect to write and review the autoassignment expressions directly in the role or object template. Confirm which midPoint version you will deploy, check whether the editor is present in that build, and decide whether your change process accepts expression-only authoring for birthright rules.
4.11 release notesHR source attribute change behavior
Birthright rules fire when HR attributes change, so the timing and form of those changes matter. Confirm whether your HR source sends live change events or only periodic full extracts, how often it is read, and whether a temporary blank value can appear during a data load. A transient empty department or location can remove access that should have stayed in place.
Connector behavior on attribute updates
Each connector in your chain decides how it reads and writes changed attributes. Test one joiner and one mover per target system and record which attributes trigger a provisioning change, which are ignored, and whether the connector treats a cleared value as a removal. Use the connector documentation as the starting point, then confirm behavior on your version and configuration.
Evolveum connectors docsEffect of removing an attribute
Removing a source attribute is the most common way birthright access is lost by mistake. Decide in advance whether removing an attribute should unassign the role, disable the account, or do nothing. Test that decision with a controlled attribute removal in a non-production environment, and confirm that the result matches the leaver and mover policy your audit team has approved.
Performance on large populations
Recalculating autoassignment across a large identity store takes time and load on the repository and the target systems. Ask your implementation partner or test team for a measured recalculation run on a copy of your population, and check how the run interacts with scheduled synchronization. Plan the run window and confirm the database sizing against that test, not against an estimate.
midPoint system requirementsUpgrade path between supported versions
Birthright rules written against one release may need adjustment after an upgrade. Check which release line you are on, its support end date, and the supported steps to the next version before you commit to a rule design. Retest the full rule set after each upgrade, including the expressions that depend on changed features.
midPoint releasesQuestions teams ask about birthright provisioning in midPoint
What drives the effort and cost of birthright design in midPoint?
Effort is driven by how many birthright rules exist, how clean the HR attributes are, and how many target systems each rule must reach. A small set of rules tied to a few clean attributes is far less work than dozens of rules that depend on job codes, location, and contract type. Cost has two parts: the design work (role inventory, attribute mapping, rule logic, test cases) and the build work (expressions, object templates, org-based inducements, and connector-side role content). Fixed-scope engagements are normal here because the rule list can be agreed in writing before build starts. Ask for a quote that lists each rule, each source attribute, each target system, and the test cases you will accept as done.
Is birthright provisioning a fixed-scope engagement?
It can be. DeployOpen agrees scope, deliverables, and timelines in writing before work starts, and most engagements are fixed-scope. The usual boundary is a defined set of birthright rules, the HR attributes they read, the roles or inducements they assign, and the test evidence delivered with them. Work that tends to fall outside a first fixed scope is the discovery of new HR data quality problems, additional source systems, and role model redesign. Agree in advance how changes to rule logic will be handled after go-live, and whether ongoing rule changes are covered by a retainer.
How long does a birthright rollout take and what changes the timeline?
No duration is fixed here, so treat any figure from a vendor as a planning input to confirm, not a commitment. The timeline mostly follows the number of rules, the state of HR data, and how many role owners must approve the access each rule grants. Delays usually come from attribute gaps (for example, a department field that is blank for contractors), disagreement over which role a job family should receive, and waiting for test accounts on target systems. Rollout is often staged: a small population first, then wider coverage. Ask for a milestone plan that names who signs off each stage.
What does the client team need to provide for birthright work?
Three things decide whether the work can move: named owners for each HR attribute the rules read, named owners for each birthright role, and representative test data. Attribute owners confirm what a value means, how often it changes, and what empty or placeholder values look like. Role owners confirm which access a population should receive and which requires an approval step instead of automatic assignment. Test data should include movers, leavers, contractors, and edge cases such as people with two positions, so that rules are checked against realistic records without using production personal data in non-production environments. Ask the partner to list these inputs in the statement of work.
Can an internal identity team build birthright rules without a partner?
Yes, if the team has midPoint experience with expressions, object templates, and role design, and can test changes in a non-production environment. The harder parts are rarely the syntax. They are agreeing on the role model, tracing how a change in an HR attribute reaches target systems, and building regression tests that catch unintended grants. Teams that lack this experience often start with a narrow set of rules and bring in outside help for the role model and test design. A partner review can also be useful before the first production run. The right choice depends on existing skills, staffing, and how many rules the organization expects to maintain.
How does birthright provisioning change after a midPoint upgrade?
Upgrades can change how expressions, autoassignment, and object templates behave, so birthright rules should be part of every upgrade test plan. midPoint publishes release-specific notes, and the 4.11 release adds a GUI editor for role auto-assignment, including the condition, which may affect how teams review or maintain existing rules. Check the midPoint releases page for support windows, and confirm the upgrade path with Evolveum before moving between versions. Keep a regression suite of known joiner and mover cases, run it on a copy of production, and compare resulting assignments before and after the upgrade.
Which birthright rules are risky to automate at all?
Rules that grant privileged, financial, or regulated access are usually poor candidates for fully automatic assignment, even when the HR attribute looks reliable. Automatic grants that cannot be reviewed, or that depend on a single attribute that changes often, create cleanup work and audit findings. A safer pattern is to automate baseline access (email, directory group, standard collaboration tools) and route elevated access through an approval step or a certification cycle. Confirm this split with the owners of each target system and the compliance team before writing any rule.
How an HR change flows into birthright assignments
The flow starts when an HR record changes in the authoritative source and midPoint imports it into the user object. The object template then runs, and role autoassignment expressions decide which birthright roles the person should hold. Each resulting assignment drives provisioning to connected target systems. Before any of this reaches production, the same change should be replayed through a preview or test run, so the team can see which assignments would be added or removed and why.
The path from an HR attribute change to provisioned birthright access, with the preview step.
How DeployOpen scopes birthright provisioning work
Birthright provisioning is scoped in writing before any expression is written. DeployOpen starts with a review of the HR attributes that will drive access, such as employment type, department, location, job code and manager, and records for each one whether it is populated reliably, how often it changes and who owns its accuracy. The output is an attribute mapping review that the client signs off, because a birthright rule is only as trustworthy as the field it reads. Scope also fixes which target systems are in the first wave and which are deferred, so the catalogue does not grow silently during the build.
The second stage produces a birthright role catalogue: each default role, the condition under which it is autoassigned, the expression or object template that evaluates that condition, and the owner who approves changes to it. Implementation follows the catalogue, with role autoassignment expressions in roles and any object template assignments documented alongside. The written scope also sets the test plan and a pilot population, so the client's identity and security teams know what will be checked, by whom, and what evidence the pilot will produce before anything reaches production.
Engagements are fixed-scope: scope, deliverables and timelines are agreed in writing before work starts, and a quote follows from that written scope rather than from a published price list. Ongoing support, rule changes after HR process updates and continuous testing of birthright logic are available as retainers. Ask the partner to name which items are one-time deliverables and which recur, and to confirm how changes to the catalogue are requested and tested once the pilot closes.

