curl --request GET \
--url https://auth.cognite.com/api/v1/principals/me{
"userIdentifier": "-cFNuYkHgnn5q8pnlVlCRg",
"displayName": "Jane Doe",
"pictureUrl": "https://auth.cognite.com/api/v1/orgs/cog-cognite/principals/HByt5JcYe1jYgnN5kFSGikthqcFHJjg4kxciGBFUWbBFv4unyt/picture?_n=1730959200&_e=1731067200&_k=EdCqRojhpCzDNF6JrrpfZgp",
"identityType": "USER",
"lastUpdatedTime": 1730204346000,
"givenName": "Jane",
"surname": "Doe",
"email": "jane.doe@example.com"
}Deprecated in favor of the new endpoint.
Retrieves the user profile of the principal issuing the request.
curl --request GET \
--url https://auth.cognite.com/api/v1/principals/me{
"userIdentifier": "-cFNuYkHgnn5q8pnlVlCRg",
"displayName": "Jane Doe",
"pictureUrl": "https://auth.cognite.com/api/v1/orgs/cog-cognite/principals/HByt5JcYe1jYgnN5kFSGikthqcFHJjg4kxciGBFUWbBFv4unyt/picture?_n=1730959200&_e=1731067200&_k=EdCqRojhpCzDNF6JrrpfZgp",
"identityType": "USER",
"lastUpdatedTime": 1730204346000,
"givenName": "Jane",
"surname": "Doe",
"email": "jane.doe@example.com"
}Principal's profile data
Uniquely identifies the principal the profile is associated with.
"-cFNuYkHgnn5q8pnlVlCRg"
The display name for the user.
"Jane Doe"
The avatar of the service account
"https://auth.cognite.com/api/v1/orgs/cog-cognite/principals/HByt5JcYe1jYgnN5kFSGikthqcFHJjg4kxciGBFUWbBFv4unyt/picture?_n=1730959200&_e=1731067200&_k=EdCqRojhpCzDNF6JrrpfZgp"
USER The number of milliseconds since 00:00:00 Thursday, 1 January 1970, Coordinated Universal Time (UTC), minus leap seconds.
x >= 01730204346000
The user's first name.
"Jane"
The user's last name.
"Doe"
The user's email address (if any). The email address is is returned directly from the identity provider and not guaranteed to be verified.
It should
not be used to uniquely identify as a user. Use the userIdentifier property instead.
"jane.doe@example.com"
Was this page helpful?