Hi,
Does any one know about, how to onboard the dedicated domain accounts without having a AD account group which will be used in directory query and all the accounts are placed in a different AD OU path.
Thanks in advanced!!
Gayatri B
Hi,
Does any one know about, how to onboard the dedicated domain accounts without having a AD account group which will be used in directory query and all the accounts are placed in a different AD OU path.
Thanks in advanced!!
Gayatri B
is this for user management or for managed accounts?
If you're looking to bring in 1500+ Active Directory (AD) objects into BeyondTrust Password Safe without using AD groups, here are several alternative methods you can explore:
Smart Rules can be configured to pull in AD accounts based on custom filters, not just group membership.
This allows you to target specific sets of AD objects without relying on group membership.
🔗 Smart Rules documentation [Smart Rule...dtrust.com]
You can use the BeyondInsight Password Safe API to import AD accounts programmatically.
This method is flexible and scalable for large imports.
🔗 API documentation
You can run a Discovery Scan and then manually select which AD accounts to import.
🔗 Getting Started Guide [Password S...dtrust.com]
Here’s a sample PowerShell script that uses the BeyondInsight Password Safe API to import AD accounts in bulk without using AD groups. This script assumes you have a list of AD accounts in a CSV file and valid API credentials.
NOTE this is not supported and is used at your own risk.
Sample csv format:
AccountName,Domain,Description
svc_account1,corp.local,Service Account 1
svc_account2,corp.local,Service Account 2
powershell script (see note)
# Set API credentials and endpoint
$apiBaseUrl = "https://your-beyondinsight-server/api/public/v3"
$apiKey = "your-api-key-here"
$csvPath = "C:\ADAccounts.csv"
# Read CSV
$accounts = Import-Csv -Path $csvPath
# Loop through each account and create it
foreach ($account in $accounts) {
$body = @{
"AccountName" = $account.AccountName
"DomainName" = $account.Domain
"Description" = $account.Description
"PlatformId" = 1 # Adjust based on your platform (e.g., Windows, Linux)
"ManagedSystemId" = 123 # ID of the system this account belongs to
"IsManaged" = $true
}
$jsonBody = $body | ConvertTo-Json -Depth 3
$response = Invoke-RestMethod -Uri "$apiBaseUrl/accounts" `
-Method POST `
-Headers @{ "Authorization" = "PS-Auth $apiKey"; "Content-Type" = "application/json" } `
-Body $jsonBody
Write-Host "Imported account: $($account.AccountName)"
PlatformId
and ManagedSystemId
with actual values from your environment.Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.