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.
The Group Filter box appears only while Security Groups is on. Enter an OData filter expression to import specific groups only (optional).
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. On success the dialog reports counts as Synced N organization(s), M unit(s); if nothing was found, it suggests enabling different options.

Options for the other data sources

Switching Data Source to Keycloak or Google Workspace changes the option set as well.
The server URL and credentials are not entered on screen — they come from the OPENID_PROVIDER_URL · OAUTH_CLIENT_ID · OAUTH_CLIENT_SECRET environment variables.

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


Viewing the OU List

Selecting an organization expands its organizational units below, in hierarchy order.
The member list shows both members mapped by IdP sync and users auto-assigned via OAuth login; members without a Cloosphere account yet are marked Not registered.

Per-Organization Usage Limits

Per-OU token caps are managed under Admin > Settings > Models, not on the Organizations screen. They are set per model — there is no single cap that applies to an OU as a whole.
1

Turn usage limits on

Under Admin > Settings > Models, click the Token Limit button at the top to open the Token Limit Management dialog. Turn on Enable Usage Limit, and optionally set the default daily token limit and the action on exceeding (Warn / Block).
2

Expand a model

Once usage limits are on, each model row becomes expandable. Expanding shows that model’s base limit along with three override cards.
3

Set the org unit override

Among User overrides · Group overrides · Org unit overrides, open Org unit overrides and set per-OU caps. The number on each card is the count of overrides currently registered.
Usage limits can be set at four layers — global, user, group, and organizational unit. When several layers carry a value, the most permissive (highest) one applies, and if any layer is 0 (unlimited) that wins immediately. Overrides are designed to raise a cap, so you cannot shrink a higher-layer cap by entering a smaller value at a lower layer.

Per-OU Guardrails

A screen for attaching guardrails directly to an organizational unit is not available in the current release. OU rows carry only the member-count button.
Apply guardrails through these paths instead.
If you need guardrails at department granularity, map the OU to a group (see Group ↔ OU Mapping) and set the chat guardrail on that group — that is the route available today.

Deleting an Organization

The bottom of the Organizations screen has a Delete Organization area.
Deleting removes the organization and every organizational unit under it, permanently. This cannot be undone. Confirm the organization name in the dialog before proceeding. Member associations are removed as well — user accounts themselves are not deleted.

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

Groups & Permissions

Map OUs to groups to apply permissions and chat guardrails

Usage

Usage and cost monitoring by organization and user

Deployment Checklist

OIDC environment variables required for Keycloak/Entra sync