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")
Operator | Definition |
---|---|
contains | Used to see if the string contains the defined value |
matches | This is used to perform regular expression-based matching on the string |
exists | Some proper value exists for this string (i.e. source passed a value that was not an empty string) |
notExists | The string is either Null or Empty |
isNull | checks if the string is Null i.e. it was not passed from the source |
isNotNull | checks 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]
Profile | Attributes | Sub-Attributes | Operator | Example |
---|---|---|---|---|
currentUserGroup | name | NA | contains | currentUserGroup.name.contains("Corporate") |
currentUserGroup | name | NA | matches | currentUserGroup.name.matches("Team") |
currentUserGroup | name | NA | == | 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 |
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 | NA | isEmpty | isEmpty - Similar to notExists |
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 | NA | isNull | isNull - checks if the string is Null i.e. it was not passed from source |
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 | NA | matches | Matches - this is used to perform regular expression based matching on the string. |
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-Attribute | Definition | Example |
---|---|---|
isAfter | Checks if the creation date is after a specified date and time | currentUserGroup.createdDate.isAfter(2025,5,1,0,0,0) |
isBefore | Checks if the creation date is before a specified date and time | currentUserGroup.createdDate.isBefore(2024,12,31,23,59,59) |
isNotNull | Checks if the creation date has a value (is not null) | currentUserGroup.createdDate.isNotNull() |
isNull | Checks if the creation date is null | currentUserGroup.createdDate.isNull() |
year | Returns the year of the creation date | currentUserGroup.createdDate.year == 2024 |
month | Returns the month of the creation date | currentUserGroup.createdDate.month == 5 |
day | Returns the day of week of the creation date | currentUserGroup.createdDate.day == "Monday" |
dayOfMonth | Returns the day of the month of the creation date | currentUserGroup.createdDate.dayOfMonth == 15 |
isWeekday | Checks if the creation date falls on a weekday | currentUserGroup.createdDate.isWeekday(true) |
isWeekend | Checks if the creation date falls on a weekend | currentUserGroup.createdDate.isWeekend(false) |
daysDiff | Returns the difference in days between creation date and another date | currentUserGroup.createdDate.daysDiff(2025,5,27) |
daysDiffFromString | Returns the difference in days between creation date and a date string | currentUserGroup.createdDate.daysDiffFromString("2024-01-01") |
minutesDiff | Returns the difference in minutes between creation date and another date | currentUserGroup.createdDate.minutesDiff(2025,5,27,10,30,0) |
dateDiff | Returns the difference between creation date and another date | currentUserGroup.createdDate.dateDiff(2025,5,27) |
isHourBetween | Checks if the creation date's hour falls between specified hours | currentUserGroup.createdDate.isHourBetween(9,17) |
isTimeBetween | Checks if the creation date's time falls between specified times | currentUserGroup.createdDate.isTimeBetween(9,0,0,17,0,0) |
isValid | Checks if the creation date is a valid date | currentUserGroup.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) |
Updated 3 days ago