Skip to main content

Credential

A credential, such as an API key or access key, discovered from a connected source.

Properties​

NameTypeDescriptionNotes
idstrSystem-generated unique ID of the Object[optional] [readonly]
namestrName of the Object[required]
createddatetimeCreation date of the Object[optional] [readonly]
modifieddatetimeLast modification date of the Object[optional] [readonly]
descriptionstrDescription of the credential.[optional]
statusstrThe credential status reported by the source.[optional]
native_identitystrThe credential's unique identifier on the source.[optional]
environmentstrThe environment the credential belongs to.[optional]
sourceCredentialAllOfSource[optional]
resourceCredentialResource[optional]
dataset_idstrThe ID of the source dataset the credential was retrieved from.[optional]
typestrThe credential type.[optional]
scopestrThe scope the source reports for the credential.[optional]
expires_atdatetimeThe date and time the credential expires.[optional]
last_used_atdatetimeThe date and time the credential was last used.[optional]
ownersCredentialOwners[optional]
attributesmap[string]objectA map of curated credential attributes.[optional]
connector_attributesmap[string]objectA map of attributes sourced from the connector during aggregation.[optional]
manually_editedboolIndicates if the credential has been manually edited.[optional] [default to False]
}

Example​

from sailpoint.credentials.models.credential import Credential

credential = Credential(
id='id12345',
name='aName',
created='2015-05-28T14:07:17Z',
modified='2015-05-28T14:07:17Z',
description='Key used by the nightly export job',
status='Active',
native_identity='AKIAIOSFODNN7EXAMPLE',
environment='production',
source=,
resource=sailpoint.credentials.models.credential_resource.Credential Resource(
id = '8886e5e3-63d0-462f-a195-d98da885b8dc',
type = 'aws:iam-access-key',
name = 'nightly-export-key',
features = ["PROVISIONING"], ),
dataset_id='8886e5e3-63d0-462f-a195-d98da885b8dc',
type='ACCESS_KEY',
scope='read-write',
expires_at='2026-12-31T23:59:59Z',
last_used_at='2026-10-20T08:15Z',
owners=sailpoint.credentials.models.credential_owners.Credential Owners(
primary = null,
secondary = [{"id":"2c9180858082150f0180893dbaf44202","name":"Jane Doe","type":"IDENTITY"}], ),
attributes={"status":"Active"},
connector_attributes={"keyId":"AKIAIOSFODNN7EXAMPLE"},
manually_edited=True
)

[Back to top]