1.简单介绍
有的需求是要获取公司内部的共享邮箱的FullAccess和send-as 用户列表
2. 操作步骤
2.1 Full Access用户列表
可以用PowerShell来获取列表,实现如下
Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize:Unlimited | Get-MailboxPermission | where {$_.user.tostring() -ne "NT AUTHORITY\SELF" -and $_.IsInherited -eq $false} | Format-Table Identity, User, AccessRights -AutoSize
2.2 Send as 用户列表
Get-Mailbox -ResultSize Unlimited | Get-RecipientPermission | ? {$_.Trustee -ne "NT AUTHORITY\SELF"}
3. 总结
以上是导出exo 共享邮箱 full access 和 send as用户列表的一种方式。在使用PowerShell的时候,需要导入模块ExchangeOnlineManagement并连接Exchange Online,命令如下
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName {共享邮箱地址}
本文如果哪里有错误,麻烦告之,谢谢谢谢