Retrieve a user by their identifier
- Sandbox APIhttps://api-sandbox.lawvu.com/v2/users/{userId}
- Production APIhttps://api.lawvu.com/v2/users/{userId}
const userId = 'f0f1e06e-3005-4093-af7f-1934d55617e1';
const resp = await fetch(
`https://api-sandbox.lawvu.com/v2/users/${userId}`,
{method: 'GET'}
);
const data = await resp.text();
console.log(data);OK
The unique identifier of the user
Example:"f0f1e06e-3005-4093-af7f-1934d55617e1"
The role of the user
Enum:"OrganizationAdmin""InHouseLegal""Contributor""Standard""External""MatterManager"
Example:"Standard"
The current state of the user's account
Enum:"Pending""Active""Invited""LockedOut""Deactivated"
Example:"Active"
Response
{ "id": "f0f1e06e-3005-4093-af7f-1934d55617e1", "email": "api.developer@lawvu.com", "firstName": "Api", "lastName": "Developer", "organization": { "id": 8134, "name": "Api Development Organization" }, "department": { "id": 123, "name": "Legal" }, "directPhone": "+64 9 123 4567", "jobTitle": "Legal Counsel", "mobilePhone": "+64 21 123 4567", "role": "Standard", "status": "Active", "created": { "dateUtc": "2024-12-25T00:00:00Z", "userName": "api.developer@lawvu.com" }, "modified": { "dateUtc": "2024-12-25T00:00:00Z", "userName": "api.developer@lawvu.com" } }