On this page
Before you start: Admin role and Principal’s database account (Prepare a target).
Swipe the screenshot sideways to see all of it, or tap it to open it full size.
- Circular arrows icon (Run discovery): read the target now, outside the schedule.
- Schedule of discovery and drift checks.
- Freshness of the data and the count of warnings.
- Found by discovery. Accounts that exist on the target but were not created by Principal. Review them to adopt or ignore.
- Access patterns. Groups of accounts with the same permissions, as candidates for templates.
- Add the target with Managed by Principal off (Observe). Avoid the three write actions in Resources.
- Open the target and click Run discovery.
- Expand accounts in Roles to review access.
- Click Manage it in the header.
- Click Adopt on a row (or Review & adopt under Access patterns).
- Under Mapping, pick New or Existing, then click Create identity and adopt or Confirm adoption.
- Open Drift and click Check all targets.
Swipe the screenshot sideways to see all of it, or tap it to open it full size.
Adopted accounts show Adopted, get a matching rule and are never deleted. Unmanaged accounts stay untouched. Fix drift rows with Fix drift.
Through the API#
- Test: POST
/targets(/test-connection kind,connection_ref) - Create: POST
/targets(kind,name,connection_ref) - Discover: POST
/targets, read GET/{id} /discover /resources/targets /{id} /inventory - Manage: PATCH
/targetswith/{id} {"managed": true}(observe returns422on adopt) - Preview POST
/targets, adopt POST/{id} /accounts /adopt /preview /targets:/{id} /accounts /adopt json{ "account_key": {"engine": "postgres", "role_name": "reporting"}, "identity": {"mode": "existing", "identity_id": "<identity-id>"}, "rules": [{"resources": ["pg://<target-id>/app/public/*"], "permissions": ["SELECT"]}] }