POST
/
v1
/
tenants
/
{tenant_id}
/
permissions
/
lookup-entity-stream

The difference between this endpoint from direct Lookup Entity is response of this entity gives the IDs’ as stream. This could be useful if you have large data set that getting all of the authorized data can take long with direct lookup entity endpoint.

Path Parameters

tenant_id
string
required

Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \“[a-zA-Z0-9-,]+\“, max 64 bytes.

Body

application/json

PermissionLookupEntityRequest is the request message for the LookupEntity method in the Permission service.

context
object

Context encapsulates the information related to a single operation, including the tuples involved and the associated attributes.

continuous_token
string

continuous_token is an optional parameter used for pagination. It should be the value received in the previous response.

entity_type
string

Type of the entity to lookup, required, must start with a letter and can include alphanumeric and underscore, max 64 bytes.

metadata
object

PermissionLookupEntityRequestMetadata metadata for the PermissionLookupEntityRequest.

page_size
integer

page_size is the number of tenants to be returned in the response. The value should be between 1 and 100.

permission
string

Name of the permission to check, required, must start with a letter and can include alphanumeric and underscore, max 64 bytes.

subject
object

Subject represents an entity subject with a type, an identifier, and a relation.

Response

200 - application/json
error
object
result
object

PermissionLookupEntityStreamResponse is the response message for the LookupEntityStream method in the Permission service.