Jump to content

Retrieving AD security groups over api not working


Simon_00

Recommended Posts

Hello,

im currently working on a powershell script. I want to search for an ad security group. I'm using the normal API. As given in the documentation, I tried this Request.

 

 $PasswordstateUrl = 'https://passwordstate/api/getsecuritygroup/?search=finance'
  Invoke-Restmethod -Method GET -Uri $PasswordstateUrl -Header @{ "APIKey" = "<apikey>" }

But im getting the following error response: "No HTTP resource was found that matches the request URI ... ., No type was found that matches the controller named 'getsecuritygroup'." I'm using the security group api key which I generated.

 

I cannot figure out what the point of failure is. Can anybody help me ?

 

Best regards

Simon

Link to comment
Share on other sites

Hi Simon,

 

Thanks for bringing this to our attention, as our documentation is incorrect for these GET Methods. Please use the URL format below, and we will update this for the next release:

 

Active Directory Security Groups
$PasswordstateUrl = 'https://passwordstate/api/securitygroup/getsecuritygroups/'

 

Local Security Groups
$PasswordstateUrl = 'https://passwordstate/api/securitygrouplocal/getsecuritygroups/'

Thanks again.

Regards

Click Studios

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...