Skip to Content
Peretyn
Reference

Subjects of a type that have a relation on the object.

POST
/v1/list-users

Authorization

bearerAuth
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
object*
relation*string
user_filters*array<>
contextual_tuples?
consistency?Consistency
Value in"MINIMIZE_LATENCY""HIGHER_CONSISTENCY"

Response Body

Subjects.

application/json
  1. response
users?array<>
Example Request
curl -X POST 'http://localhost:8080/v1/list-users' \  -H 'Content-Type: application/json' \  -d '{  "object": {},  "relation": "string",  "user_filters": [    {}  ]}'
Example Response
{  "users": [    {      "object": {        "type": "string",        "id": "string"      },      "userset": {        "type": "string",        "id": "string",        "relation": "string"      },      "wildcard": {        "type": "string"      }    }  ]}