Join our Newsletter — 33% off our NHI Course
Governance, Ownership & Risk

Custom Code

← Back to Glossary
By NHI Mgmt Group Updated October 30, 2026 Domain: Governance, Ownership & Risk

Custom code is organisation-specific software written to bridge gaps between an IGA platform and the systems it must manage. It can solve integration problems, but it also creates maintenance burden, upgrade risk, and security review overhead. The more custom code a governance stack depends on, the harder it becomes to scale safely.

What Custom Code Means in an IGA Environment

Custom code is the glue that lets an identity governance and administration platform connect to applications, directories, HR systems, cloud services, and niche platforms the product does not handle natively. It often begins as a practical bridge, but it also becomes part of the governance surface: if the logic is brittle, outdated, or poorly owned, the IGA control plane can drift away from the systems it is supposed to govern.

The core issue is that custom code is rarely just an implementation detail. It can encode business rules, account mapping logic, entitlement transforms, and provisioning exceptions that determine whether access is created, modified, or removed correctly. As those rules accumulate, the integration layer starts to behave like critical infrastructure rather than an optional extension.

Why Custom Code Adds Technical Debt

Custom integrations create dependency on people who understand the code, the target system, and the historical reasons it exists. That raises maintenance cost every time the IGA platform upgrades, the downstream system changes its API, or a workflow needs to be adjusted. Even when the code works, it can become hard to test because the business logic is spread across scripts, connectors, and exception handling rather than in one controlled product path.

This debt matters because governance systems are supposed to be durable. The more custom behaviour sits outside the vendor-supported product model, the more an organisation inherits regression risk, undocumented assumptions, and slow recovery when an integration fails. In practice, a large amount of bespoke logic can turn a manageable platform into a fragile one.

Security and Control Implications of Bespoke Logic

Custom code expands the attack and failure surface because it may run with privileged access, handle secrets, or make trust decisions about identity data. A weak connector can create overprovisioning, missed deprovisioning, stale entitlements, or inconsistent approval enforcement. If secrets are embedded in scripts or deployment artifacts, the integration layer can also become a target in its own right.

Governance risk increases when bespoke logic is poorly reviewed or only understood by a small team. Changes made to “fix” a workflow can silently alter access outcomes across multiple systems, which makes assurance harder than in a standardised configuration model. In that sense, custom code is not only an engineering concern, it is also a control-quality concern.

How to Scale Safely When Customisation Is Unavoidable

Some custom code is unavoidable because no platform covers every application pattern, data model, or approval rule. The safer approach is to treat each custom component as governed software, with explicit ownership, testing expectations, version control, and retirement criteria. Where possible, the organisation should prefer supported connectors, declarative configuration, and standard interfaces over bespoke logic.

For a useful framework for this problem, practitioners can compare the integration to broader identity governance patterns described in NIST Cybersecurity Framework 2.0, especially around control ownership and resilience, and in NIST AI Risk Management Framework when automation logic affects trust decisions and operational oversight. For implementation depth on control design and secure custom workflows, NIST SP 800-53 Rev 5 Security and Privacy Controls is useful for mapping the surrounding control expectations.

Risk and Threat Considerations

Custom code becomes risky when it is the hidden dependency that decides who gets access, how quickly access is removed, or whether an integration fails open. A small defect can turn into broad privilege mismanagement, and a compromise of the codebase or deployment path can give an attacker a direct route into access workflows.

Failure mechanism: brittle bespoke logic, weak change control, or exposed secrets can cause incorrect provisioning, bypassed checks, or malicious modification of identity workflows.

Impact: organisations can end up with unauthorized access, delayed revocation, broken auditability, and a much harder remediation path after the issue is discovered.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0GV.PO-01 — Policies, Processes, and ProceduresCustom code in governance workflows depends on defined policy and process ownership.
PR.PS-03 — Configuration ManagementBespoke integration logic changes the governed configuration baseline for the access stack.
PR.AA-01 — Identity and Access ManagementCustom code often implements access decisions and provisioning logic in identity systems.
Recommendation — Define ownership and lifecycle rules for bespoke governance code so it stays supportable. Control changes to custom code through versioned baselines and review. Apply least-privilege access and controlled approvals to any code that affects identity workflows.
NIST SP 800-53 Rev 5CM-3 — Configuration Change ControlCustom code creates change-risk that must be controlled across upgrades and releases.
SA-10 — Developer Configuration ManagementBespoke code needs disciplined source control and build integrity to remain supportable.
AC-6 — Least PrivilegeCustom code often executes with elevated rights and must be constrained accordingly.
Recommendation — Require review and approval for every change to governance-related custom code. Manage custom code in controlled repositories with traceable baselines and releases. Restrict the privileges used by integration code to the minimum required.

Practitioner Guidance

Why practitioners should care: the main governance question is not whether custom code works today, but whether it remains supportable as the platform, connected systems, and business rules evolve. If a workflow can only be understood by a few engineers, it is already a scaling risk.

Governance implication: every bespoke component should have an owner, a review path, and a retirement plan, because the code is effectively part of the control environment. Treating it as disposable “glue” is how upgrade risk and security review debt accumulate.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 30, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org