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


Namespace

OpenFGA\Responses


Source

View source code


Implements


Related Classes


Methods

getObjects

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.

View source


Returns

array&lt;int, string&gt; — Array of object identifiers the user has access to

⚠️ **GitHub.com Fallback** ⚠️