Get my own user profile
- async AsyncCogniteClient.iam.user_profiles.me() UserProfile
Retrieve your own user profile
Retrieves the user profile of the principal issuing the request, i.e. the principal this AsyncCogniteClient was instantiated with.
- Returns:
Your own user profile.
- Return type:
- Raises:
CogniteAPIError – If this principal doesn’t have a user profile, you get a not found (404) response code.
Examples
Get your own user profile:
>>> from cognite.client import CogniteClient, AsyncCogniteClient >>> client = CogniteClient() >>> # async_client = AsyncCogniteClient() # another option >>> res = client.iam.user_profiles.me()