Get the current caller’s principal

async AsyncCogniteClient.iam.principals.me() Principal

Get the current caller’s information.

Returns:

The principal of the user running the code, i.e. the

principal this AsyncCogniteClient was instantiated with.

Return type:

Principal

Examples

Get your own principal:
>>> from cognite.client import CogniteClient
>>> client = CogniteClient()
>>> # async_client = AsyncCogniteClient()  # another option
>>> res = client.iam.principals.me()