ABAC works in tandem with Relationship-Based Access Control, or ReBAC. When creating a relation, you can specify a query parameter
that will return users based on arbitrary attributes of your definition. For example, if you have a country attribute on your user, you can
specify a query that will return all users that have the same country to create a relation.
Check out the ReBAC Docs to learn about creating a schema and relations.
The query field mentioned above takes a AuthzUserQuery type which is defined as follows:
And the relation that takes this query is defined as follows:
Finally, the code to create a relation with a query is as follows: