Simon_00 Posted November 23, 2021 Share Posted November 23, 2021 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 More sharing options...
support Posted November 23, 2021 Share Posted November 23, 2021 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now