The script updates the specified property of the member with the specified value upon adding/removing from a group. To execute the script, create a business rule triggering upon updating group membership (e.g. After adding a member to a group).
Parameters:
- $propertyName - Specifies the schema name of the property to update.
- $propertyValue - Specifies the value to set for the property.
PowerShell
$propertyName = "description" # TODO: modify me
$propertyValue = "my value" # TODO: modify me
$member = $Context.BindToObject("Adaxes://%member%")
$member.Put($propertyName, $propertyValue)
$member.SetInfo()