Attributes - Group Identity

currentUserGroup - Group Identity Attributes

Attributes on User Group Name

String Operators widely used with name attributes

The basic range of string operations serves to resolve the string attribute into a boolean outcome. These operators are inserted after the string attribute using the (.) notation e.g. currentUserGroup.name.contains("Corporate")

OperatorDefinition
containsUsed to see if the string contains the defined value
matchesThis is used to perform regular expression-based matching on the string
existsSome proper value exists for this string (i.e. source passed a value that was not an empty string)
notExistsThe string is either Null or Empty
isNullchecks if the string is Null i.e. it was not passed from the source
isNotNullchecks if the string is NOT Null

Name

Profile: currentUserGroup
Attribute: name
Meaning: User Group's Name (e.g., "Corporate Account ABC", "Family Group", "Marketing Team")
Type: String
Sub-Attribute: NA
Format: currentUserGroup.[(Attribute).(Sub Attribute)].[ Operators ][VALUE]
Syntax: currentUserGroup.name[Operator][Value]

ProfileAttributesSub-AttributesOperatorExample
currentUserGroupnameNAcontainscurrentUserGroup.name.contains("Corporate")
currentUserGroupnameNAmatchescurrentUserGroup.name.matches("Team")
currentUserGroupnameNA==currentUserGroup.name == "Marketing Division"
Example 1: Check if the user group name has substring "Corp".
Expression:currentUserGroup.name.contains("Corp")
Example 2: Check if the user group name is "Enterprise Team"
Expression: currentUserGroup.name == "Enterprise Team"
Example 3: Check if the user group name contains "family"
Expression:currentUserGroup.name.contains("family")

External ID (externalId)

Profile: currentUserGroup
Attribute: externalId
Type: integer/Alphanumeric
Sub-Attributes: NA
Operator: contains, exists, isEmpty, isNotNull, isNull, matches, notExists, "=="
Meaning: External identifier for the user group. For example, to target user groups whose external ID contains certain identifiers (say "CORP_123"), use: currentUserGroup.externalId.contains("CORP_123")
Syntax: currentUserGroup.externalId[Operators][Value]

Profile

Attribute

Sub-Attribute

Operator

Meaning

currentUserGroup

externalId

NA

contains

Contains - used to see if the string contains the defined value
Example: currentUserGroup.externalId.contains("CORP")

currentUserGroup

externalId

NA

exists

Exists - Some proper value exists for this string (i.e. source passed a value that was not an empty string)
currentUserGroup.externalId.exists()

currentUserGroup

externalId

NA

isEmpty

isEmpty - Similar to notExists
currentUserGroup.externalId.isEmpty("")

currentUserGroup

externalId

NA

isNotNull

isNotNull - checks if the string is NOT Null i.e. some value was passed from source (even an empty string counts)
currentUserGroup.externalId.isNotNull("")

currentUserGroup

externalId

NA

isNull

isNull - checks if the string is Null i.e. it was not passed from source
currentUserGroup.externalId.isNull()

currentUserGroup

externalId

NA

notExists

notExists - The string is either Null or Empty

currentUserGroup

externalId

NA

==

( == ) returns true if both operands have the same value; otherwise, it returns false. The not-equal-to operator ( != ) returns true if the operands don't have the same value; otherwise, it returns false.
currentUserGroup.externalId == "CORP_123"
currentUserGroup.externalId != ""

currentUserGroup

externalId

NA

matches

Matches - this is used to perform regular expression based matching on the string.
currentUserGroup.externalId.matches("CORP_.*")

Example 1: Check if the current user group's external ID contains a string "ENT"
Expression: currentUserGroup.externalId.contains("ENT")
Example 2: Check if the current user group external ID exists
Expression: currentUserGroup.externalId.exists()
Example 3: Check if the current user group external ID equals "CORP_456"
Expression: currentUserGroup.externalId == "CORP_456"

Created Date (createdDate)

Profile: currentUserGroup
Attribute: createdDate
Type: Date
Sub-Attributes: dateDiff, day, dayOfMonth, daysDiff, daysDiffFromString, isAfter, isBefore, isHourBetween, isNotNull, isNull, isTimeBetween, isValid, isWeekday, isWeekend, minutesDiff, month, year
Meaning: Date when the user group was created. Useful for targeting groups based on their creation timeline or age.
Syntax: currentUserGroup.createdDate.[Sub-Attribute][Parameters]

Date Sub-Attributes and Operators

Sub-AttributeDefinitionExample
isAfterChecks if the creation date is after a specified date and timecurrentUserGroup.createdDate.isAfter(2025,5,1,0,0,0)
isBeforeChecks if the creation date is before a specified date and timecurrentUserGroup.createdDate.isBefore(2024,12,31,23,59,59)
isNotNullChecks if the creation date has a value (is not null)currentUserGroup.createdDate.isNotNull()
isNullChecks if the creation date is nullcurrentUserGroup.createdDate.isNull()
yearReturns the year of the creation datecurrentUserGroup.createdDate.year == 2024
monthReturns the month of the creation datecurrentUserGroup.createdDate.month == 5
dayReturns the day of week of the creation datecurrentUserGroup.createdDate.day == "Monday"
dayOfMonthReturns the day of the month of the creation datecurrentUserGroup.createdDate.dayOfMonth == 15
isWeekdayChecks if the creation date falls on a weekdaycurrentUserGroup.createdDate.isWeekday(true)
isWeekendChecks if the creation date falls on a weekendcurrentUserGroup.createdDate.isWeekend(false)
daysDiffReturns the difference in days between creation date and another datecurrentUserGroup.createdDate.daysDiff(2025,5,27)
daysDiffFromStringReturns the difference in days between creation date and a date stringcurrentUserGroup.createdDate.daysDiffFromString("2024-01-01")
minutesDiffReturns the difference in minutes between creation date and another datecurrentUserGroup.createdDate.minutesDiff(2025,5,27,10,30,0)
dateDiffReturns the difference between creation date and another datecurrentUserGroup.createdDate.dateDiff(2025,5,27)
isHourBetweenChecks if the creation date's hour falls between specified hourscurrentUserGroup.createdDate.isHourBetween(9,17)
isTimeBetweenChecks if the creation date's time falls between specified timescurrentUserGroup.createdDate.isTimeBetween(9,0,0,17,0,0)
isValidChecks if the creation date is a valid datecurrentUserGroup.createdDate.isValid(true)
Example 1: Check if the user group was created after May 1st, 2025
Expression: currentUserGroup.createdDate.isAfter(2025,5,1,0,0,0)
Example 2: Check if the user group was created in 2024
Expression: currentUserGroup.createdDate.year == 2024
Example 3: Check if the user group was created on a weekend
Expression: currentUserGroup.createdDate.isWeekend(true)
Example 4: Check if the user group was created more than 30 days ago
Expression: currentUserGroup.createdDate.daysDiff(2025,5,27) > 30

Usage Examples - Combined Conditions

Example 1: Write a rule to check if the user group name contains "Corporate" and was created after May 1, 2024
Expression: currentUserGroup.name.contains("Corporate") && currentUserGroup.createdDate.isAfter(2024,5,1,0,0,0)
Example 2: Write a rule to check if the user group has an external ID and the name is not null
Expression: currentUserGroup.externalId.exists() && currentUserGroup.name.isNotNull(true)