Send Conditions

Send conditions allow to to set a condition for sending a notification.

This is especially useful if you only require a notification when a specific condition has been met.

Here are a few examples:

  • Send a notification when the job title changes
  • Send a notification when the manager changes
  • Send a notification when a user is added to a group
  • Send a notification when any attribute is changed 

All of these use cases can be met using the special methods:

  • AttributeChanged - Used to check if an attribute has changed
  • AddedToGroup - Used to check if a user was added to a group
  • RemovedFromGroup - Used to check if a user was removed from a group

AttributeChanged 

The AttributeChanged method can be called to check if any or a specific attribute has changed.

Example

If you want to check if the title attribute has changed, then you would set the Send Condition expression to: 

AttributeChanged("title")

This expression states that the notification will only be sent if the job title attribute has changed. 

Example

If you want to check if the manager attribute has changed, then you would set the Send Condition expression to:  

AttributeChanged("manager")

This expression states that the notification will only be sent if the manager attribute has changed. 

Example

If you want to check if any attribute has changed, then you would set the Send Condition expression to:  

AttributeChanged("")

This expression states that the notification will only be sent if any of the attributes have changed.

 

AddedToGroup

The AddedToGroup method can be called to check if the user has been added to a specific group.

If you want to check if the user has been added to the group Associates, then you would set the Send Condition expression to: 

AddedToGroup("CN=Associates,DC=example,DC=com")

This expression states that the notification will only be sent if the user was added to the group Associates.

Please note that you must provide the full distinguishedName for the group we are checking.

 

RemovedFromGroup

The RemovedFromGroup method can be called to check if the user has been removed from a specific group.

If you want to check if the user has been removed from the group Associates, then you would set the Send Condition expression to: 

RemovedFromGroup("CN=Associates,DC=example,DC=com")

This expression states that the notification will only be sent if the user was removed from the group Associates.

Please note that you must provide the full distinguishedName for the group we are checking.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.