Official Plugins (Kuzzle v2.x)
multi-tenancy v1.x
2

listProfiles #

Lists available profiles for a group of tenant.


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/_/multi-tenancy/tenant/:tenantId/_listProfiles
Method: GET

Other protocols #

Copied to clipboard!
{
  "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.

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