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

listProfiles #

Lists available profiles for a group of tenant.


Query Syntax #

HTTP #

URL: http://kuzzle:7512/_/multi-tenancy/tenant/:tenantId/_listProfiles
Method: GET

Other protocols #

{
  "controller": "multi-tenancy/user",
  "action": "listProfiles",

  "tenantGroup": "teacher"
  "tenantId": "<tenant ID>",
}

Arguments #

  • tenantGroup: Tenant group
  • tenantId: Tenant ID

Response #

Returns an array containing the available profiles for this group of tenant.

{
  "status": 200,
  "error": null,
  "action": "add",
  "controller": "multi-tenancy/user",
  "requestId": "<unique request identifier>",
  "result": {
    "profiles": ["admin", "users", "moderator"]
  }
}