0 vote
The search function in the Web Client works efficiently for looking things up. Can this functionality please be exposed to into the PowerShell module.
It is very intensive and slow for us to find a user by name (or folder). Using the Get-DSPamAccounts and Get-DSPamFolders is very inefficient every time we have to search to see if an account/folder exists. Returning 2500+ accounts in order to foreach/pipe them until we find what we're looking is not practical for the programmer or even server load.
Hello,
Thank you for your suggestion. A ticket has been opened.
Hello,
The version 2023.2.0.6 of the module include the new cmdlets: Search-DSEntry, and New-DSSearchCriteria.
Search-DSEntry should do the same as the search function in the WebClient. To look in the PAM vaults, you must use the IncludePAMVaults switch.
Here is an example: Search-DSEntry -By Name -Match StartsWith -Value 'SomeValue' -IncludePAMVaults
For an easier use or more complex search, it is recommended to use the New-DSSearchCriteria. It will make sure the criteria is well formed. It is required for custom date fields, such as a the creation date. You stored the desired criteria in an array, and pass it to the parameter InputObject of Search-DSEntry.