Forum Discussion
JeremyTBradshaw
May 30, 2023Iron Contributor
EXO's "User" and "Trustee" properties returned from Get-Mailbox/RecipientPermission
The_Exchange_Team I have a situation where FullAccess and Send-As permission holder users have their PrimarySmtpAddress/UserPrincipalName value stored within various properties on multiple different ...
VasilMichev
May 31, 2023MVP
It should be returning the UPN value. The problem is two-faced: when you pass the value to Get-Recipient or other cmdlets, it's not treated as UPN, but matched against any of the "identifiers" supported by the cmdlet. In turn, because Microsoft broke the uniqueness constraints for SMTP addresses with the introduction of the GuestMailUser object, you can have multiple objects sharing the same SMTP value.
You should be able to work around it by specifically filtering on UPN value (i.e. Get-Recipient -Filter {UserPrincipalName -eq "email address removed for privacy reasons"}) or by leveraging the -User parameter of the Get-MailboxPermission cmdlet.
+1 on your other points, some minor changes can greatly improve the admin experience...
You should be able to work around it by specifically filtering on UPN value (i.e. Get-Recipient -Filter {UserPrincipalName -eq "email address removed for privacy reasons"}) or by leveraging the -User parameter of the Get-MailboxPermission cmdlet.
+1 on your other points, some minor changes can greatly improve the admin experience...