[英]Create shared mailboxes and distribution lists via Microsoft Graph API
I have to create shared mailboxes and distribution lists (+ maintain their memberships) in an Exchange Online environment.我必须在 Exchange Online 环境中创建共享邮箱和通讯组列表(+ 维护其成员资格)。 If I understood correctly, there is no particular REST API available at this point.如果我理解正确,此时没有特定的 REST API 可用。
The only way to achieve this right now is to create the mailboxes as regular users and distribution lists as distribution groups (via Graph API).现在实现这一点的唯一方法是将邮箱创建为普通用户,将通讯组列表创建为通讯组(通过 Graph API)。 Is this the preferred way to go?这是 go 的首选方式吗? How do I define that this mailbox "user" is an actual shared mailbox having members?如何定义此邮箱“用户”是具有成员的实际共享邮箱? How would I assign users to these mailboxes?如何将用户分配到这些邮箱?
Thanks for your help!谢谢你的帮助!
If you are looking a programmatical approach of creating SharedMailbox you could utilize the below powershell commmandlet如果您正在寻找创建 SharedMailbox 的编程方法,您可以使用以下 powershell commmandlet
New-Mailbox -Shared -Name "<NAME>" -DisplayName "<Name>" -Alias <ALIAS> | Set-Mailbox -GrantSendOnBehalfTo <SECURITYGROUPALIAS> | Add-MailboxPermission -User <SECURITYGROUPALIAS> -AccessRights FullAccess -InheritanceType All
The shared mailbox that will be created and security group will be granted with the necessary permissions.将创建的共享邮箱和安全组将被授予必要的权限。
In the above example - add the necessary members to security group.在上面的示例中 - 将必要的成员添加到安全组。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.