Skip to content

feature request: users api query param includeRoles #7292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
terion-name opened this issue Apr 14, 2025 · 0 comments
Open

feature request: users api query param includeRoles #7292

terion-name opened this issue Apr 14, 2025 · 0 comments
Assignees
Labels
feature-request Something cool or not cool status/planned We decided to do it.

Comments

@terion-name
Copy link

What problem did you meet?

If an application logic relies on user roles, when it fetches users it usually requires their roles. When you fetch one user make another api call to get it's role is not a big deal, but if you are listing users - it's a problem.

Describe what you'd like Logto to have

add an includeRoles query param to /api/users and /api/users/{id} and return users with attached roles in one shot

@gao-sun gao-sun added the feature-request Something cool or not cool label Apr 16, 2025
@gao-sun gao-sun added the status/planned We decided to do it. label May 8, 2025 — with Linear
@gao-sun gao-sun assigned simeng-li and gao-sun and unassigned simeng-li May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Something cool or not cool status/planned We decided to do it.
Development

No branches or pull requests

3 participants