IT CanvassTalk to an advisor
Rules · LessonBy , SailPoint Trainer, 7 yrs · Published · IdentityIQ 8.4 · all levels

BeanShell basics

BeanShell essentials for SailPoint rules: syntax, the IdentityIQ API objects, logging and safe scripting patterns.

Quick answer

BeanShell essentials for SailPoint rules: syntax, the IdentityIQ API objects, logging and safe scripting patterns.

Key takeaways
  • BeanShell is uncompiled Java with the full IIQ API
  • context is your handle to read and save objects
  • Use QueryOptions and projection for efficient reads
  • Null-check, avoid heavy per-identity queries, log at debug

BeanShell in a nutshell

BeanShell runs Java without compilation. You can declare loosely typed variables, call Java classes, and use the full IdentityIQ API from inside a rule.

Key objects

context (SailPointContext) is your gateway to query and save objects; log writes to the server log; and rule-specific inputs like identity, account or link give you the data to work on.

Querying with context

Use context.getObjectByName, context.search and QueryOptions to read objects efficiently. Always project only the columns you need for performance.

Safe patterns

Null-check inputs, avoid heavy queries in per-identity rules, never commit unless required, and log at debug rather than printing to stdout.

Practice challenge

+0 XPStreak ×0
Question 1 of 1
Which object lets a rule query IdentityIQ data?

Frequently asked questions

What does the term BeanShell Basics refer to in SailPoint?
BeanShell runs Java without compilation. You can declare loosely typed variables, call Java classes, and use the full IdentityIQ API from inside a rule.
What is worth checking first with BeanShell Basics?
Null-check inputs, avoid heavy queries in per-identity rules, never commit unless required, and log at debug rather than printing to stdout.
Want this with a live instructor and a lab tenant?
SailPoint Developer training →
Already working on SailPoint and stuck on a live ticket?Get an expert SailPoint developer on screen-share to finish your daily tasks with you. Deliver on time, protect your reputation and your job. Monthly support only, no task-wise plans.Task assigned · no idea where to startStill stuck · your job on the lineExpert joins your screenDelivered on timeExplore On Job Support