Hello,
I'm trying to fetch certain passwords with PowerShell, like so:$entry = Get-HubEntry -VaultId $vaultId -EntryId $entryIdecho $entry.Connection.Credentials.Password{"Type":1,"Data":"..."}
How do I get the plain text version of such a password? I struggle to find anything about this in the documentation or in web searches.
The application user has "Contributer" access to the vault, which lists "View Sensitive" and "View Password", so my expectation was that I could access passwords.
Any help or pointers in the right direction would be greatly appreciated.
Best regards,
Martin
Hi Martin,
Sorry about this, to be honest, this is an oversight from us. The only cmdlet that I could find that resolves the password is the export one.
$entries = Get-HubEntriesForExport -VaultId $vault.id
This cmdlet will export all entries and resolve all entry sensitives and passwords. It will require the export permission on the vault.
We will add to the backlog a way to resolve a given entry without exporting and let you know once available.
Have a good day!
Maxime Morin
Thanks for pointing me to the export function, and also for the quick response!
Hello Martin,
The new release of our PowerShell (2024.2.5) module contains 2 new functions.
Get-HubEntryResolved; gets the entry and resolves it according to the flags.
$entry = Get-HubEntryResolved -VaultId $vaultId -EntryId $entryId -ResolveSensitives -ResolvePassword
Format-HubEntryResolved; resolves the sensitives or passwords of the given entry.
$entry = Get-HubEntry -VaultId $vaultId -EntryId $entryId Format-HubEntryResolved -Entry $entry -ResolvePasswords
Have a good day!
Maxime Morin
Thank you for letting me know, and for the examples too!
Have a good day :)