Hi,
Is there a way to populate the JWT with the tenant name? As far as I know, the place to add additional information to the JWT is the 'JWT Populate' lambda. In there I can access the user object. However that only holds the tenant-id, not the tenant-name.
Workarounds which I see:
- Store the tenant-name in the user data (feels unclean and we need to make sure it happens each time when a new user gets created)
- Translate the uuid to the tenant name in the service which validates the JTW (adds overhead there)
Is there an easy way to achieve my goal or do you see another workaround?