问题
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?
回答1:
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.
This thread will give you some examples on how to execute PowerShell in C#: Powershell command through C# code
来源:https://stackoverflow.com/questions/17466038/is-it-possible-to-assign-roles-using-the-exchange-web-services-in-c