Try our conversational search powered by Generative AI!

ADFS on multiple environment restrict access



We are using ADFS for EPiServer admin site login and it works perfectly fine.

I have followed this link to achieve ADFS login ->

We have multiple environments and want to restrict permissions for some users so that can only login to EPiServer test admin site and not production.

We have virtualroles in EPiServerFramrwork.config file e.g

      <add name="CmsAdmins" type="EPiServer.Security.MappedRole, EPiServer" roles="xxAdmin" mode="Any" />
where xxAdmin is added to the user in ADFS and then the user is CMS admin on all of the enivronments.
We have diiferent RelyPartyURI for each environment.
Whats the best way to restrict access to other environments ? 
Any help would be appreciated 
Edited, Oct 14, 2022 9:49
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.