NHI Identity Owners

Add owners to an identity

Changed on

Add owners to a non-human identity, identified by their email address. Owners that already exist on the identity are kept.

An identity can have at most 5 owners.

The API token must have the Manager access level or above, or be a service account token.

post/v1/nhi/identities/{identity_id}/owners

Request

  • Base URL
    https://api.gitguardian.com
  • URL
    https://api.gitguardian.com/v1/nhi/identities/{identity_id}/owners
  • Auth
    HTTP bearer

Path parameters

identity_idinteger required

The id of the non-human identity

Request body

Example request

{
  "owners": [
    {
      "email": "jane.doe@example.com"
    }
  ]
}

Response

Owners were added.

Example response

{
  "owners": [
    {
      "id": 42,
      "email": "jane.doe@example.com",
      "user_id": 7,
      "confidence": 1
    }
  ]
}

Changes