简体   繁体   English

通过 Microsoft Graph API 创建共享邮箱和分发列表

[英]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.

相关问题 如何通过 Microsoft Graph API 以编程方式创建 Microsoft MsaAppId 和 MsaAppPassword? - How can I programmatically create an Microsoft MsaAppId and MsaAppPassword via the Microsoft Graph API? Microsoft Graph Api 使用 Microsoft 帐户创建用户, - Microsoft Graph Api Create User With Microsoft Account, 通过邮递员调用微软图api - calling microsoft graph api via postman 通过 Microsoft Graph API 创建用户 - Creating a user via Microsoft Graph API Powershell 使用 Microsoft Graph 创建 Azure 用户 API - Powershell Create Azure user with Microsoft Graph API 如何使用 Microsoft Graph API 访问其他组织的用户列表? - How to access user lists for other organisations using the Microsoft Graph API? 通过另一个休息服务调用 microsoft graph api - calling microsoft graph api via another rest service 通过 postman 和使用 java 的代码库调用 microsoft graph beta api - calling microsoft graph beta api via postman and codebase using java 在用户未登录时通过 Microsoft Graph API 访问日历 - Accessing calendar via Microsoft Graph API while the user is not signed in Microsoft 图形 API:通过应用程序范围访问存在信息 - Microsoft graph API: Accessing presences information via an Application scope
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM