Skip to content

Filter list tenants by the tenantId #2307

@cagri-dursun09

Description

@cagri-dursun09

Is your feature request related to a problem? Please describe.
We are currently integrating Permify via gRPC for our authorization infrastructure. In our use case, we often need to retrieve multiple tenants by their tenant IDs in a single request. The current ListTenants gRPC endpoint does not support filtering by a list of tenant IDs, which leads to unnecessary overhead — we either fetch all tenants and filter them manually on the client side or make multiple individual requests.

Describe the solution you'd like
We would like to enhance the ListTenants gRPC endpoint to support filtering by a list of tenant IDs. This would allow clients to request only the relevant tenants in a single, efficient call by passing a repeated field of tenant IDs as a filter parameter.

Describe alternatives you've considered

  • Fetching all tenants and performing filtering on the client side — this is inefficient, especially when there are many tenants. And also listTenants endpoint doesn't allow to list all tenants in one call so we need to call multiple times to reach all tenants on the client side to be able to filter.
  • Making multiple gRPC calls for each tenant ID — this leads to unnecessary round-trips and increased latency.

Additional context
We are using gRPC-based integration with Permify and would like this feature to be added to the gRPC service definitions. This feature would improve performance and simplify tenant management logic on the client side.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions