Retrieve the organization from username

Hello,

We are currently building a system with chirpstack that includes the following relationship:

  • multiple organizations with multiple users and multiple applications.

I am currently looking for an efficient way to retrieve the organization from the username in order to retrieve the JWT from the rest api to alter it to include the organization name (for our backend purpose).

So far for now we are quering all users of each organization and testing for equality with the username.

Is there a more efficient way (through the REST api) to retrieve the organization from the username ?

Thank you,
Maxime

Solution: use the “host-server:8080/api/internal/profile” route to get that information

This stack amaze me day by day :slight_smile:

1 Like