ACT-CreateADUser

Runbook: ACT-CreateADUser.ps1

πŸ“˜ Description

Creates a new user account in the customer’s Active Directory environment.
This runbook supports both minimum-data onboarding and full HR-rich provisioning.

SymphonyDesk automatically handles:

  • AD connection
  • User attribute stamping
  • Optional manager assignment
  • Jira comments & workflow transitions
  • Detailed logging for audit and job history

🧩 Required Parameters

NameDescriptionExample
DisplayNameThe user’s display name"John Doe"
UPNUserPrincipalName"john.doe@contoso.com"

πŸͺ„ Optional Parameters

These fields are applied only if provided in the Jira payload.

NameDescriptionExample
FirstNameFirst name"John"
LastNameLast name"Doe"
DepartmentDepartment"Finance"
TitleJob title"Analyst"
OfficeOffice location"HQ – Floor 4"
ManagerUPNManager’s UPN"manager@contoso.com"

πŸ“€ Webhook JSON Example

{
  "customer": "Contoso",
  "runbook": "ACT-CreateADUser.ps1",
  "issue_key": "{{issue.key}}",
  "params": {
    "DisplayName": "{{issue.fields.customfield_10200}}",
    "UPN": "{{issue.fields.customfield_10201}}",
    "FirstName": "{{issue.fields.customfield_10202}}",
    "LastName": "{{issue.fields.customfield_10203}}",
    "Department": "{{issue.fields.customfield_10204}}",
    "Title": "{{issue.fields.customfield_10205}}",
    "Office": "{{issue.fields.customfield_10206}}",
    "ManagerUPN": "{{issue.fields.customfield_10207}}"
  }
}

πŸ“₯ Response (Success)

{
  "job_id": "job-237abcd",
  "status": "success",
  "output": "AD user created successfully"
}

πŸ“₯ Response (Error)

{
  "job_id": "job-237abcd",
  "status": "error",
  "message": "Manager not found",
  "raw": "Get-ADUser : Cannot find user..."
}

πŸ—ƒ Requirements

  • Runner connectivity to domain controller
  • SymphonyDesk customer config containing:
  • "DomainController"
  • "DefaultOU"
  • Required modules: ActiveDirectory
  • Jira credentials configured in secrets.json

πŸ— Version History

VersionDateNotes
1.02025-01-01Initial release
1.12025-01-15Added Jira comments & transitions