Get User in a Tenant

Get a specific user by id, if that users is a member of the tenant. If not, the response will be 404.

Get User Request
cURL
GET- /workspaces/:workspaceSlug/databases/:databaseName/tenants/:tenantId/users/:userId
curl 'https://api.thenile.dev/workspaces/<string>/databases/<string>/tenants/<string>/users/<string>' \
--header 'Authorization: Bearer <string>'

The response includes all information for the user.

Get User Response
200
{
  "id": "018b6216-27a1-7e2b-aa83-67d7ba500982",
  "tenants": [
    "018b61ec-af9e-77e5-b27f-77239cd4a0bc"
  ],
  "email": "an.important.user@mail.tld",
  "name": "Important User",
  "givenName": null,
  "familyName": null,
  "picture": null
}