Exclude specific EntityID from attribute-match policy requirement rule?

Purcell, Brian K purcell at uthscsa.edu
Mon Feb 14 22:49:03 UTC 2022


Is there a way to exclude a specific EntityID from an attribute-match policy requirement rule in the attribute filter policy?  Specifically, I'm trying to exclude one specific EntityID that matches on the following policy because I need to do a custom EPPN for them that converts it to all upper case.

<AttributeFilterPolicy id="FedServices">
	<PolicyRequirementRule xsi:type="EntityAttributeExactMatch"
		attributeName="https://federation.org/entity-category"
		attributeValue="https://federation.org/category/FedServices" />
	<AttributeRule attributeID="eduPersonPrincipalName">
		<PermitValueRule xsi:type="ANY" />
	</AttributeRule>
	<AttributeRule attributeID="email">
		<PermitValueRule xsi:type="ANY" />
	</AttributeRule>
</AttributeFilterPolicy>

I tried adding a second filter policy for that EntityID that uses the custom upper case EPPN, but that causes two instances of EPPN to be in the SAML response with the lower case one coming first, and it looks like the application consumes the first one in the response.  So I tried moving that specific policy higher in attribute-filter.xml than the FedServices policy, but that didn't make any difference.  I also tried to add a NOT rule to the FedServices policy to exclude that specific EntityID, but the policy would not reload with that.  It's quite possible I had the syntax wrong.

The metadata for this SP is coming to us via federation metadata, so I'm not able to remove the attribute from the metadata.

Thanks in advance for any suggestions.

--Brian Purcell
IT Systems Architect
UT Health San Antonio



More information about the users mailing list