Linked Credentials
Information about retrieving credentials linked to PAM resource records with the Secrets Manager SDKs.
About
Retrieving Linked Records
from keeper_secrets_manager_core import SecretsManager
from keeper_secrets_manager_core.storage import FileKeyValueStorage
from keeper_secrets_manager_core.dto.payload import QueryOptions
secrets_manager = SecretsManager(config=FileKeyValueStorage('ksm-config.json'))
# request links along with the records
# QueryOptions takes records_filter and folders_filter first; pass None for both to fetch everything
query = QueryOptions(records_filter=None, folders_filter=None, request_links=True)
records = secrets_manager.get_secrets_with_options(query)
for record in records:
for link in record.links:
print(f"{record.title} ({record.type}) -> {link['recordUid']}")
if link.get('path'):
print(f" path: {link['path']}")Link Object Structure
Field
Type
Description
User-link data (path is null)
Meta-link data (path is "meta")
Cross-SDK Reference
Query method
Request-links flag
Links accessor
Link shape
Method Reference (Java / Kotlin)
Method
Returns
Description
Important Notes
Last updated

