User Request to permission new user to send behalf of particular mail box..
what i notice was it's giving an error regarding a user No longer exsist..
--------------------------------------------------------
Microsoft Exchange Error
--------------------------------------------------------
The following error(s) occurred
while saving changes:
Set-Mailbox
Failed
Error:
Couldn't find object "contoso.com/Users/Standard/RCom".
Please make sure that it was spelled correctly or specify a different object.
Reason: The recipient contoso.comUsers/Standard/RCom isn't
the expected type.
and i can't see particulate user object in Exchange GUI..
So I run below command which shows users who has send on Behalf permission
Get-Mailbox "XYZ" | Select -ExpandProperty GrantSendOnBehalfTo | Select Name,Parent
Now How to remove Those users...
run ADSI Edit (adsiedit.msc) - Navigate to the user of the XYZ mail box
userA has access to XYZ. So go to XYZ properties and see if userA is
in there in one of the attribute called publicDelegates and
Remove users from that list..
That's it , you can add new users like a boss.