Admin By Request (ABR) Approval Action → Ivanti Automation
Overview
This automation playbook handles approval or denial actions for Admin By Request (ABR) service requests in Ivanti ITSM. It is triggered when an ABR request requires a decision, allowing IT staff to approve or deny requests directly from Ivanti, with all actions and outcomes synchronized between Ivanti and the ABR system.
High-Level Flow
- Ivanti task is created for ABR approval/denial
- Ansible Automation Platform triggers this playbook
- Playbook retrieves task and ABR request details from Ivanti
- Retrieves ABR API credentials from Passwordstate
- Executes the approval or denial action in the ABR system
- Updates the Ivanti task with the result (approved/denied)
- Closes the task or adds notes as appropriate
Execution Flow
sequenceDiagram
participant Ivanti as Ivanti ITSM
participant AAP as Ansible Automation
participant PWS as Passwordstate
participant ABR as Admin By Request API
Ivanti->>AAP: Trigger approval/denial task
AAP->>Ivanti: Get task and ABR request details
Ivanti-->>AAP: Task info (AdminByReqId, action)
AAP->>PWS: Get ABR API credentials
PWS-->>AAP: ABR API credentials
AAP->>ABR: Approve or deny ABR request
ABR-->>AAP: Action result (success/failure)
alt Success
AAP->>Ivanti: Close task with resolution
else Failure
AAP->>Ivanti: Add note with error
end
Components
Ivanti ITSM
- Task Creation: Automated task creation for ABR approval/denial
- Task Update: Updates task status and notes based on ABR action outcome
Passwordstate
- Credential Storage: Securely stores ABR API credentials, retrieved at runtime
Admin By Request (ABR) API
- Approval/Denial Actions: Receives and processes approval or denial commands for ABR requests
Playbook Logic
Variables
pws_ivanti_api_key: Title of the API key in Passwordstateabr_api_key: Title of the ABR API key in Passwordstate
Main Steps
- Get Ivanti and ABR API Keys from Passwordstate
-
Retrieves credentials for both Ivanti and ABR APIs
-
Retrieve Task and ABR Request Details
-
Gets the relevant task and ABR request information from Ivanti
-
Approve or Deny ABR Request
-
Uses the ABR API to approve or deny the request based on the action required
-
Update Ivanti Task
- On success: closes the task with a resolution message
- On failure: adds a note to the task with error details
Task Input & Output
Input Parameters
AdminByReqId: Unique identifier for the ABR requestAssignmentID: Ivanti task numberAction: 'approve' or 'deny'Reason: Reason for denial (if applicable)
Output Actions
- On Success: Closes the Ivanti task with a resolution message indicating approval or denial
- On Failure: Adds a note to the task with error details
Error Handling & Idempotency
- Only attempts action if required and not already completed
- All credentials are handled with
no_log: truefor security - Playbook is safe for repeated runs; only updates tasks as needed
Benefits
- Automates ABR approval/denial workflow in Ivanti
- Ensures ticket status in Ivanti matches real ABR request status
- Reduces manual overhead for ITSM operations
- Provides detailed resolution messages for audit and traceability
Notes
- The playbook is designed to be idempotent and safe for repeated runs
- All sensitive operations are delegated to localhost for security
- PowerShell or API modules are used to interact with the ABR system
- Task closure includes all relevant status and audit information