---
title: Charmhub | Deploy Tenant Service Operator using Charmhub - The Open Operator
  Collection
description: Deploy the latest version of Tenant Service Operator as a Kubernetes
  Operator on any cloud.
url: https://charmhub.io/tenant-service/actions
---

# Tenant Service Operator

[prod-identity-charmhub-bot-2](https://charmhub.io/publisher/prod-identity-charmhub-bot-2 "View all packages from prod-identity-charmhub-bot-2")

* [prod-identity-charmhub-bot-2](https://charmhub.io/publisher/prod-identity-charmhub-bot-2 "View all packages from prod-identity-charmhub-bot-2")

Platform:

edge 5

```
juju deploy tenant-service --channel edge
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

* [activate-tenant](https://charmhub.io/tenant-service/actions#activate-tenant)
* [create-tenant](https://charmhub.io/tenant-service/actions#create-tenant)
* [deactivate-tenant](https://charmhub.io/tenant-service/actions#deactivate-tenant)
* [delete-tenant](https://charmhub.io/tenant-service/actions#delete-tenant)
* [get-access-token](https://charmhub.io/tenant-service/actions#get-access-token)
* [invite-user](https://charmhub.io/tenant-service/actions#invite-user)
* [list-tenant-users](https://charmhub.io/tenant-service/actions#list-tenant-users)
* [list-tenants](https://charmhub.io/tenant-service/actions#list-tenants)
* [provision-user](https://charmhub.io/tenant-service/actions#provision-user)
* [update-tenant](https://charmhub.io/tenant-service/actions#update-tenant)
* [update-user-role](https://charmhub.io/tenant-service/actions#update-user-role)

[Learn about actions >](https://juju.is/docs/juju/action)

* activate-tenant

  Enable a disabled tenant.

  Params

  + tenant-id
    string

    ID of the tenant to activate.

  Required

  tenant-id
* create-tenant

  Create a new tenant.

  Params

  + name
    string

    Name of the tenant to create.

  Required

  name
* deactivate-tenant

  Disable an active tenant.

  Params

  + tenant-id
    string

    ID of the tenant to deactivate.

  Required

  tenant-id
* delete-tenant

  Delete a tenant.

  Params

  + tenant-id
    string

    ID of the tenant to delete.

  Required

  tenant-id
* get-access-token

  Generate a JWT token for accessing the tenant management APIs.

  This action requires the oauth integration to be established and ready.
* invite-user

  Send an invitation email to join a tenant.

  Params

  + email
    string

    Email address of the user to invite.
  + role
    string

    Role to assign (e.g. admin, member).
  + tenant-id
    string

    ID of the tenant.

  Required

  tenant-id,
  email,
  role
* list-tenant-users

  List all users in a tenant.

  Params

  + page-size
    integer

    Maximum number of results to return per page.
  + page-token
    string

    Token to retrieve the next page of results.
  + tenant-id
    string

    ID of the tenant.

  Required

  tenant-id
* list-tenants

  List all tenants.

  Params

  + page-size
    integer

    Maximum number of results to return per page.
  + page-token
    string

    Token to retrieve the next page of results.
* provision-user

  Directly add a user to a tenant without an invitation flow.

  Params

  + email
    string

    Email address of the user to provision.
  + role
    string

    Role to assign (e.g. admin, member).
  + tenant-id
    string

    ID of the tenant.

  Required

  tenant-id,
  email,
  role
* update-tenant

  Update a tenant's name.

  Params

  + name
    string

    New name for the tenant.
  + tenant-id
    string

    ID of the tenant to update.

  Required

  tenant-id,
  name
* update-user-role

  Update a user's role within a tenant.

  Params

  + role
    string

    New role for the user.
  + tenant-id
    string

    ID of the tenant.
  + user-id
    string

    ID of the user.

  Required

  tenant-id,
  user-id,
  role
