Add Active Directory Security Group ​
POST /winapi/securitygroup
The PowerShell example below creates an Security Group record with various fields specified.
Powershell
#JSON data for the object
$Body = @{
SecurityGroupName = "Core Distribution"
ADDomainNetBIOS = "DomainA"
Description = "Added via the API"
}
$jsonData = $Body | ConvertTo-Json
$PasswordstateURL = 'https://passwordstate/winapi'
$result = Invoke-Restmethod -Method Post -Uri $PasswordstateURL'/securitygroup' -ContentType "application/json" -Body $jsonData -UseDefaultCredentials
Write-Output $result