FindAttr(AttrProperty: String, SubjectAttribute: Variant, AttrValue: Variant, ResultProperty: String)
AttrProperty. Attribute property specified to the right of the period in the attribute name. For example, the left part of the SUBJECT.NAME attribute before the period determines the SUBJECT group of subject attributes, and the right part after the period specifies the NAME attribute. The parameter is used to filter attributes in the collection by the specified property
SubjectAttribute. Attribute of the SUBJECT.GROUPS subject. List of groups, which contain the user.
AttrValue. Numeric or string value to be searched that corresponds to the specified attribute property in the AttrProperty.
ResultProperty. The property of the found attribute, which value should be obtained.
It searches for attribute by the specified property in the list of the groups, which contain the user, and returns value of the specified property of found attribute.
Formula | Result |
= FindAttr("NAME", SUBJECT.GROUPS, "ADMIN", "NAME") | The function returns the ADMIN value if the list of the groups, which contain the user, contains name of the ADMIN group. |
= FindAttr("NAME", SUBJECT.GROUPS, "ADMIN", "SID") | The function returns SID of the ADMIN group if the list of the groups, which contain the user, contains name of the ADMIN group. |
See also:
Functions Available in Expression Editor | Attribute-Based Access Control | IABACUtils.FindAttr