Is there a REST (Graph or otherwise) equivalent of Add-MailboxPermission?

蹲街弑〆低调 提交于 2019-12-13 09:19:50

问题


Right now I have a PS script that is checking for mailbox permissions and if they are missing, the permissions are added.

From C#, would like to call the equivalent of:

Get-MailboxPermission

and if needed, add permissions like:

Add-MailboxPermission -Identity $email -User $AdminUserName -AccessRights fullAccess -InheritanceType All

even if I can find the equivalent of Add-MailboxPermission that would do it. Cannot seem to find a REST equivalent or even a way with the GraphServiceClient.

I have looked at all of the available MS REST API references that I can find including Outlook, Graph, etc. to no avail. I can add the desired permissions via the web site and PS, but I am trying to keep this solution in C#


回答1:


I don't believe these are available. You might want to upvote this in UserVoice, or if it isn't the same, create a new request.

Hope this helps,



来源:https://stackoverflow.com/questions/46992766/is-there-a-rest-graph-or-otherwise-equivalent-of-add-mailboxpermission

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!