Perform Active Directory Synchronization ​
GET /api/portalsecuritygroups/getadsync
By default, there is a schedule in the UI which is set to automatically synchronize Active Directory Security Groups for the Password Reset Portal module.
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.
The APIKey you specify here is the System Wide API Key which can be found on the screen Administration -> Password Reset Portal Administration -> System Settings -> API tab
Powershell
# PowerShell Request
$PasswordstateURL = 'https://passwordstate/api'
Invoke-Restmethod -Method GET -Uri $PasswordstateURL'/portalsecuritygroups/getadsync' -Header @{ "APIKey" = "<apikey>" }