Hi
I need to execute the script when user is added to a group.
In that script I need to access group properties - name, etc. and user's properties.
I have no problem with group ones however can't figure out how to get the user that's being added to a group.
Tried to use:
$userObj = $Context.Initiator;
$user = $Context.BindToObject($userObj);
$firstname = $user.Get("firstname");
That doesn't work. Also I don't think Initiator is giving me the right user.
Any help will be much appreciated.
V.