API Models UsersetUserInterface - evansims/openfga-php GitHub Wiki

Defines the contract for userset user specifications. A userset user represents a reference to users through a userset relationship, typically in the format "object#relation" where object is the entity and relation defines which users are included. This allows dynamic user groups based on relationships rather than static user lists. Use this when you need to reference users through relationship-based groups in your authorization model.

Table of Contents


Namespace

OpenFGA\Models


Source

View source code


Implements


Related Classes


Methods

getId

public function getId(): string

Get the object identifier in the userset reference. This represents the specific object instance that the userset refers to. For example, in "group:eng#member," this would return "eng."

View source


Returns

string — The object identifier


getRelation

public function getRelation(): string

Get the relation name in the userset reference. This represents the specific relation on the referenced object that defines the userset. For example, in "group:eng#member," this would return "member."

View source


Returns

string — The relation name


getType

public function getType(): string

Get the object type in the userset reference. This represents the type of object that the userset refers to. For example, in "group:eng#member," this would return "group."

View source


Returns

string — The object type


jsonSerialize

public function jsonSerialize(): array

View source


Returns

array

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