We have a need to pass on a claim from ADFS 4.0 to a relying party based on the combination of Active Directory employee Id attribute and OU membership. I guess the best practice could be to use security group membership, but in our case groups are just not set up exactly right, hence this need.
For instance, if a person with employee Id VX224400 (employeeId AD attribute is set to VX224400) is present in OU=SAXTechs,DC=london,DC=fabrikam,DC=com
OU then the claim "LondonSAXTechs" should be added to the list of role claims being passed to RP.
In other words, the following should be in the list of claims on RP side:
http://schemas.microsoft.com/ws/2008/06/identity/claims/role | LondonSAXTechs
Not exactly sure how to do this using the claims rule language. Any help appreciated.