Skip to content

rule AttributePresenceRule

Ryan Newington edited this page Jun 6, 2016 · 2 revisions

<rule xsi:type="sshma:rule-AttributePresenceRule"> element

The AttributePresenceRule type is used to determine if the specified attribute is present on the export object.

The <rule> element must contain the following attributes;

XML Attribute Name Description Allowed Values
xsi:type The type of rule This value must be sshma:rule-AttributePresenceRule
id The unique ID for the rule. This is used to reference the rule in the [[command commands]] object
attribute The attribute to evaluate Any attribute defined in the schema that is present on the class of object being evaluated
operator The operator to use during the evaluation Either IsPresent or NotPresent

Example

<rule xsi:type="sshma:rule-AttributePresenceRule" id="AccountNameIsPresent" attribute="accountName" operator="IsPresent"/>

The example shown above passes evaluation if the accountName attribute is present.

Clone this wiki locally