Bulk add of other entry objects rather than U/P Credentials

Bulk add of other entry objects rather than U/P Credentials

avatar

Is there another way to import or use the API to add bulk credential entries (such as Azure service principal or Secrets) to the Devolution Server besides the standard U/P import or using RestAPI (/API/v1/vault/VaultID/entry)?

Or change the credential type to Azure service principal after adding a large number of U/P entries?

All Comments (3)

avatar

Hello,

The DVLS REST API only allows the creation of Username/Password credential entry types.

If you want to create other entry types, we recommend using the Devolutions.PowerShell module.
https://docs.devolutions.net/powershell/Getting-started/installation/
https://docs.devolutions.net/powershell/dvls-powershell/powershell-connectivity/#method-2-using-devolutions-server-cmdlets

You can find sample scripts in the PowerShell forum section.

Let us know if you have any more questions.

Best regards,

Érica Poirier

avatar

Hi Erica
Can you guide me? I have looked through the Devolutions.PowerShell and used New-DSCredentialEntry to create a new U/P entry.
Do you have any idea what command or parameter I should change to add a Credentials type of : "Azure service principal" with Client secret, Client ID and Tenant ID?

$NewCredEntry = @{
    VaultId                                  = $VaultID
    EntryName                                = $EntryName
    Username                                 = $Username
    Password                                 = $Password
    Folder                                   = $Folder
    credentialViewedCommentIsRequired        = $false
    credentialViewedPrompt                   = $false
    ticketNumberIsRequiredOnCredentialViewed = $false
    checkOutMode                             = 'Default'
    Description                              = ''
    Tags                                     = ''
}
New-DSCredentialEntry @NewCredEntry 
avatar

Hello,

The New-DSCredential cmdlet only allows the creation of a Username/Password credential entry type.

To create or update an Azure service principal credential entry, you can create one in the web UI, fetch it in PowerShell using Get-DSEntries cmdlet, modify the properties, and use the Update-DSEntryBase cmdlet.

Let me know if that helps.

Best regards,

Érica Poirier