Add List user's organizations id and roles to the token

Hello @tyf thank you !

But with a “regular login” is there a way to get the list of all organizations that the user belongs and add it to the token like I askeb above?

"organizations: [{org1Id: 12345, roles:[“Regular-User, Admin”]}, {org2Id: 131231241, roles:["READER, SUPER ADMIN]}…]

1 Like