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

get #

Gets a tenant's user

See also security:getUser

User can only act on tenant they belongs. The tenants array will be filtered accordingly to the requesting user tenant's.


Query Syntax #

HTTP #

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

Other protocols #

Copied to clipboard!
{
  "controller": "multi-tenancy/user",
  "action": "get",

  "_id": "<kuid>",
}

Arguments #

  • tenantId: Tenant ID
  • _id: User kuid

Response #

Returns the user.

Copied to clipboard!
{
  "status": 200,
  "error": null,
  "action": "get",
  "controller": "multi-tenancy/user",
  "requestId": "<unique request identifier>",
  "result": {
    "_id": "<kuid>",
    "content": {
      "profileIds": ["teacher-liia-moderator"],
      "tenants": [
        {
          "group": "teacher",
          "name": "liia",
          "index": "tenant-teacher-liia",
          "profiles": ["moderator"]
        }
      ]
    }
  }
}