Script repository

Update member property upon adding/removing from group

Updated on: Jan 18, 2026, Views: 445

Group membership

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 - the schema name of the property to update.
  • $propertyValue - the value to set for the property.
$propertyName = "description" # TODO: modify me
$propertyValue = "my value" # TODO: modify me

$member = $Context.BindToObject("Adaxes://%member%")
$member.Put($propertyName, $propertyValue)
$member.SetInfo()

Comments 0

You must be signed in to comment.

    Got questions?

    Support Questions & Answers

    We use cookies to improve your experience.
    By your continued use of this site you accept such use.
    For more details please see our privacy policy and cookies policy.