Retrieve a user by ID
/v1/viewer/users/{userId}
Retrieves a single user by their unique user ID. Returns the complete user object with all profile information, permissions, and status.
Path Parameters
userId: string
Unique user identifier. Format: usr_{32-hex-chars}
Returns
canManageStudies: boolean
Whether the user has permission to create, update, and manage studies
createdAt: string
Timestamp when the user was created
formatdate-time
email: string
User's email address for login and notifications
firstName: string
User's first name
minLength1
hasDashboardAccess: boolean
Whether the user can access the dashboard interface. Required for admin users
lastLoginAt: string
Timestamp of user's last login, null if never logged in
formatdate-time
lastName: string
User's last name
minLength1
userId: string
Unique user identifier. Format: usr_{32-hex-chars}
middleName: optional string
User's middle name (optional)
minLength1
phoneNumber: optional string
User's phone number (10-15 digits, optional)
suffix1: optional string
Name suffix (e.g., 'Jr.', 'Sr.', 'III') - optional
minLength1
suffix2: optional string
Additional name suffix (optional)
minLength1
Retrieve a user by ID
curl https://api.avarasoftware.com/v1/viewer/users/$USER_ID \
-H "Authorization: Bearer $AVARA_API_KEY"
{
"canManageStudies": true,
"clinicRole": "Radiologist",
"createdAt": "2024-01-15T10:00:00Z",
"email": "dr.johnson@hospital.org",
"firstName": "Sarah",
"hasDashboardAccess": true,
"invitedSource": "api",
"lastLoginAt": "2024-03-15T09:00:00Z",
"lastName": "Johnson",
"level": "member",
"userId": "usr_1234567890abcdef1234567890abcdef",
"middleName": "Marie",
"phoneNumber": "5551234567",
"suffix1": "MD",
"suffix2": "FACR"
}
Returns Examples
{
"canManageStudies": true,
"clinicRole": "Radiologist",
"createdAt": "2024-01-15T10:00:00Z",
"email": "dr.johnson@hospital.org",
"firstName": "Sarah",
"hasDashboardAccess": true,
"invitedSource": "api",
"lastLoginAt": "2024-03-15T09:00:00Z",
"lastName": "Johnson",
"level": "member",
"userId": "usr_1234567890abcdef1234567890abcdef",
"middleName": "Marie",
"phoneNumber": "5551234567",
"suffix1": "MD",
"suffix2": "FACR"
}