We are building a SaaS application and want to segregate data based on organizations associated with user log-in. Can I use the organization_id to match a user to a specific data set at login time?
The below community topic explains how to achieve this:
organizationquery string parameter to include the
org_idclaim in the ID Token when making the
/authorizerequest in your app:
inspect the value of the organization_id from either the ID Token or the Access Token, as explained in this document:
- use the organization_id as part of your application logic.