We are using the compare user feature on our request screen and we want to filter the available entitlements based on the requestor. The scenario we currently have is two sets of users in different AD domains and we want the entitlements for only the requestors domain to be displayed if selecting a user from the other domain. We don't want to filter out one domain completely or filter out users from the other domain as they will still have other app entitlements that they will need to compare. Is there a way to use an if/else statement (basically, if requestor is in domain A hide entitlements from domain B) to determine what entitlements display in the compare user screen?
It would be lot simpler if you have a AD domain attribute associated with the user and a custom attribute on each application that goes along with this domain criteria.
Alternatively a user can have domain prefix which can then be used in the form entitlement table