Skip to main content

Get Tenants for User

Get all tenants that a specific user is associated to.

caution

This endpoint has been deprecated and will be phased out at the end of 2023. Please update any existing usages of it to use the Query endpoint instead.

Endpoint

GET /v1/users/:userId/tenants

Request

curl "https://api.warrant.dev/v1/users/15ksdf87a23g/tenants" \
-H "Authorization: ApiKey YOUR_KEY"

Response

[
{
"tenantId": "dunder-mifflin",
"name": "Dunder Mifflin"
},
{
"tenantId": "In2sgYSjVG8etPU2",
"name": "tenant-name"
}
]