sparkles2026-04-13: Schema Service - custom instance scopes, owner, and type-scoped access

Overview

circle-info

This functionality is still under development and not yet fully complete. Updates to the Management Dashboard for this area are currently in progress.

The Schema Service now exposes finer-grained access for custom instances, returns ownership metadata on custom instances, and automatically provisions type-specific scopes when a custom entity type is created.

When a new custom schema type is created the platform provisions scopes for that type so clients can read and manage custom instances of that type using the custom.{lowerCaseType}_* pattern.

Custom instance APIs accept one of several scopes:

  • Read:

    • schema.custominstance_read

    • custom.{lowerCaseType}_read

    • custom.{lowerCaseType}_read_own

  • Manage:

    • schema.custominstance_manage

    • custom.{lowerCaseType}_manage

    • custom.{lowerCaseType}_manage_own

Tenant-wide scopes apply to all custom types, while type-specific scopes restrict access to a single custom entity type.

Custom instance responses include a read-only owner object indicating who created the instance: type (EMPLOYEE, CUSTOMER, or SERVICE), userId, and for customer owners an optional legalEntityId.

Updated Endpoints

Endpoint
Description

Creating a new type provisions scopes for reading and managing custom instances of that type.

When the upsert creates a new type, scopes are provisioned for that type’s custom instances.

Authorization now accepts type-specific read / read_own scopes; each item includes an owner property.

Authorization now accepts type-specific read / read_own scopes; each item includes an owner property.

Authorization now accepts type-specific read / read_own scopes; each item includes an owner property.

Authorization now accepts type-specific manage / manage_own scopes.

Authorization now accepts type-specific manage / manage_own scopes.

Authorization now accepts type-specific manage / manage_own scopes.

Authorization now accepts type-specific manage / manage_own scopes.

Authorization now accepts type-specific manage / manage_own scopes.

Authorization now accepts type-specific manage / manage_own scopes.

Authorization now accepts type-specific manage / manage_own scopes.

Known problems

There are no known problems.

Last updated

Was this helpful?