# PluginTenant_1

Type: object

Schema: [PluginTenant_1](https://sourcey-gauzy.pages.dev/api-reference/models/plugintenant-1/index.md)

- `deletedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `createdAt` (optional)
  Type: string, date-time
  
  The creation timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `updatedAt` (optional)
  Type: string, date-time
  
  The last update timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `id` (optional)
  Type: string

- `isActive` (optional)
  Type: boolean
  
  default: true

- `isArchived` (optional)
  Type: boolean
  
  default: false

- `archivedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `tenantId` (optional)
  Type: string

- `organizationId` (optional)
  Type: string

- `pluginId` (required)
  Type: string
  
  Plugin ID

- `enabled` (required)
  Type: boolean
  
  Whether the plugin is enabled for this tenant

- `scope` (required)
  Type: string
  
  Scope of the plugin (USER, ORGANIZATION, TENANT)
  
  enum: ["tenant","organization","user"]

- `autoInstall` (optional)
  Type: boolean
  
  Whether plugin can be installed automatically without user action
  
  default: false

- `requiresApproval` (optional)
  Type: boolean
  
  Whether plugin requires admin approval before installation
  
  default: true

- `isMandatory` (optional)
  Type: boolean
  
  Whether plugin is mandatory for all users in scope
  
  default: false

- `maxInstallations` (optional)
  Type: number
  
  Maximum number of installations allowed (-1 for unlimited, null for no limit)
  
  Example:
  
  ```json
  100
  ```

- `maxActiveUsers` (optional)
  Type: number
  
  Maximum number of active users allowed (-1 for unlimited, null for no limit)
  
  Example:
  
  ```json
  50
  ```

- `currentInstallations` (optional)
  Type: number
  
  Current number of installations
  
  default: 0
  
  Example:
  
  ```json
  25
  ```

- `currentActiveUsers` (optional)
  Type: number
  
  Current number of active users
  
  default: 0
  
  Example:
  
  ```json
  15
  ```

- `tenantConfiguration` (optional)
  Type: object
  
  Tenant-specific plugin configuration overrides
  
  Example:
  
  ```json
  {
    "branding": {
      "logo": "tenant-logo.png",
      "theme": "blue"
    },
    "features": {
      "advancedReporting": true
    },
    "limits": {
      "dailyUsage": 1000
    }
  }
  ```

- `preferences` (optional)
  Type: object
  
  Plugin preferences and UI customizations for this tenant
  
  Example:
  
  ```json
  {
    "defaultSettings": {
      "autoSave": true,
      "notifications": false
    },
    "uiCustomizations": {
      "hideAdvancedOptions": true
    }
  }
  ```

- `approvedAt` (optional)
  Type: string, date-time
  
  Timestamp when the plugin was approved for this tenant

- `isDataCompliant` (optional)
  Type: boolean
  
  Whether plugin data handling complies with tenant data policies
  
  default: true

- `complianceCertifications` (optional)
  Type: array
  
  List of compliance certifications applicable to this tenant
  
  Example:
  
  ```json
  [
    "SOC2",
    "GDPR",
    "HIPAA"
  ]
  ```
  
  Items:
    Type: string

- `approvedById` (optional)
  Type: string
  
  ID of the user who approved the plugin

- `plugin` (required)
  Type: unknown
  
  The plugin this configuration applies to
  
  allOf:
    Reference: [Plugin_1](https://sourcey-gauzy.pages.dev/api-reference/models/plugin-1/index.md); Type: object

- `approvedBy` (optional)
  Type: unknown
  
  User who approved the plugin for this tenant
  
  allOf:
    Reference: [User](https://sourcey-gauzy.pages.dev/api-reference/models/user/index.md); Type: object

- `settings` (optional)
  Type: array
  
  Plugin settings specific to this tenant
  
  Items:
    Reference: [PluginSetting](https://sourcey-gauzy.pages.dev/api-reference/models/pluginsetting/index.md); Type: object

- `subscriptions` (optional)
  Type: array
  
  Active subscriptions for this plugin tenant
  
  Items:
    Reference: [PluginSubscription_1](https://sourcey-gauzy.pages.dev/api-reference/models/pluginsubscription-1/index.md); Type: object

- `allowedRoles` (optional)
  Type: array
  
  Roles explicitly allowed to access this plugin
  
  Items:
    Reference: [Role](https://sourcey-gauzy.pages.dev/api-reference/models/role/index.md); Type: object

- `allowedUsers` (optional)
  Type: array
  
  Users explicitly allowed to access this plugin
  
  Items:
    Reference: [User](https://sourcey-gauzy.pages.dev/api-reference/models/user/index.md); Type: object

- `deniedUsers` (optional)
  Type: array
  
  Users explicitly denied access to this plugin
  
  Items:
    Reference: [User](https://sourcey-gauzy.pages.dev/api-reference/models/user/index.md); Type: object