openfga / openfga/api

Provide a way of distinguishing between user types

Open
#87 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
27
Forks
24
Avg merge
12d 6h
Merged PRs (30d)
1

Description

We don't have a good way to distinguish between different user types (user:x, group:x#member, and user:*) in a strongly typed way and so in ListObjects we are forced to do this:

https://github.com/openfga/openfga/blob/e9bd83df3f61550d1704e14abbb47a2474cb8abf/pkg/server/commands/connected_objects.go#L30C1-L83

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with pkg/server/commands/connected_objects.go at the linked lines and review how ListObjects currently distinguishes user:x, group:x#member, and user:*. Define the strongly typed representation needed by the API, then verify that ListObjects can distinguish all three user types without the current ad hoc handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, authorization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.