p2-inc / keycloak-orgs

Single realm, multi-tenancy for SaaS apps
Other
362 stars 65 forks source link

Question: Fetching organizations for currently authenticated user doesnot reveal domains like fetching all organizations. For purpose? #182

Closed jaakkom closed 4 months ago

jaakkom commented 4 months ago

Hello, Noticed that fetching organizations for currently authenticated user has different payload what fetching all organizations gives:

image VS

image

Is there some reason behind this? I think it would be useful to have all same fields in both apis.

xgp commented 4 months ago

The “me” endpoint was originally meant to be a brief representation of the logged in users’ orgs, rather than a full representation.

If it is possible to extend the object without breaking backwards compatibility, we’d look at a PR that takes a “briefRepresentation=false” flag in that method and returns more data.