Most engineers think…
Most engineers think onboarding is a one-time import — pull a server list from the CMDB, load it into the vault during the project, done.
Wrong — the estate drifts every single week. New VMs clone golden-image admins, teams mint service accounts, someone racks a Jenkins box under a desk. Real Password Safe onboarding is a pipeline: scheduled discovery keeps finding, Smart Rules keep matching and onboarding, exclusions keep break-glass accounts out. Build the pipeline once and Friday’s new server is Monday’s managed system — no spreadsheet, no ticket.
① Why discovery comes first — you cannot vault what you cannot see
Meera, an L2 engineer at Flipkart, gets a one-line audit question: “How many accounts can log in as an administrator on these 300 servers?” Honest answer: nobody knows. There is the local Administrator cloned onto 60 VMs from one golden image (same password everywhere), a service account created by an engineer who left in 2023, and a Jenkins box at 192.168.7.23 that never made it into the CMDB. PAM projects fail at this step — not at vaulting. You cannot rotate, broker or audit a credential you have never seen.
BeyondTrust’s answer is the Discovery Scanner — the docs call it “the engine that performs all discovery scans”. Think of it as a census enumerator going door-to-door: it visits every house (IP) in its area (address group), lists residents (accounts) and house details (services, software), and only then can the government issue ration cards (onboarding). One more thing the docs are strict about — the setup steps “must be completed in the order presented”: functional account → password policy → discover/add assets → managed systems → managed accounts → Smart Rules. You cannot onboard accounts until you have onboarded systems, and you cannot onboard accounts at all without a functional account for that platform.
A scan needs three ingredients. (1) A scan credential — created at Configuration > Discovery Management > Credentials → Create New Credential (fields: Credential Name, Type), stored AES-256 and pushed to the scanner. On Windows targets this account must be a true local admin: the scanner mounts the IPC$ admin share, makes remote WMI and registry calls, and drops a small discovery-agent service. (2) An address group — the IP ranges to sweep. Keep them segment-sized (one /24 at a time, like 10.20.8.0/24), not “the whole 10.0.0.0/8”. (3) A schedule — off-hours, repeating, because discovery is a heartbeat, not a one-off. In Password Safe Cloud the scanner ships inside every Resource Broker; on-prem it runs from the U-Series appliance.
Symptom: the scan reports Completed successfully, but hours later the asset shows no services, no local accounts, no software. Cause: the scan account was not a working local admin on those targets — UAC remote restrictions (LocalAccountTokenFilterPolicy), Windows Firewall or NTLM hardening silently blocked IPC$ and WMI. The scan “visited” but the door stayed shut. Fix: test an IPC$ connect and a remote WMI call manually from the scanner host, turn on advanced scanner logging, and work through BeyondTrust KB0017022.
Reading results without drowning: open the Assets grid and resist the urge to onboard everything. First, leave the Software collection checkbox OFF unless you need it — BeyondInsight 24.3 made that the default because software collection “often slows scans or causes failures”. Then hunt three red flags: the same-named local admin on many boxes (golden-image twins), service accounts with multi-year-old passwords, and assets nobody can name an owner for. Those three lists are your first onboarding waves — everything else can wait.
Pause & Predict
Predict: the scan swept 10.20.8.0/24 and reports Completed on all 200 hosts — but 90 of them show zero local accounts. The scan credential is a domain user in the “Server Operators”-style readers group. What happened? Type your guess.
Sneha at Infosys says: “I gave the scanner a plain domain user — discovery is read-only anyway, right?” Why is she wrong?
The four nouns of onboarding
Tap each card — every sentence in this lesson stands on these four.
The engine that sweeps address groups and enumerates assets + accounts. Authenticated, not passive. So: its credential decides data quality.
The worker credential PS uses to change other passwords. Created FIRST, never checked out, never managed itself. So: no FA, no onboarding.
A computer or device where passwords are maintained — Windows, Linux, network devices, databases, directories. So: systems before accounts.
The credential PS stores and rotates on a managed system. So: this is the thing Smart Rules onboard for you.
② From found to managed — the Smart Rule onboarding pipeline
Found is not managed. Discovery fills the Assets grid; the conversion to vaulted, rotating credentials is done by Smart Rules — Password Safe’s auto-sorting office. Mumbai dabbawala logic: every tiffin (account) carries a code (its attributes), and the sorter (rule) reads the code and routes it to the right train (Smart Group) — automatically, every day, including tiffins that appear next month. With a Password Safe license there are four rule types: Asset, Managed Account, Managed System, Policy User. The classic chain is an Asset Smart Rule that turns discovered assets into managed systems, then a Managed Account Smart Rule that onboards the accounts on them.
Anatomy of any rule, from the left menu Smart Rules → + Create Smart Rule: Selection Criteria (the IF) and Actions (the THEN), with a Reprocessing Limit in the Details section. For Managed Account rules the criteria menu includes Directory Query, Dedicated Account, Microsoft Entra ID Query and Directory Attribute Match. The action strings you will use daily: “Manage Account Settings” (the onboarding workhorse), “Show managed account as Smart Group”, “Link domain accounts to Managed Systems” and “Map Dedicated Accounts to” a user group.
Build the rule: Server-OU local Administrators, step by step
- Name it for ownership —
Onboard – Server OU local Administrators. One rule = one account population; the name should say which. - Type: Managed Account.
- Selection Criteria (IF): asset belongs to the Smart Group for the Servers OU, AND account name equals
Administrator. - Action 1 — Manage Account Settings: onboard the account, link functional account
FA-win-rotate, apply password policyTier1-30day, enable automatic password management. - Action 2 — Show managed account as Smart Group: this is what you will assign access policies and permissions against later.
- Details → Reprocessing Limit: once a day is plenty for a stable OU. Hit Create Smart Rule — and remember the docs: a Smart Rule is always processed when first saved or updated, so it runs right now.
▶ Watch one account go from found to managed
One freshly discovered Windows server, one Smart Rule, four stages. Press Play for the healthy path, then Break it to see the failure.
The processing model explains 90% of “why did that happen” tickets. A rule processes when it is created or edited and saved, when its timer expires, when asset changes are detected, or when you click Process on the Smart Rules grid. Directory-backed rules come with a documented patience warning: “There can be delays when a Smart Rule depends on external data source, such as LDAP.” Also: built-in rules carry a lock icon and cannot be deleted, and a rule referenced by another rule cannot be deleted or deactivated.
Symptom: Karthik edits an account’s release duration directly on the Managed Accounts page; next morning it is back to the old value. Cause: the account was onboarded by a Smart Rule with Manage Account Settings — and “the settings in a Smart Rule override the settings configured on the managed system” on every reprocess. Fix: change it inside the Smart Rule, not on the account.
Karthik at HCL sets Default Release Duration to 240 minutes on an account, saves, and finds it reverted by morning. Most likely cause?
Pause & Predict
Predict: your new Directory-Query Smart Rule has shown 0 members for three hours. Is it broken? Type your guess.
# 128-char API key comes from your BeyondInsight API registration export PS_KEY=$(cat ~/.ps_api_key) curl -sk -X POST -c ps.cookies \ -H "Authorization: PS-Auth key=$PS_KEY; runas=FLIPKARTLAB\svc-psapi;" \ https://10.20.5.40/BeyondTrust/api/public/v3/Auth/SignAppIn curl -sk -b ps.cookies \ https://10.20.5.40/BeyondTrust/api/public/v3/ManagedSystems
{"UserId":12,"UserName":"svc-psapi","Name":"PS API service user"}
[{"ManagedSystemID":54,"SystemName":"WIN-APP-114","WorkgroupID":1},
{"ManagedSystemID":55,"SystemName":"LIN-DB-07","WorkgroupID":1}, ...]③ Onboarding patterns per platform — and the dependency trap
One pipeline, five flavours. A managed system can be “a computer or device where one or more account passwords are to be maintained” — Windows, Unix/Linux, network devices, databases, firewalls, routers, even LDAP/AD domains. What changes per platform is (a) what the functional account needs (set via its required Entity Type and Platform fields at Configuration > Privileged Access Management > Functional Accounts) and (b) which criteria select the accounts.
Windows local admins are the classic first wave: criteria = asset Smart Group + account name Administrator, functional account = a domain account holding local-admin rights via GPO (or a local FA per box on standalone systems). Remember the golden-image trap: 60 clones share a name and a password, but each is a separate local account on a separate system — onboarding makes each one unique on the next rotation, which is exactly the win. AD domain accounts ride a Directory Query, and the FA needs only delegated password-reset plus lockout-attribute read/write rights — not Domain Admin. One nuance: members of protected groups (think Domain Admins) have delegated rights stripped by AD itself, so vaulting those needs extra AD-side steps.
Linux root and service accounts: the FA logs in over SSH as a normal user and needs root privilege or sudo elevation configured in the platform settings; criteria are usually account-name patterns (root, svc-*). And tattoo this on your wrist: never onboard the functional account itself as a managed account — BeyondTrust’s own guidance says passwords “could fail to synchronize”, which means every rotation on that platform dies at once. Network devices (routers, firewalls) onboard by platform + address group; the field gotcha is prompt-matching on custom platforms — one wrong prompt regex and an F5 BIG-IP rotation fails with “Thread was interrupted from a waiting state”. Databases: the FA is a DB login with password-change rights, but plan hands-on time — practitioners on PeerSpot report database onboarding stays largely manual (“no Smart Rules for databases”, as one reviewer put it).
Dependent systems — the propagation preview
Here is the trap that separates L1 from L2. svc-backup is an AD service account — and it is also the logon identity of Windows services on 14 servers, two IIS app pools and a scheduled task. Rotate it in AD alone and nothing breaks immediately… until each service restarts, tries the cached old password, and dies with logon failures (and enough failures can lock the account domain-wide). Password Safe models this with linked accounts — the Smart Rule action “Link domain accounts to Managed Systems” ties the domain account to every system that uses it, so rotation can propagate the new secret to each dependent service. The full propagation mechanics are lesson 6; your onboarding job is to capture the map now.
Get-CimInstance Win32_Service |
Where-Object { $_.StartName -like "*svc-backup*" } |
Select-Object Name, StartName, StateName StartName State ---- --------- ----- VeeamAgent FLIPKARTLAB\svc-backup Running SQLAgent$BK FLIPKARTLAB\svc-backup Running ArchiveTask FLIPKARTLAB\svc-backup Stopped
Rahul at Wipro faces this
Rahul onboards a fresh AD service account and clicks a forced password change to test it. It fails instantly with: “Password change failed. Error: Value cannot be null. (Parameter ‘identityValue’)”.
Password Safe could not resolve the account’s SID in the directory — the account was renamed, re-created, sitting in a different domain than the managed system’s mapping, or not yet replicated. The rotation engine asked AD “who is this?” and got nothing.
Treat it as an identity-resolution problem, not a password problem: confirm the account exists at the exact directory path the rule queried, and that the managed system’s domain mapping matches.
BeyondInsight > Smart Rules > Onboard – AD service accounts > Process (re-run the Directory Query), then Managed Systems > the system > Go to Advanced Details (check domain mapping)Re-onboard the account from the correct directory path (fix the Directory Query OU/filters), correct the managed system’s domain association, and let the rule reprocess.
Run the forced change again — it completes; the account’s last-changed timestamp updates, and the Password Change Agent log shows a clean change with no identityValue error.
Pause & Predict
Predict: for a Linux box, the functional account signs in over SSH as a normal user. What two things must be true before it can rotate root’s password? Type your guess.
ICICI plans to rotate svc-backup, an AD service account used as the logon identity by services on 14 servers. What must onboarding have captured for that rotation to be safe?
④ Scaling + hygiene — crown jewels first, no rotation storms
Aditya at ICICI has 6,000 discovered accounts and a project manager asking “why aren’t they all vaulted yet?”. The senior answer is phasing. Wave 0: a 20-system pilot to prove scan → rule → rotation end-to-end. Wave 1: crown jewels — domain admin accounts, the AD functional accounts’ home platforms, Tier-0 infrastructure — because that is where breach impact lives. Wave 2: server local admins and mapped service accounts. Wave 3: the long tail (workstations, lab boxes). Risk drops fastest per hour of work, and every wave teaches you something the next one needs.
Now the storm warning. With automatic password management enabled, an account’s password is set on onboarding and changed at the next scheduled rotation — default ChangeTime 23:30 UTC. Onboard 6,000 accounts on Friday evening with auto-management on, and that night Password Safe attempts thousands of changes at once: unmapped service accounts break, the Password Change Agent retry queue (“Retry failed changes after (minutes)”, “Maximum retries”) silently swells, and Monday’s helpdesk melts. The fix is boring and beautiful: onboard in waves, map dependencies first (section ③), stagger change times across waves, and watch the failed-changes queue like a hawk after each one.
Exclusions are a design feature, not an afterthought. Three things stay out of your auto-onboarding rules: (1) break-glass accounts — the sealed emergency admin is the fire-alarm glass box: it must work when Password Safe itself is down, so it is vaulted and alerted-on but kept OUT of auto-rotation, and rotated manually after every use; (2) the functional accounts (you know why by now); (3) any population another rule already owns — overlapping rules with different actions is the documented endless-overwrite loop. Build the exclusion into the rule criteria itself (name patterns, OU exceptions) so a future teammate cannot “accidentally fix” it.
curl -sk -b ps.cookies \ "https://10.20.5.40/BeyondTrust/api/public/v3/ManagedAccounts?type=domainlinked"
[{"ManagedAccountID":301,"AccountName":"svc-backup","DomainName":"FLIPKARTLAB","ManagedSystemID":54},
{"ManagedAccountID":302,"AccountName":"svc-report","DomainName":"FLIPKARTLAB","ManagedSystemID":61}]
# Empty list but the accounts exist? Check "Enable for API Access" on each
# account and that your runas user holds a Requestor or ISA role on them.Take any platform — say “40 Juniper routers on 172.16.30.0/24” — and answer cold: which scan credential and rights? Which Smart Rule type and criteria? Which functional account and password policy do the actions link? What are the dependencies, and what is excluded? If you can run that drill for Windows, AD, Linux, devices and databases, you can run a real rollout.
“Walk me through onboarding 1,000 servers” is a stock BeyondTrust interview question — answer with the pipeline (scan → Asset rule → Managed Account rule → phased waves → exclusions) and you sound like you have done it. The BeyondTrust University Password Safe Administration cert exam is 40 questions, 75% to pass, and only two attempts — Smart Rules and setup order are core blueprint territory.
Pause & Predict
Predict: a teammate onboards all 6,000 accounts on Friday at 7 PM with automatic password management enabled and default settings. What happens at 23:30 UTC, and what do you check on Monday? Type your guess.
Which account should be deliberately EXCLUDED from auto-onboarding with auto-rotation — by design, not by oversight?
🤖 Ask the AI Tutor
Tap any question — instant, scoped to this lesson. No login, no waiting.
Pre-curated from BeyondTrust docs + community Q&A, scoped to this lesson. For a live prod issue, paste your export into chat.techclick.in.
📝 Wrap-up assessment — six more
You've answered 4 inline. Six left. 70% (7 of 10) marks the lesson complete on your profile. Tap Submit all answers at the end.
🧠 In your own words
Type one line: In one line: why must a functional account exist before a single account can be onboarded from a system? Then compare to the expert version.
🗣 Teach a friend
Best way to lock it in — explain it in one line to a teammate. Tap to generate a paste-ready summary.
📖 Glossary
- Discovery Scanner
- The engine that performs all discovery scans and feeds assets into Password Safe; ships inside every Resource Broker and U-Series appliance.
- Address group
- The named set of IP ranges a discovery scan sweeps — keep them segment-sized to control noise and runtime.
- Scan credential
- The account the scanner authenticates with (Configuration > Discovery Management > Credentials); stored AES-256; needs true local admin on Windows targets.
- Smart Rule
- IF Selection-Criteria + THEN Actions automation that continuously re-evaluates and onboards/links assets and accounts. Four types: Asset, Managed Account, Managed System, Policy User.
- Smart Group
- The dynamic grouping a Smart Rule exposes (action: Show managed account as Smart Group) — what you assign access policies and permissions against.
- Functional account
- The worker credential Password Safe uses on a managed system to change other accounts’ passwords; created first, never checked out, never managed itself.
- Managed system
- A computer or device where Password Safe maintains account passwords — Windows, Unix/Linux, network devices, databases, directories.
- Managed account
- The privileged credential Password Safe stores and rotates on a managed system.
- Directory Query
- Smart Rule criteria that pulls matching accounts from AD/LDAP/Entra ID; external-data rules are documented to process slower.
- Linked (domain) account
- A domain account tied to managed systems via the Link domain accounts to Managed Systems action, so rotation propagates to dependent services.
- Reprocessing Limit
- Details-section throttle on how often a Smart Rule reprocesses (e.g., once a day) — protects processing capacity on big estates.
- Break-glass account
- Sealed emergency admin credential deliberately kept OUT of auto-rotation so it works even when Password Safe is down; alert on use, rotate manually after.
📚 Sources
- BeyondTrust Docs — Password Safe Getting Started (canonical setup order: functional account → password policy → assets → systems → accounts → Smart Rules; core definitions). docs.beyondtrust.com/bips/docs/ps-getting-started
- BeyondTrust Docs — Password Safe Smart Rules (types, Selection Criteria, exact action strings, processing triggers, Reprocessing Limit, the endless-overwrite-loop and LDAP-delay warnings). docs.beyondtrust.com/bips/docs/ps-smart-rules
- BeyondTrust Docs — BeyondInsight Discovery (Discovery Scanner role; Configuration > Discovery Management > Credentials; AES-256 credential storage). docs.beyondtrust.com/bips/docs/bi-on-prem-discovery-scans
- BeyondTrust Docs — BeyondInsight & Password Safe API (PS-Auth header, Auth/SignAppIn, ManagedSystems/ManagedAccounts endpoints; defaults: release 120 min, max 525600, ChangeTime 23:30 UTC). docs.beyondtrust.com/bips/reference/beyondinsight-and-password-safe-api-usage · docs.beyondtrust.com/bips/v24.3/docs/password-safe-api
- BeyondTrust Beekeepers community — discovery scan reports success but returns no services/accounts data (scan-account rights, UAC/NTLM/firewall, KB0017022). beekeepers.beyondtrust.com/general-40/discovery-scan-issue-6424
- BeyondTrust Beekeepers community — rotation fails with “Value cannot be null (Parameter identityValue)” = SID not resolvable in the directory. beekeepers.beyondtrust.com/general-40/managed-account-failed-to-rotate-password-value-cannot-be-null-6847
- BeyondInsight 24.3 release notes — Software collection checkbox now unchecked by default (slowed/failed scans); Domain Account Linking Smart Rule redesigned for performance. docs.beyondtrust.com/bips/changelog/beyondinsight-24-3-0
- BeyondTrust University — Get Certified (Password Safe Administration: 40-question exam, 75% pass, two attempts) — the cert/job angle for PAM admin roles. beyondtrust.com/services/beyondtrust-university/get-certified
What's next?
Vaulting an account is step one — keeping its password moving without breaking the 14 services that use it is the real game. Next: rotation policies, propagation to dependent systems, and SSH keys.