Retrieving Security Groups ​
GET /api/securitygrouplocal/getsecuritygroup
You can retrieve one or more Local Security Groups, with a simple GET request. Below are examples of how to retrieve all Local Security Groups, or search for specific Security Groups.
Powershell
# PowerShell Request - Return all Security Groups
$PasswordstateUrl = 'https://passwordstate/api/securitygrouplocal/getsecuritygroups/'
Invoke-Restmethod -Method GET -Uri $PasswordstateUrl -Header @{ "APIKey" = "<apikey>" }
# PowerShell Request - Search for Security Groups
$PasswordstateUrl = 'https://passwordstate/api/securitygrouplocal/getsecuritygroups/?search=finance'
Invoke-Restmethod -Method GET -Uri $PasswordstateUrl -Header @{ "APIKey" = "<apikey>" }****