I have an App Registration in Azure AD which has App Roles (eg: role1, role2). Against this app multiple environments connect to it and get a role back. Is it in someway possible to specify a role based on who connects to it?
So if User X connects from Env 1, I wanna send back Role1. If User X connects from Env 2, I wanna send back Role2. Already tried with having multiple groups, but they just get added to the roles array and you can't really see which role belongs to which group.
Output is this: roles=["Role1","Role2"]
Ideally I would have something like roles=["env1:Role1","env2:Role2"]
or even better just 1 role depending on the env.
So is it possible to have a distinction in your roles that you send back somehow?