ACT-AddUserToGroup

Runbook: ACT-AddUserToGroup.ps1

πŸ“˜ Description

Adds a user to an Active Directory security group.
This runbook verifies the user exists, validates the group, and adds membership using domain controller PowerShell remoting.

SymphonyDesk handles:

  • AD connection
  • User & group resolution
  • Logging
  • Jira updates (comments + transition)
  • Error handling

Common uses include onboarding, access requests, entitlement workflows, and security group assignments.


🧩 Required Parameters

NameDescriptionExample
UserUPNThe user’s UPN"john.doe@contoso.com"
GroupNameAD group display name or SamAccountName"VPN-Access"
IssueKeyJira issue key"ITSD-7004"

πŸͺ„ Optional Behavior

None β€” group lookup is automatic.


πŸ“€ Webhook JSON Example

{
  "customer": "Contoso",
  "runbook": "ACT-AddUserToGroup.ps1",
  "issue_key": "{{issue.key}}",
  "params": {
    "UserUPN": "{{issue.fields.customfield_10600}}",
    "GroupName": "{{issue.fields.customfield_10601}}",
    "IssueKey": "{{issue.key}}"
  }
}

πŸ“₯ Successful Response

{
  "job_id": "job-addg-9922",
  "status": "success",
  "output": "User successfully added to group"
}

πŸ“₯ Error Response

{
  "job_id": "job-addg-9922",
  "status": "error",
  "message": "Group not found: VPN-Access",
  "raw": "Get-ADGroup : Cannot find group..."
}

πŸ—ƒ Requirements

  • Runner must reach domain controller
  • AD PowerShell module on DC
  • Customer config must contain:
  • DomainController
  • Jira credentials must be configured in secrets.json

πŸ— Version History

VersionDateNotes
1.02025-02-10Initial release
1.12025-02-12Improved group lookup matching
1.22025-02-13Added Jira transitions + error detail