IABACUtils.FindAttr

Syntax

FindAttr(AttrProperty: String, SubjectAttribute: Variant, AttrValue: Variant, ResultProperty: String): Variant;

FindAttr(AttrProperty: string, SubjectAttribute: object, AttrValue: object, ResultProperty: string): object;

Parameters

AttrProperty. Attribute property,  specified to the right from the point in the attribute name. For example, for the SUBJECT.NAME attribute, the left part before the point specifies the group of the SUBJECT subjects attributes and the right part from the point specifies the NAME attribute property. Parameter is used to filter attributes in the collection by specified property

SubjectAttribute. TheSUBJECT.GROUPS subject attribute. The list of groups where the user is included.

AttrValue. Numeric or string found value corresponding to the specified attribute value in the AttrProperty parameter.

ResultProperty. The property of found attribute which value must be obtained.

Description

The FindAttr method searches for the attribute by specified property in the list of groups where the user is included.

Comments

The method returns value of the specified property of found attribute and it is used only in string view to set expression by which the additional condition to check access will be calculated, using the IExpression.AsString property.

To determine additional condition to check access, use the IABACRule.Condition property.

See also:

IABACUtils