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 ?