qjb Posted April 16 Posted April 16 We created an API Key for one folder, but when trying to retrieve the password in the folder via the API key, we get a 401 response: Quote [{"errors":[{"message":"No Authorization"},{"phrase":"An error has occurred trying to validate the API Key for PasswordID 'xxxxx'. Please check the PasswordID and API Key values have been specified, and are correct."}]}] We have tried in both Powershell script and Postman. We have no idea what's wrong, it seems the API Key is not recognized by the passwordstate.
support Posted April 17 Posted April 17 Hello, APIKeys on folders are not used to retrieve passwords from Password Lists nested beneath the folder. They are only used for managing permissions on the Folders. To retrieve passwords, you can create a APIKey per Password List, or use the System Wide API Key. Or you can use the Windows Integrated API, which does not need API Keys. Regards Click Studios
qjb Posted April 17 Author Posted April 17 Thanks for the reply. I didn't notice that the Folder API key can't be used to retrieve password. The passwords are spread in multiple Lists, so I think that the best way might be to use a system-wide API Key. My questions are: - how can I only allow the System API key to read passwords from one certain folder? or is it possible? - do we support multiple system-wide Generic API keys? - is it possible to only grant the `retrieve passwords` permission to the System API key? Thanks
support Posted April 17 Posted April 17 Hello, Please see responses below: - how can I only allow the System API key to read passwords from one certain folder? or is it possible? Unfortunately not - do we support multiple system-wide Generic API keys? No we do not have a feature for that sorry - is it possible to only grant the `retrieve passwords` permission to the System API key? - you can change those settings on the properties of each Password List Have you had a look at the Windows Integrated API - can you instead use that in your environment? Regards Click Studios
qjb Posted April 17 Author Posted April 17 Yes, I have looked into the Windows Integrated API, and that's the way we use it for Windows users. But some developers use Mac, so we want to figure out the Standard API key.
support Posted April 17 Posted April 17 Okay - thanks. Not sure if the following forum post would help with your Macs and WinAPI - https://forums.clickstudios.com.au/topic/2387-can-winapi-be-used-via-a-linux-shell-script/ Regards Click Studios
qjb Posted April 17 Author Posted April 17 I tried to pass it with PowerShell, and it works! Thanks for your answers!
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