NHI Identities
Retrieve an identity
Changed onRetrieve a non-human identity, with its permissions and a summary of its secrets.
The API token must have the Manager access level or above, or be a service account token.
get/v1/nhi/identities/{identity_id}
Request
- Base URLhttps://api.gitguardian.com
- URLhttps://api.gitguardian.com/v1/nhi/identities/{identity_id}
- AuthHTTP bearer
Path parameters
identity_idinteger required
The id of the non-human identity
Response
The identity.
Example response
{
"id": 1234,
"name": "arn:aws:iam::123456789012:user/ci-deployer",
"companies": [
"MongoDB"
],
"detectors": [
{
"name": "aws_iam",
"display_name": "AWS Keys"
}
],
"detector_types": [
"specific"
],
"provider": {
"id": 56,
"type": "awssecretsmanager",
"name": "prod-eu-west-1"
},
"secrets_managers": [
{
"id": 56,
"type": "awssecretsmanager",
"name": "prod-eu-west-1"
}
],
"consumers": [
{
"id": 56,
"type": "awssecretsmanager",
"name": "prod-eu-west-1"
}
],
"endpoints": [
{
"id": 56,
"type": "awssecretsmanager",
"name": "prod-eu-west-1"
}
],
"breached_policies": [
"long_lived_secret"
],
"owners": [
{
"id": 42,
"email": "jane.doe@example.com"
}
],
"validity": "valid",
"permissions": [
"s3:GetObject"
]
}Changes
- info
endpoint added
- info