webiny-admin-tenancy-catalog
$
npx mdskill add webiny/webiny-js/webiny-admin-tenancy-catalogManage tenant access and root status in Webiny admin.
- Enables agents to check and modify tenant permissions.
- Depends on Webiny tenant manager and admin APIs.
- Uses context and hooks to determine current tenant state.
- Returns boolean flags and tenant entry data for decisions.
SKILL.md
.github/skills/webiny-admin-tenancy-catalogView on GitHub ↗
---
name: webiny-admin-tenancy-catalog
context: webiny-api
description: >
admin/tenancy — 9 abstractions.
---
# admin/tenancy
## How to Use
1. Find the abstraction you need below
2. Read the source file to get the exact interface and types
3. Import: `import { Name } from "<importPath>";`
## Abstractions
---
**Name:** `IsNotRootTenant`
**Import:** `import { IsNotRootTenant } from "webiny/admin/tenancy"`
**Source:** `@webiny/tenant-manager/admin/IsRootTenant.tsx`
---
**Name:** `IsRootTenant`
**Import:** `import { IsRootTenant } from "webiny/admin/tenancy"`
**Source:** `@webiny/tenant-manager/admin/IsRootTenant.tsx`
---
**Name:** `IsTenant`
**Import:** `import { IsTenant } from "webiny/admin/tenancy"`
**Source:** `@webiny/tenant-manager/admin/IsRootTenant.tsx`
---
**Name:** `TenantContext`
**Import:** `import { TenantContext } from "webiny/admin/tenancy"`
**Source:** `@webiny/app-admin/features/tenancy/abstractions.ts`
---
**Name:** `TenantEntry`
**Kind:** type
**Import:** `import type { TenantEntry } from "webiny/admin/tenancy"`
**Source:** `@webiny/tenant-manager/admin/types.ts`
---
**Name:** `useCurrentTenant`
**Import:** `import { useCurrentTenant } from "webiny/admin/tenancy"`
**Source:** `@webiny/tenant-manager/admin/CurrentTenant/useCurrentTenant.ts`
---
**Name:** `useDisableTenant`
**Import:** `import { useDisableTenant } from "webiny/admin/tenancy"`
**Source:** `@webiny/tenant-manager/admin/DisableTenant/index.ts`
---
**Name:** `useEnableTenant`
**Import:** `import { useEnableTenant } from "webiny/admin/tenancy"`
**Source:** `@webiny/tenant-manager/admin/EnableTenant/index.ts`
---
**Name:** `useTenantContext`
**Import:** `import { useTenantContext } from "webiny/admin/tenancy"`
**Source:** `@webiny/app-admin/presentation/tenancy/useTenantContext.ts`
---
More from webiny/webiny-js
- testerUse when running tests. Shows how to run tests for a single package, including OpenSearch (ddb-os) tests when applicable.
- webiny-admin-aco-catalog>
- webiny-admin-architect>
- webiny-admin-build-params-catalog>
- webiny-admin-catalog>
- webiny-admin-cms-catalog>
- webiny-admin-configs-catalog>
- webiny-admin-env-config-catalog>
- webiny-admin-form-catalog>
- webiny-admin-graphql-client-catalog>