Documentation base URLs use placeholder https://{your-tenant}.sso.id. Log in to show your tenant or custom domain.
Log in for Your Tenant URL
Chapter 6B — Sub-Departments & Regional Branches (Tier 4 Cascade)

Organization Units (OUs) & Department-Level Governance

Large enterprise customers rarely have a flat directory. Use Organization Units ( /organization-units) to subdivide a B2B Organization into departments, subsidiaries, or regional branches — each capable of overriding Branding, Security, Tokens, MFA, and Identity Connections at Tier 4 of the Policy Inheritance Cascade.

Enterprise Architecture Story: GlobalBank's Trading Desk vs. Seasonal Contractors

Why One Organization Policy Wasn't Enough for GlobalBank

After onboarding GlobalBank Corp as an Organization (/organizations), GlobalBank's CISO came back with a nuanced requirement:

  • OU 1 — GlobalBank Institutional Trading Desk: Must authenticate via hardware FIDO2 YubiKeys + TOTP step-up (requireMultipleFactors: true), restricted to the bank's New York & London office IP ranges, with 10-minute access tokens.
  • OU 2 — GlobalBank External Audit Contractors: Authenticate via a separate Contractor Okta SAML domain (assignToOrganizationUnitOnly: true) using Email + Authenticator App MFA.
Solved at Tier 4: CloudPulse created two Organization Units under the GlobalBank Organization in /organization-units. Both OUs inherited GlobalBank's co-branded logo and theme from Tier 3, while overriding only their specific MFA, IP geofencing, and IdP connection rules at Tier 4.

1. How Tier-4 Organization Unit Inheritance Works

When a login request includes organizationUnitId, SSO.ID evaluates settings using the 4-Tier Cascade:

Automatic Upward Inheritance

If an Organization Unit leaves overrideBranding = false, it automatically inherits the parent Organization's branding (or the Application/Tenant branding if the Organization also inherits).

Surgical Department Overrides

Toggle overrideGeneral, overrideBranding, overrideSecurity, overrideTokens, or overrideMfa on the Organization Unit to customize policies exclusively for that department.

Flow Diagram Tier-4 Sub-Department Policy Inheritance Flow
flowchart TD T["Tenant Baseline (/settings)"] --> APP["Application (/applications)"] APP --> ORG["Parent B2B Organization (/organizations)"] ORG --> OU1["Default Department OU (Full Inheritance)"] ORG --> OU2["High-Security OU (overrideMfa = true, FIDO2 Mandatory)"] ORG --> OU3["Contractor OU (overrideTokens = true, 1-Hour Token Max)"] OU1 --> TOK["Effective Claims (org_id + ou_id)"] OU2 --> TOK OU3 --> TOK
Organization Units inherit policies from the Tenant, Application, and parent Organization, selectively overriding department MFA or IdP connections.
https://cloudpulse.us.beta.sso.id/organization-units Click to zoom
Organization Units console at /organization-units for Tier-4 sub-department and regional policy overrides.
Organization Units console at /organization-units for Tier-4 sub-department and regional policy overrides.

2. Managing Connections, Groups, MFA & Users in an OU

1

Create an Organization Unit (POST /api/organization-units)

Navigate to /organization-units, click Add Organization Unit, select the parent Organization, and enter the OU Name and Description.

2

Assign OU-Exclusive Connections (assignToOrganizationUnitOnly)

In the OU Setting Dialog → Connections tab (POST /api/organization-units/{id}/connections), link department-specific OAuth2/OIDC/SAML connections.

3

Configure OU MFA Factors, Groups & Users

Manage department-level MFA factors (PUT /api/organization-units/{id}/factors), link user cohorts (POST /api/organization-units/{id}/groups), and assign users (POST /api/organization-units/{organizationUnitId}/users).

3. Passing organizationUnitId at Login Time

GET https://{your-tenant}.sso.id/auth/oauth/authorize (With Tier-4 Organization Unit)
https://{your-tenant}.sso.id/auth/oauth/authorize?
  client_id=vvzmXqvkLfnMDtUJPChKn
  &response_type=code
  &redirect_uri=https%3A%2F%2Fapp.cloudpulse.io%2Fcallback
  &scope=openid%20profile%20email%20roles
  &organizationId=6c4a8f12-9b30-4e11-8d2a-112233445566
  &organizationUnitId=9d8e7f6a-5b4c-3d2e-1f0a-998877665544
  &code_challenge=E9Melhoa2OwvFrGMTJgu...
  &code_challenge_method=S256

4. Organization Unit REST API Reference & AI Prompt

Method Endpoint Description
GET / POST https://{your-tenant}.sso.id/api/organization-units Lists all Organization Units or creates a new OU under a parent Organization (PUT / DELETE /api/organization-units/{id}).
GET / POST / DELETE https://{your-tenant}.sso.id/api/organization-units/{id}/connections Manages identity connections assigned to the Organization Unit.
GET / POST / DELETE https://{your-tenant}.sso.id/api/organization-units/{id}/groups Manages user groups linked to the Organization Unit.
GET / PUT https://{your-tenant}.sso.id/api/organization-units/{id}/factors Gets or updates MFA factors enforced for the Organization Unit.
GET / POST / DELETE https://{your-tenant}.sso.id/api/organization-units/{organizationUnitId}/users Manages users and role assignments within the Organization Unit.

Tier-4 Organization Unit Hierarchy & Policy API Specifications

Below is the complete parameter-level specification for every endpoint in this module. Tenant context is automatically resolved from the signed Bearer JWT token claims or the tenant domain URL (no custom tenant header is required).

GET https://{your-tenant}.sso.id/api/organization-units
Bearer JWT

Lists all Tier-4 Organization Units (departments, regional divisions, or subsidiaries) across the tenant. To list OUs scoped to a single parent Organization, call GET /api/organization-units/organizationunit/organization/{organizationId}.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
Response Fields & Schema
Field Type Description
organizationUnitId string (UUID) Unique Organization Unit UUID.
organizationId string (UUID) Parent Tier-3 Organization UUID.
name string Department or division display name.
organizationUnitStatus integer Status code (1 = Active, 0 = Inactive).
isDefaultAuthenticationEnabled boolean Whether standard directory password login is permitted.
logo string Optional department logo override.
primaryColor string Optional hex primary color override.
organizationUnitSettings string (JSON) Serialized Tier-4 policy override JSON.
Sample Request
curl -X GET "https://{your-tenant}.sso.id/api/organization-units" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..."
Expected Response 200 OK
[
  {
    "organizationUnitId": "ou_11223344-5566-4778-8990-aabbccddeeff",
    "organizationId": "org_778899aa-bbcc-4dde-9ff0-112233445566",
    "name": "Treasury & Wire Operations",
    "organizationUnitStatus": 1,
    "isDefaultAuthenticationEnabled": false
  }
]
POST https://{your-tenant}.sso.id/api/organization-units
Bearer JWT

Creates a new Tier-4 Organization Unit under a parent Organization with granular MFA, IP geofencing, or session policy overrides. Use PUT /api/organization-units/{id} to update and DELETE /api/organization-units/{id} to delete.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
organizationId Body string (UUID) Required Parent Tier-3 Organization UUID.
name Body string Required Name of the Organization Unit (e.g., Defense R&D Division, EU Finance Ops).
organizationUnitStatus Body integer Optional Status: 1 = Active (default), 0 = Suspended.
isDefaultAuthenticationEnabled Body boolean Optional Whether standard password login is enabled for this OU.
logo Body string Optional Optional custom logo URL or base64 data URI.
primaryColor Body string Optional Optional hex primary color.
backgroundColor Body string Optional Optional hex background color.
organizationUnitSettings Body string (JSON) Optional Serialized JSON specifying Tier-4 overrides (overrideMfa, requireMultipleFactors, overrideSecurity, allowedIpRanges).
Response Fields & Schema
Field Type Description
organizationUnitId string (UUID) Generated Organization Unit UUID (pass as &organizationUnitId=... to /oauth/authorize).
organizationId string (UUID) Parent Organization UUID.
name string Organization Unit name.
createdOn string (ISO 8601) Creation timestamp.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/organization-units" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "organizationId": "org_778899aa-bbcc-4dde-9ff0-112233445566",
    "name": "Treasury & Wire Operations",
    "organizationUnitStatus": 1,
    "isDefaultAuthenticationEnabled": false,
    "organizationUnitSettings": "{\"overrideMfa\":true,\"requireMultipleFactors\":true,\"overrideSecurity\":true,\"allowedIpRanges\":\"198.51.100.0/24\"}"
  }'
Expected Response 201 Created
{
  "organizationUnitId": "ou_11223344-5566-4778-8990-aabbccddeeff",
  "organizationId": "org_778899aa-bbcc-4dde-9ff0-112233445566",
  "name": "Treasury & Wire Operations",
  "organizationUnitStatus": 1,
  "createdOn": "2026-11-19T12:38:00Z"
}
POST https://{your-tenant}.sso.id/api/organization-units/organizationunit/user
Bearer JWT

Assigns a User to an Organization Unit. Use GET /api/organization-units/organizationunit/{id}/users to list OU members, and DELETE /api/organization-units/organization/{organizationId}/organizationunit/{organizationunitId}/user/{userId} to remove a member.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
organizationId Body string (UUID) Required Parent Organization UUID.
organizationUnitId Body string (UUID) Required Target Organization Unit UUID.
userId Body string (UUID) Required User UUID to assign to this OU.
Response Fields & Schema
Field Type Description
organizationUnitId string (UUID) Organization Unit UUID.
organizationId string (UUID) Parent Organization UUID.
userId string (UUID) Assigned User UUID.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/organization-units/organizationunit/user" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "organizationId": "org_778899aa-bbcc-4dde-9ff0-112233445566",
    "organizationUnitId": "ou_11223344-5566-4778-8990-aabbccddeeff",
    "userId": "usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f"
  }'
Expected Response 200 OK
{
  "organizationUnitId": "ou_11223344-5566-4778-8990-aabbccddeeff",
  "organizationId": "org_778899aa-bbcc-4dde-9ff0-112233445566",
  "userId": "usr_9f8e7d6c-5b4a-3c2d-1e0f-9a8b7c6d5e4f"
}
POST https://{your-tenant}.sso.id/api/organization-units/organizationunit/connection
Bearer JWT

Links an Identity Connection to a specific Tier-4 Organization Unit. Similarly, link groups via POST /api/organization-units/organizationunit/group and enforce MFA factors via POST /api/organization-units/organizationunit/factor.

Request Parameters
Parameter Type Required Description & Constraints
Authorization Header string Required Bearer JWT access token (Bearer eyJhbG...). Tenant context is resolved automatically from the token claims or request domain URL.
organizationId Body string (UUID) Required Parent Organization UUID.
organizationUnitId Body string (UUID) Required Target Organization Unit UUID.
connectionId Body string (UUID) Required Connection UUID to link to this OU.
enableAutoProvisioning Body boolean Optional Enable JIT provisioning directly into this Organization Unit.
Response Fields & Schema
Field Type Description
organizationUnitId string (UUID) Organization Unit UUID.
connectionId string (UUID) Linked Connection UUID.
enableAutoProvisioning boolean JIT provisioning status.
Sample Request
curl -X POST "https://{your-tenant}.sso.id/api/organization-units/organizationunit/connection" \
  -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIs..." \
  -H "Content-Type: application/json" \
  -d '{
    "organizationId": "org_778899aa-bbcc-4dde-9ff0-112233445566",
    "organizationUnitId": "ou_11223344-5566-4778-8990-aabbccddeeff",
    "connectionId": "con_44910a2b-11c2-4d3e-9f00-112233445566",
    "enableAutoProvisioning": true
  }'
Expected Response 200 OK
{
  "organizationUnitId": "ou_11223344-5566-4778-8990-aabbccddeeff",
  "connectionId": "con_44910a2b-11c2-4d3e-9f00-112233445566",
  "enableAutoProvisioning": true
}
AI Agent Prompt Model Multi-Department Hierarchy & OU-Scoped Step-Up Authentication
You are an enterprise IAM architect. Implement a **Department / Division Management Service** using **SSO.ID v2 Organization Units** (`https://{your-tenant}.sso.id/api/organization-units`).

1. Create a backend service method `createHighSecurityDepartment(organizationId, departmentName, allowedIpRanges)` that calls `POST https://{your-tenant}.sso.id/api/organization-units` with `overrideMfa: true`, `requireMultipleFactors: true`, and `overrideSecurity: true`.
2. Enable FIDO2 Passkeys and TOTP on that OU via `PUT https://{your-tenant}.sso.id/api/organization-units/{ouId}/factors`.
3. Create a frontend helper `initiateDepartmentStepUpLogin(organizationId, organizationUnitId)` that redirects the user to `https://{your-tenant}.sso.id/auth/oauth/authorize` with both `organizationId` and `organizationUnitId` query parameters.