Skip to main content

IdentitiesService

A list of all methods in the IdentitiesService service. Click on the method name to view detailed information about that method.

MethodsDescription
list_enriched_identitiesReturns all Identities with enriched metadata in the org
create_identityCreates a new identity. An identity represents a human, service, or workload.
get_identityReturns the details of an identity.
update_identityUpdates an identity.
delete_identityDeletes the specified identity.

list_enriched_identities

Returns all Identities with enriched metadata in the org

  • HTTP Method: GET
  • Endpoint: /identities

Return Type

List[Identity]

Example Usage Code Snippet

from test_sdk import TestSdk

sdk = TestSdk(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)

result = sdk.identities.list_enriched_identities()

print(result)

create_identity

Creates a new identity. An identity represents a human, service, or workload.

  • HTTP Method: POST
  • Endpoint: /identities

Parameters

NameTypeRequiredDescription
request_bodyIdentityParamsThe request body.

Return Type

Identity

Example Usage Code Snippet

from test_sdk import TestSdk
from test_sdk.models import IdentityParams

sdk = TestSdk(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)

request_body = IdentityParams(
abbey_account="abbey_account",
source="source",
metadata="metadata"
)

result = sdk.identities.create_identity(request_body=request_body)

print(result)

get_identity

Returns the details of an identity.

  • HTTP Method: GET
  • Endpoint: /identities/{identity_id}

Parameters

NameTypeRequiredDescription
identity_idstrThe ID of the identity to retrieve

Return Type

Identity

Example Usage Code Snippet

from test_sdk import TestSdk

sdk = TestSdk(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)

result = sdk.identities.get_identity(identity_id="identity_id")

print(result)

update_identity

Updates an identity.

  • HTTP Method: PUT
  • Endpoint: /identities/{identity_id}

Parameters

NameTypeRequiredDescription
request_bodyIdentityParamsThe request body.
identity_idstrThe ID of the identity to retrieve

Return Type

Identity

Example Usage Code Snippet

from test_sdk import TestSdk
from test_sdk.models import IdentityParams

sdk = TestSdk(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)

request_body = IdentityParams(
abbey_account="abbey_account",
source="source",
metadata="metadata"
)

result = sdk.identities.update_identity(
request_body=request_body,
identity_id="identity_id"
)

print(result)

delete_identity

Deletes the specified identity.

  • HTTP Method: DELETE
  • Endpoint: /identities/{identity_id}

Parameters

NameTypeRequiredDescription
identity_idstrThe ID of the identity to delete

Example Usage Code Snippet

from test_sdk import TestSdk

sdk = TestSdk(
access_token="YOUR_ACCESS_TOKEN",
timeout=10000
)

result = sdk.identities.delete_identity(identity_id="identity_id")

print(result)