MrE Posted September 9 Share Posted September 9 Is there anyway to determine what DocumentID's are associated with a password entry? Either from the password object, document object, or some intermediary object that relates to the two? $PasswordstateUrl = "https://myPSURL/api/passwordlists/960" $content1 = Invoke-Restmethod -Method GET -Uri $PasswordstateUrl -Header @{"APIKey" = "myAPIKey"} $PasswordstateUrl = 'https://myPSURL/api/searchpasswords/960?search=PRODDB&PreventAuditing=true' $content2 = Invoke-Restmethod -Method GET -Uri $PasswordstateUrl -Header @{"APIKey" = "myAPIKey"} $content2[1].PasswordID $PasswordstateUrl = "https://myPSURL/api/document/password/1" $content3 = Invoke-Restmethod -Method GET -Uri $PasswordstateUrl -Header @{"APIKey" = "myAPIKey"} I know that $content3 belongs to $content2[1], but I have no way of associating the two. How do you check to see if a password already has a document(s) associated with it? Link to comment Share on other sites More sharing options...
MrE Posted September 9 Author Share Posted September 9 I can't seem to retrieve any of the metadata for a password document using the API. Surely, I'm missing something, but I'm at a loss as to what it is at this point. Link to comment Share on other sites More sharing options...
Mordecai Posted September 12 Share Posted September 12 @mre As far as I know, it is currently not possible to find out in the API whether and which documents are assigned to a password, a PasswordList or a folder. We have therefore not yet integrated this into the Passwordstate-Management PowerShell module. (Save-PasswordstateDocument or New-PasswordstateDocument do exist and work) You could open a feature request for this here in the forum or see if it doesn't already exist. I vote for it too Edit: Feature requests already exists: 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