API Responses ListUsersResponseInterface - evansims/openfga-php GitHub Wiki
Interface for user listing response objects. This interface defines the contract for responses returned when listing users that have a specific relationship with an object in OpenFGA. This is the inverse of permission checking - instead of asking "can this user access this object?," it asks "which users can access this object?" User listing is particularly useful for building administrative interfaces, access reports, and user management features that need to display who has access to specific resources.
Table of Contents
OpenFGA\Responses
- ListUsersResponse (implementation)
- ListUsersRequestInterface (request)
public function getUsers(): UsersInterface
Get the collection of users with the specified relationship. Returns a type-safe collection containing the user objects that have the queried relationship with the specified object. Each user represents an entity that has been granted the specified permission or relationship.
UsersInterface
— The collection of users with the relationship