Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Developer Guide

Extend OpenIAM — write Groovy scripts for provisioning, synchronization, reconciliation and batch work, and integrate with the REST API.

Applies to: OpenIAM 2026.8.1

This guide is for extending OpenIAM: writing the Groovy scripts that carry your organization's rules, and integrating other systems with the REST API.

It assumes you can write code, that you have a running OpenIAM deployment to work against, and that you have not read anything else about the product.

Start with Choose what you are building. It matches what you are trying to do to the pages that do it, in order.

What this guide covers

Area
Use it for

Groovy scripting

The platform's extension points — what value an attribute carries when an account is provisioned, how an inbound row maps onto a user, what happens when reconciliation finds a difference, and scheduled work

The REST API

Integrating another system with OpenIAM: creating and searching users, triggering provisioning, reading audit data

Groovy is where most customization happens. The API is how other systems talk to OpenIAM; scripts are how OpenIAM's own behavior is shaped. Most projects need both, and most start with scripts.

What this release of the guide covers

Groovy scripting is covered in full for the five extension points most projects use: policy map, transformation, validation and attributes, reconciliation, and batch. Provisioning pre- and post-processors, workflow scripts and access-management scripts are extension points this release does not yet document; the shipped scripts under conf/iamscripts/ are the reference for those in the meantime.

The REST API section covers the fundamentals — registering an OAuth client, authenticating, which response envelope each kind of endpoint returns, error handling and finding an operation — then the token lifecycle, the provisioning API that carries every change to a user, and a walkthrough that exercises them end to end.

Not covered here at all: building a connector and the connector SDK, the data model, branding, and per-language API walkthroughs. Administration — configuring managed systems, policies, workflows and campaigns — is the Administration Guide. Deploying the platform is the Installation Guide. Design decisions taken before configuration are in the Solution Architecture and Design Guide.

How this guide is written

Every class, method, path and version in these pages was read from the product source, not from earlier documentation. Where a page shows a shipped script, it is quoted from the scripts that ship under conf/iamscripts/ rather than written for the occasion.

Examples that would print a credential, or that would work only on one deployment, are not used. Where a value is yours to supply, the page says so and names it.

How commands and examples are written

Code you can copy appears in a fenced block. Values you supply appear as a named variable, set once at the top of a page:

Variable
What to set it to

OPENIAM_URL

The address your deployment is published on

OPENIAM_VERSION

The release you are developing against

SERVICE_ACCOUNT

The account your integration authenticates as

Angle brackets — <like this> — appear only where a value is illustrative rather than something you set once.

If you get stuck

Every page ends with a symptom table: what you see, what it means, what to do. Common errors collects the ones that span more than one page.

Last updated

Was this helpful?