API Responses ListObjectsResponseInterface - evansims/openfga-php GitHub Wiki
Interface for object listing response objects. This interface defines the contract for responses returned when listing objects that a user has access to in OpenFGA. This is the inverse of permission checking - instead of asking "can this user access this object?," it asks "what objects can this user access?" Object listing is particularly useful for building user interfaces that need to display only the resources a user can access, such as file listings, document repositories, or administrative dashboards.
Table of Contents
OpenFGA\Responses
- ListObjectsResponse (implementation)
- ListObjectsRequestInterface (request)
public function getObjects(): array<int, string>
Get the array of object identifiers the user has access to. Returns an array of object identifiers that the queried user has the specified relationship with. Each string represents an object ID of the requested type that the user can access through the specified relation.
array<
int,
string>
— Array of object identifiers the user has access to