Perform Active Directory Synchronization ​
GET /userapi/securitygroup/getadsync
By default, there is a schedule in the UI which is set to automatically synchronize Active Directory Security Groups.
If needed, you can also make the API call below to trigger an Out-Of-Band synchronization as well, if you need to integrate auto-enrollments with other workflow processes you have for account management in AD.
Powershell
# PowerShell Request
$PasswordstateUrl = 'https://passwordstate/userapi/securitygroup/getadsync'
Invoke-Restmethod -Method GET -Uri $PasswordstateUrl -Header @{ "UserID" = "<UserID>" ; "APIKey" = "<APIKey>" }