How to manage AD/Exchange using REST or SOAP API?

Manish 1 Reputation point
2022-06-09T07:40:18.467+00:00

Hello Team,

We are looking for alternatives to powershell in order to manage on-prem AD/Exchange server from servicenow. Is there any possibilities to have REST or SOAP API support for AD or Exchange Server?

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Exchange | Exchange Server | Development
Exchange | Exchange Server | Management
Microsoft Partner Center API
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. KyleXu-MSFT 26,396 Reputation points
    2022-06-10T01:51:36.743+00:00

    @Manish

    Here are suggestions from Exchange side:

    For Exchange on-premises, if you want to use REST API, you need to hybrid it with Exchange online first. Please note, REST API for On-Premises will end in March 2023.

    If you don't want to use Remote PowerShell manage Exchange server, you could use EWS service to manage Exchange on-premises if your application supported this one.

    Due to the EWS related to Exchange development, I will help you add the "office-exchange-server-dev" tag to this thread.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

  2. Limitless Technology 39,926 Reputation points
    2022-06-13T08:11:47.35+00:00

    Hello

    Thank you for your question and reaching out. I can understand you are having query related to Exchange and AD REST or SOAP API.

    For Exchange :

    https://learn.microsoft.com/en-us/exchange/client-developer/exchange-server-development

    For Active Directory :

    I believe there are no REST APIs provided by Microsoft for Microsoft Active Directory. You need to communicate with multiple APIs. Modifying group memberships is as simple as doing an LDAP modify operation, but for GPOs you'll have to write to the SYSVOL share and speak to a different service on one of the domain controllers to ensure version updates for example.

    ----------------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  3. Newbie Jones 1,386 Reputation points
    2022-06-13T10:25:54.807+00:00

    If you have access to Microsoft Flow\Logic Apps, then you can use the AD connectors and create your own REST API's for common tasks.

    That will give you a lot of control over AD. (Although doesn't ServiceNow have its own integration with AD, for adding users to groups, etc).

    Not so sure about the Exchange integration though. There are connectors for Exchange on-line, but I'm not aware of any for on-prem.

    There might be away to wrap PowerShell scripts into an API, but I haven't seen any real life examples.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.