GET Identity/Self

Returns the Web SDK caller's self identity and all identities associated with the authenticated identity.

Requirements

  • Permissions: The caller is not required to have any special permissions.
  • Token scope:  Any valid scope, such as Agent, Certificate, or SSH

Headers

  • Content type: Content-Type:application/json.

  • Token: The bearer access token that you received. For example, Authorization:Bearer 4MyGeneratedBearerTknz==. For more information, see Passing a bearer token in your API calls.

Parameters

None.

Returns

Response description

Name

Description

Identities

An array of Identity Entry object values associated with the caller's identity. The element at index 0 is self.

Example: List all identities for an authenticated identity

Request

GET https://tpp.venafi.example/vedsdk/Identity/Self
Authorization:Bearer 4MyGeneratedBearerTknz==

Response

HTTP/1.1 200 OK
{
   "Identities":[
      {
         "FullName":"\\VED\\Identity\\admin",
         "Name":"admin",
         "Prefix":"local",
         "PrefixedName":"local:admin",
         "PrefixedUniversal":"local:{b6e6a98b-6419-4497-9249-860d136dfba0}",
         "Type":1,
         "Universal":"{b6e6a98b-6419-4497-9249-860d136dfba0}"
      },
      {
         "FullName":"\\VED\\Identity\\Everyone",
         "IsGroup":true,
         "Name":"Everyone",
         "Prefix":"local",
         "PrefixedName":"local:Everyone",
         "PrefixedUniversal":"local:{4e981b79-333c-4756-9434-45d4e1559ca7}",
         "Type":2,
         "Universal":"{4e981b79-333c-4756-9434-45d4e1559ca7}"
      },
      {
         "FullName":"\\VED\\Identity\\Local",
         "Name":"Local",
         "Prefix":"local",
         "PrefixedName":"local:Local",
         "PrefixedUniversal":"local:{998b175f-795c-4e57-9fd8-7da74dc37080}",
         "Type":32,
         "Universal":"{998b175f-795c-4e57-9fd8-7da74dc37080}"
      }
   ]
}