Skip to content

Get user

Request

Retrieve a user by their identifier

Path
userIdstringrequired

The unique identifier of the user

Example:f0f1e06e-3005-4093-af7f-1934d55617e1
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);

Responses

OK

Bodyapplication/json
idstring or nullread-only

The unique identifier of the user

Example:"f0f1e06e-3005-4093-af7f-1934d55617e1"
emailstring or null

The email address of the user

Example:"api.developer@lawvu.com"
firstNamestring or null

The first name of the user

Example:"Api"
lastNamestring or null

The last name of the user

Example:"Developer"
organizationobject or null(OrganizationReference)read-only

The organization the user belongs to

departmentobject or null(DepartmentReference)

The department the user belongs to

directPhonestring or null

The direct phone number of the user

Example:"+64 9 123 4567"
jobTitlestring or null

The job title of the user

Example:"Legal Counsel"
mobilePhonestring or null

The mobile phone number of the user

Example:"+64 21 123 4567"
rolestring or null(UserRole)

The role of the user

Enum:"OrganizationAdmin""InHouseLegal""Contributor""Standard""External""MatterManager"
Example:"Standard"
statusstring or null(UserStatus)

The current state of the user's account

Enum:"Pending""Active""Invited""LockedOut""Deactivated"
Example:"Active"
createdobject or null(AuditableReference)read-only

The user who created the user and when

modifiedobject or null(AuditableReference)read-only

The user who last modified the user and when

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" } }