Customize and automate
Attach a Groovy script to an OpenIAM extension point, put work on a schedule, and find the contract and the shipped example for each.
Applies to: OpenIAM 2026.8.1
What this is, and when you need it
Almost everything OpenIAM does that is specific to your organization is a Groovy script attached to an extension point or a batch task on a schedule. There is no other customization layer in the administration surface: no rules designer for attribute calculation, no plug-in registry, no expression language beyond Groovy. This section is for the administrator who has to select the right extension point, attach a script to it, test it against a bounded object, put it on a schedule, promote it and roll it back. Every extension point is attached in one of exactly two ways — a system property holding a script reference, which is global to the installation, or a column on the object being configured, which is per-object — and knowing which of the two you are looking at is usually the whole diagnosis when a script is not running.
Start here
Create a Groovy script — versioning, compiling, testing and rolling back one script, whatever it is attached to.
Create a batch task — the other half of the section: running something on a schedule, and finding out what is already running.
Groovy script reference — where a script actually lives, every column that can hold a reference to one, and the sandbox allow-list.
Read Change configuration safely once before your first change. A script attached by a system property runs for the whole installation, so a syntax error in one breaks that operation everywhere, not on one managed system.
Choose your outcome
Create, version, compile, import, export, promote or roll back a script
Change what a feed asserts about a user
Know exactly what a synchronization transform, validation or attributes script may return
Run something on a schedule, or find out what is already running
Put an existing synchronization or reconciliation on a cron schedule
Every enabled batch task has stopped running at once
Calculate one target attribute
Wrap a whole provisioning operation, before or after it runs
Write a reconciliation population, query, match or command script
Validate or shape a field on the user form in Groovy
Resolve approvers or send workflow notifications from a script
Find out where a script is stored, which columns reference one, and which packages the sandbox allows
Start from a working example for any extension point
Look up a Groovy-typed system property and the script it ships with
Look up a shipped batch task's cron expression and whether it ships enabled
What this section does not own
Authoring against the Java APIs — the classes a script calls, the compiled-extension build, the test harness, the REST API — is the Developer Guide. This guide gives the Groovy contract for each supported administrative extension point and one working example of each; it does not document OpenIAM as an API.
Two extension points are not Groovy at all, and are worth naming so you do not go looking for a script. A batch task can run a named service method instead of a script — see Create a batch task. An approval flow's shape is a shipped BPMN 2.0 process definition, whose service tasks are compiled rather than scripted — see Approval flows and Shipped approval workflows.
The twelve handler columns on a managed system used by the Groovy Script connector are the Connector Configuration Guide's. They hold script paths rather than script ids, which is why Show References in the Groovy Manager reports such a script as unreferenced — see Groovy script reference before you delete anything on the strength of an empty reference list.
Last updated
Was this helpful?