是否可以使用c#中的Exchange Web服务来分配角色? [英] Is it possible to assign roles using the Exchange web services in c#?

查看:91
本文介绍了是否可以使用c#中的Exchange Web服务来分配角色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用c#中的Exchange Web服务来分配角色?就像您以编程方式自动添加角色ApplicationImpersonation并将角色分配给Office 365 Exchange中的用户一样?

Is it possible to assign roles using the Exchange web services in c#? Like you programatically automate of adding the role ApplicationImpersonation and assign the role to the users in Office 365 Exchange?

推荐答案

无法使用Exchange Web服务分配角色.如果希望通过C#应用程序执行此操作,请尝试在C#中执行PowerShell cmdlet.查找"RoleGroup" cmdlet.

Assigning roles using Exchange web services is not possible. If you wish to do this through a C# application, try executing PowerShell cmdlets in C#. Look for "RoleGroup" cmdlets.

此线程将为您提供一些有关如何在C#中执行PowerShell的示例: 通过C#代码的Powershell命令

This thread will give you some examples on how to execute PowerShell in C#: Powershell command through C# code

这篇关于是否可以使用c#中的Exchange Web服务来分配角色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆