Skip to main content

User Lifecycle & Offboarding

When a user leaves the organization, is deprovisioned from your identity provider, or needs to be archived, the platform provides a structured offboarding process that handles both the user account and all resources they own.

The Problem: Orphaned Resources​

Every resource in the platform (apps, workflows, workspaces, AI models, etc.) has an owner. When a user is removed without handling their resources, those workloads become orphaned -- still consuming Kubernetes pods, storage, and compute but inaccessible to the departed user. The platform solves this with asset-aware archival for both manually managed and directory-synced users.

Archiving a User (Manual)​

Step 1: Navigate to User Management​

  1. Click Users in the ADMIN section of the sidebar
  2. Find the user you want to archive
  3. Click the ... actions menu and select Archive

Step 2: Review Owned Resources​

The archive modal displays a summary of all resources owned by the user:

Resource TypeDescription
AppsDeployed AI applications
WorkspacesDevelopment workspaces
WorkflowsAutomation workflows
ProjectsData science projects
Data VolumesPersistent storage volumes
Add-onsManaged databases and services
Data SourcesExternal data connections
PromptsPrompt library entries
A/B TestsActive A/B testing configurations
RoutersAI gateway routers
AI ModelsRegistered AI models
GuardrailsContent safety guardrails
ML ModelsML workbench models
Knowledge BasesLibrary knowledge bases and their documents
Pools and ImprintsLibrary pools and Imprints the user made (the organization's own pool stays with the organization)
Skills, Rules, Prompts, MemoriesLibrary records, with their versions
Library ArtifactsLibrary artifacts and every stored version
TasksAgent tasks, with their fire records
PreferencesAgent preferences
Governance Solutions, Governance PoliciesSolutions and policies the user owns (a solution with its requests and evidence)
STAN Sessions, Conversations, Memories, Skills, ArtifactsThe user's own STAN chats (with their attachments), archived conversations, STAN memories, STAN skills and STAN artifacts

Library records, agent primitives and STAN records go through the same asset action as every other resource: transferred or deleted. STAN records belong to the account, so they are moved or deleted only when the account itself is archived, never when someone only leaves or is removed from an organization.

Step 3: Choose an Asset Action​

Choose what happens to the user's resources. There are two choices, delete or transfer, and neither is selected for you: Archive User stays disabled until you pick one (and, for a transfer, the person). A user who owns nothing needs no choice. Only their user record is kept either way, so FinOps and analytics stay valid:

ActionWhat HappensBest For
Transfer to a chosen personEvery resource is reassigned to the person you pick from the list, shown as "Name (email)". That is any active admin or developer (on Strongly Cloud, any active developer of the user's organization, never an admin). The server refuses anyone else.Handing off to a direct replacement
Delete all resourcesPermanently deletes everything the user owns, each through its own delete and under your authority as the administrator archiving them (never as the user): their running workspaces, apps, add-ons, agents, workflows and models are stopped and removed, volumes are deleted with their data, projects with their jobs and runs, and their Library records, agent primitives and STAN records with their versions and stored files. Their Imprints are deleted first, so the records they locked can be deleted too. A/B tests are soft-deleted (marked as deleted but prediction data is preserved). The dialog lists what will be deleted, by type, and you must confirm before it goes ahead.When resources are no longer needed
Organization Isolation

A transferred preference whose key the new owner already has becomes history behind theirs (theirs stays the one in use), and a transferred STAN artifact whose title they already use is renamed "title (from previous owner)".

A transfer moves ownership and access together: the receiver owns each resource and is taken off its share lists, as they reach it as its owner; everyone else it was shared with keeps their access. The resources stay in their organization, where they run: no namespace or add-on data moves. Every user has their own organization, so the receiver can be any active admin or developer and everything the user owns moves, whatever organization it sits in. On Strongly Cloud, transfers stay within the user's organization, keeping its isolation and secret boundaries.

FinOps follows the transfer from the moment it is made: the cost of every transferred resource, running workloads included, is the new owner's from then on, with no restart or redeploy, and everything it cost before stays with the original owner. In By owner, the hour of the transfer is split at the transfer time, so nothing is missed or counted twice.

Hand some resources on, delete the rest

To hand particular resources to different people and delete everything else, reassign those first: every resource's Permissions tab ends with Reassign owner, which hands it to another user in the organization (the previous owner stays on as a collaborator where the resource can be shared, and a running workload is restarted to run as its new owner). Then archive the user with Delete all resources.

Step 4: Confirm​

After selecting an asset action, click Archive User. The system will:

  1. Execute the chosen asset action (transfer or delete), then archive every organization the user leaves with no active member and remove its Kubernetes namespace: their own organization (on Strongly Cloud, one whose other members are all gone). An organization that still holds resources (transferred resources stay in their organization, where they run) stays active. An archived organization is never shown in Admin Organizations or its counts
  2. Set the user's account to archived and inactive
  3. Clear all login tokens (forces immediate logout from all sessions) and delete their API keys
  4. Archive their memberships: organization memberships, app-user entries and team seats are marked archived (never deleted), and Stripe stops collecting the app subscriptions they pay for
  5. Stop their budgets: every budget scoped to them and every budget of an organization archived with them is paused, recorded as stopped because the user was archived (Budgets)
  6. Stop their part in governance: their pending approval requests are withdrawn, and they stop being a reviewer; each request they could review is decided by the reviewers left, or sent to the platform administrators when none is left (Stages and gates)
  7. Record metadata: who archived the user, when, and what asset action was taken

Users are never deleted, only archived, so analytics and FinOps history keep who did what. An archived user is in no member list, seat count, team bill or app-user count, and belongs to no organization until they are restored. Every way an account is archived works like this: the archive dialog, the archive toggle, a member removed from an organization on Strongly Cloud, directory sync, and a user deleting their own account.

What Gets Recorded​

The following metadata is stored on the archived user's profile for audit purposes:

  • archivedAt -- timestamp of archival
  • archivedBy -- admin who performed the action
  • assetAction -- which asset action was chosen (transfer or delete; empty when they owned nothing)
  • assetsTransferredTo -- target user ID (if transferred)

Unarchiving a User​

An archived user is never shown in User Management, and the REST API, the SDKs and STAN never list, return or unarchive one. An account is reactivated by directory sync (when the identity provider reactivates it, below), or by a platform administrator by hand: in User Management, Add User with the archived user's email (or Invite it on a Team page) answers that the email belongs to an archived user and offers Unarchive, which reactivates them.

The user's account is reactivated and they can log in again. The organizations archived with them are restored, with their Kubernetes namespace. The memberships archived with them are restored (on Strongly Cloud, a membership of an organization that is itself archived is suspended with its other members until the organization is restored), their team seats go back on the bill, Stripe collects their app subscriptions again, and they are issued the API keys their role gives them. The budgets their archive stopped resume (one you paused or resumed yourself since stays as you set it), they review approval gates again, and their withdrawn approval requests are pending again. Note that if resources were transferred or deleted during archival, those changes are not reversed -- the user starts with whatever resources remain.

Directory Sync (Okta / Azure AD)​

For organizations using an external identity provider, the platform can automatically detect when users are deprovisioned and archive them with a configurable default asset action.

How It Works​

  1. The platform periodically queries your identity provider's API for user status changes
  2. Users with profile.authProvider = 'saml' are matched by email address to IdP users
  3. If an IdP user is marked as DEPROVISIONED, SUSPENDED, or DELETED, the corresponding Strongly user is automatically archived
  4. If an IdP user is reactivated to ACTIVE and the Strongly user is archived, they can optionally be auto-unarchived

Supported Providers​

ProviderAPI UsedStatus Mapping
OktaOkta Users API (/api/v1/users)DEPROVISIONED, SUSPENDED, DELETED trigger archival
Azure AD (Microsoft Entra ID)Microsoft Graph API (/v1.0/users)accountEnabled: false triggers archival

Setting Up Directory Sync​

  1. Navigate to Admin > Security Settings
  2. Click the Directory Sync tab
  3. Configure the following:
SettingDescription
Identity ProviderSelect Okta or Azure AD
API EndpointYour IdP URL (e.g., https://your-org.okta.com for Okta, https://graph.microsoft.com for Azure AD)
API TokenRead-only API token for user listing. Encrypted at rest using AES-256
Sync IntervalHow often to check for changes (15 min to daily)
Default Asset ActionRequired: what happens to resources when a user is auto-archived, either transfer them to a person you choose (any active admin or developer; on Strongly Cloud, any active developer of the organization) or delete them. Saving without one is refused, and a sync whose settings name neither archives no one (each such user is listed with the error in Sync History). Choosing delete asks you to confirm: every archived user's workloads are then stopped and deleted with nobody confirming each user
Auto-archive deprovisionedEnable/disable automatic archival of deprovisioned users
Auto-unarchive reactivatedEnable/disable automatic unarchival when IdP users are reactivated

Testing the Connection​

Click Test Connection to verify the API endpoint and token are working. The platform will attempt to list users from your IdP and report the count.

Manual Sync​

Click Sync Now to trigger an immediate sync without waiting for the next scheduled interval. After completion, a summary shows:

  • Users archived
  • Users unarchived
  • Users skipped (no action needed)
  • Errors encountered

Sync History​

The Sync History table at the bottom of the Directory Sync tab shows a log of all sync runs. Click the eye icon on any row to see detailed per-user actions (who was archived, unarchived, or had errors).

Required IdP Permissions​

Okta:

  • Create an API token at Security > API > Tokens
  • The token needs read-only access to the Users API
  • Ensure the token's service account has the Read-only Administrator role or equivalent

Azure AD:

  • Register an application in Azure AD
  • Grant User.Read.All permission (application type)
  • Generate a client secret
  • The API endpoint should be https://graph.microsoft.com

REST API​

Get User Asset Summary​

GET /api/v1/users/:id/assets

Returns a count of all resources owned by the user. Useful before archiving to understand the impact.

Scope: users:admin

Response 200 OK

{
"userId": "user_789",
"userName": "Sample Person",
"userEmail": "sample@example.com",
"organizationId": "org_xyz",
"isSSO": false,
"assets": {
"apps": 3,
"workspaces": 2,
"workflows": 5,
"projects": 1,
"dataVolumes": 0,
"addons": 1,
"datasources": 2,
"prompts": 8,
"abTests": 0,
"routers": 1,
"aiModels": 4,
"guardrails": 2,
"mlModels": 0,
"total": 29
}
}

Archive User with Asset Handling​

POST /api/v1/users/:id/archive

Archive a user. Their resources are transferred (transferTo) or deleted (deleteResources: true); when they own anything one of the two is required (400 validation-error otherwise). A user who owns nothing needs neither.

Scope: users:admin

Request Body

ParameterTypeRequiredDescription
transferTostringWhen they own anything and deleteResources is not trueUser ID of who receives their resources: one of the transferRecipients of GET /api/v1/users/:id/assets (any active admin or developer; on Strongly Cloud, any active developer of the user's organization)
deleteResourcesbooleanWhen they own anything and transferTo is not giventrue deletes everything they own. Not with transferTo

Example Request

{
"transferTo": "user_456"
}

Response 200 OK

{
"data": {
"_id": "user_789",
"username": "Sample Person",
"email": "sample@example.com",
"role": "developer",
"assetAction": "transfer",
"assetResult": {
"success": true,
"transferred": {
"apps": 3,
"workflows": 5,
"workspaces": 2,
"total": 29
},
"transferredTo": "user_456"
}
},
"meta": { "requestId": "req_abc123" }
}

Best Practices​

  1. Transfer to the person taking over -- they own the resources and their cost from the transfer on
  2. Review asset summary first -- always check what the user owns before choosing an action, especially before deleting
  3. Enable directory sync for enterprise -- automates the offboarding process and reduces the window between IdP deprovisioning and Strongly archival
  4. Set sync interval based on security requirements -- for SOC 2 compliance, consider a 15-30 minute interval to minimize the gap
  5. Monitor sync history -- check for errors regularly, especially after IdP configuration changes
  6. Don't delete if unsure -- transfer the resources to the person taking over, who can review and delete them later. Deletion is permanent for most resource types
  7. Archive within 24 hours of departure -- SOC 2 best practice for employee offboarding
STAN Integration

You can also archive users and manage assets via STAN:

STAN uses the same REST API endpoints documented above.