Skip to documentation

Design system / Organisms

Organism / Management and configuration

TenantMasqueradeSelector

TenantMasqueradeSelector coordinates eligible-user selection, role filtering, justification, acknowledgement and optional elevated-session creation.

Admin masqueradeOrganism

Intent and composition

Opening its Dialog calls useTenantMasquerade's target-loading command. The same hook coordinates session-start feedback and submission. The selector requires the privileged product integration; it must not load eligible users inside public documentation.

Coordinated concerns: Role filtering, eligible-user selection, justification, acknowledgement, optional elevation and session-start feedback.

useTenantMasquerade owns loading/start lifecycle. The Dialog is a focused container; the selector inside coordinates an organism-sized workflow. Server operations enforce impersonation eligibility and auditing.

Authorized-context integration

Requires an authorized admin context and session operations. It is not mounted publicly: even opening the real selector loads eligible users. Its source and composition contract describe the workflow without a fake selector.

Supported inputs and ownership

TenantMasqueradeSelector input summary
InputResponsibility
tenantId / tenantName / adminDisplayNameAuthorized admin context and attribution copy.
useTenantMasqueradeLoads eligible targets and coordinates the real session-start operation.

This is an integration summary, not a replacement for the implementation's complete prop types. A disabled control or hidden destination does not enforce permission.

Using it in a page

Integrate the section through its supported props and context requirements. Routes supply permitted data; instances bind product copy and behavior; templates arrange slots. Keep feature hooks and operations with their feature owner. Generic layouts must not load business data or enforce product policy.

Implementation

Repository path: src/components/admin/masquerade/masqueradeControls.tsx

All organisms
Current components and theme tokens. Fictional example data. Source views refresh on deployment; authors maintain contract notes.