Perform Active Directory Synchronization ​
GET /winapi/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.
In order to make this call from the Windows Integrated API, you must be given the 'Security Groups' Security Administrator role, for the Portal area within the Administration tab of Passwordstate.
Powershell
PowerShell Request
$PasswordstateURL = 'https://passwordstate/winapi'
Invoke-Restmethod -Method GET -Uri $PasswordstateURL'/portalsecuritygroups/getadsync' -UseDefaultCredentials