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.

Script repository

Update member property upon adding/removing from group

May 16, 2025 Views: 24

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.
Edit Remove
PowerShell
$propertyName = "description" # TODO: modify me
$propertyValue = "my value" # TODO: modify me

$member = $Context.BindToObject("Adaxes://%member%")
$member.Put($propertyName, $propertyValue)
$member.SetInfo()
Comments 0
Leave a comment
Loading...

Got questions?

Support Questions & Answers