ServiceNow Integration Hub REST protocol integration with ADManager Plus

Kent Harwell1
Tera Contributor

Hi All,

 

I don't see any recent activity on this forum, but I'm hoping some are still monitoring it. I have a use case for creating a couple of Flows that will use the REST protocol to call the ADManger Plus REST API and I hoping someone has already this and is willing to share knowledge and hopefully some simple examples.

 

My Specific use cases are:

Flow to add a user to an AD Group(s)

Flow to disable a user account in AD

 

Pretty simple to start, think I can expand on these basic use cases, if anyone is willing to share how they set this up or similar Flows

1 REPLY 1

Community Alums
Not applicable

Hi @Kent Harwell1 ,

1️⃣ Flow to Add a User to an AD Group

Steps:

  1. Create a new Flow in Flow Designer.
  2. Add a REST API action.
  3. Configure the action to send a POST request to the ADManager Plus API.

REST API Configuration:

  • Method: POST
  • Endpoint: https://<your-admanager-server>/api/json/addUserToGroup
  • Headers:
    • Content-Type: application/json
    • Authorization: Bearer <your-api-key>
  • Body (JSON):
    json
    CopyEdit
    { "operation": "addUserToGroup", "details": { "userName": "${userName}", "groupName": "${groupName}" } }
  • Response Handling: Store the response in a variable for logging.

2️⃣ Flow to Disable a User in AD

Steps:

  1. Create another Flow.
  2. Add a REST API action.
  3. Configure the action to send a POST request to disable the user.

REST API Configuration:

  • Method: POST
  • Endpoint: https://<your-admanager-server>/api/json/disableUser
  • Headers:
    • Content-Type: application/json
    • Authorization: Bearer <your-api-key>
  • Body (JSON):
    json
    CopyEdit
    { "operation": "disableUser", "details": { "userName": "${userName}" } }

Additional Notes

  • Replace <your-admanager-server> with your actual ADManager Plus server URL.
  • Replace <your-api-key> with your API Key.
  • Ensure that REST API authentication is set up correctly in ADManager Plus.
  • Use Flow Designer variables (${userName}, ${groupName}) to pass dynamic values.
  • You can log responses to track API execution.