Skip to main content
Admin › Users › Organizations
Organization management reflects your company’s department structure in Cloosphere to systematically control resource access.
  • Sync with Microsoft Entra ID (Azure AD), Keycloak, or Google Workspace, or build the org structure directly via JSON Import.
Organization management screen

Organization management screen


Organizational Hierarchy

Cloosphere’s organization system consists of hierarchical Organizations and Organizational Units.

Organizational Unit Types

OUs distinguish purpose via the type field.
In the current production environment, most observed organizational units are of type department.

Organizations vs Groups

Cloosphere offers two user grouping mechanisms — groups and organizations. Use them appropriately by purpose.
Use groups for permission control (what they can do) and organizations for access control (what they can see). The two systems can be used together.

Creating Organizations

Organizations and OUs are created only via sync.
  • There’s no UI to create them manually.
Supported sync methods: See Microsoft Entra ID Sync and JSON Import below for details.

Microsoft Entra ID Sync

Sync organizational structure automatically with Microsoft Entra ID (Azure AD).

Prerequisites

Microsoft OAuth setup is required for Entra ID sync. Set the following environment variables on the server.

Running Sync

1

Open the sync dialog

Click the sync button () next to the search box at the top-right of the organization list to open the Organization Sync dialog.
2

Pick a data source

In the Data Source dropdown, pick the sync method — JSON Import (default) · Microsoft Graph · Keycloak · Google Workspace. For Entra ID integration, pick Microsoft Graph.When Microsoft Graph is selected, choose which items to fetch.
Microsoft Graph sync options

Sync options when Data Source = Microsoft Graph

3

Run sync

Click the Sync button at the bottom of the dialog.
Organization Sync dialog

Organization Sync dialog — data source selection (default: JSON Import)

4

Verify results

Verify the synced OU tree and member mapping.

JSON Import

In environments without Entra ID, import the org structure via JSON data directly.

Organization-based Access Control

Use OUs to control resource (agents, KBs, databases, etc.) access scope.

Setting OU Permissions on Resources

In each workspace resource’s Access settings, specify the OU.

Permission Inheritance

Permissions granted to upper OUs are inherited by lower OUs.
When resource access is set on an upper OU, all members of lower OUs automatically receive the same permission.

Example Use


Per-OU Resource Permission View

Admins can review the resource permissions assigned to a specific OU. The items shown are:
A single consolidated list of a unit’s resource permissions is not included in the current release. For now, check permissions individually via each resource’s Access settings (Knowledge Base, Agents, Databases, etc.) by whether an OU is assigned.

Per-Organization Usage Limits

In the OU detail panel, set daily token limits.
This feature requires admin settings to have usage limits (enable_usage_limit) enabled.
Usage limits can be set at four levels — global, user, group, organization. When set at multiple levels, the most permissive (highest) value applies.

Per-OU Guardrails

Connect guardrails to OUs to auto-validate AI inputs/outputs of users in that OU.
  • Configure in the Guardrail Settings of the OU detail panel.

Application Priority

Guardrails can be set at multiple levels — to users, the sum across all levels is applied.
Global guardrails are configured in Admin > Code Gateway. Turning off Inherit global guardrails for an OU exempts it from global guardrail influence.

Sync Provider List

The four currently supported sync providers:

FAQ

  1. Verify Azure App Registration has Directory.Read.All permission.
  2. Verify environment variables MICROSOFT_CLIENT_ID, MICROSOFT_CLIENT_SECRET, MICROSOFT_CLIENT_TENANT_ID are correctly set.
  3. Check server logs for detailed error messages.
Not necessarily. Permission management alone is fine with groups. Use organizations additionally when you need department-based access control with Entra ID integration.
Deleting an OU doesn’t delete the user accounts in it. Only the resource access permissions configured for that OU are removed.

User Management

User list, roles/groups, permission settings

Guardrails

Input/output safety policies applied per organization unit

Usage

Usage and cost monitoring by organization and user

Deployment Checklist

OIDC environment variables required for Keycloak/Entra sync