Menu
Retrieve User
Retrieve a user
GET
/projects/{projectId}/users/{userId}Use it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Retrieve User action (under Projects).
- Fill in the fields below, then reference the result from later steps as
{{retrieveUser.response.data}}.
Request
Path parameters
Response
Returns 200 with an object. Read it in later steps with {{retrieveUser.response.data.<field>}}.
{
"id": "string",
"sanityUserId": "string",
"projectId": "string",
"displayName": "string",
"familyName": "string",
"givenName": "string",
"middleName": "string",
"imageUrl": "string",
"email": "string",
"createdAt": "2025-01-01T00:00:00Z",
"updatedAt": "2025-01-01T00:00:00Z"
}
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?