Official Plugins (Kuzzle v2.x)
Multi Tenancy v1.x
2

listSoftTenants #

Lists available soft-tenants for a user.


Query Syntax #

HTTP #

URL: http://kuzzle:7512/_/multi-tenancy/tenant/:tenantId/user/:_id/soft-tenant/_listSoftTenants
Method: GET

Other protocols #

{
  "controller": "multi-tenancy/user",
  "action": "listProfiles",
  "_id": "jean"
  "tenantId": "<tenant ID>",
}

Arguments #

  • _id: Id of the User
  • tenantId: Tenant ID

Response #

Returns an array containing the available soft-tenants for this tenant and user.

{
  "status": 200,
  "error": null,
  "action": "add",
  "controller": "multi-tenancy/user",
  "requestId": "<unique request identifier>",
  "result": [
      { "name": "college", "id": "college", "metadata": {
        "geolocation":{
            "lat":43,"lon":7
        }
      }
      },
      { "name": "highschool", "id": "highschool", },
    ]
}