ServiceNow Integration Hub REST protocol integration with ADManager Plus
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2025 08:46 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2025 10:00 PM
Hi @Kent Harwell1 ,
1️⃣ Flow to Add a User to an AD Group
Steps:
- Create a new Flow in Flow Designer.
- Add a REST API action.
- 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):jsonCopyEdit{ "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:
- Create another Flow.
- Add a REST API action.
- 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):jsonCopyEdit{ "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.