Create and invite a new user
auto_scribe.users.invite(UserInviteParams**kwargs) -> UserInviteResponse
POST/v1/autoScribe/users
Creates a new user in the AutoScribe system and sends them an invitation email. The user will have the specified permissions including report creation and study management capabilities. NPI number is required for users who can create reports.
Create and invite a new user
import os
from avara import Avara
client = Avara(
api_key=os.environ.get("AVARA_API_KEY"), # This is the default and can be omitted
)
response = client.auto_scribe.users.invite(
can_create_reports=True,
can_manage_studies=True,
clinic_role="Radiologist",
email="dr.johnson@hospital.org",
first_name="Sarah",
has_dashboard_access=True,
last_name="Johnson",
level="member",
)
print(response.middle_name){
"canCreateReports": true,
"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",
"npiNumber": "1234567893",
"phoneNumber": "5551234567",
"suffix1": "MD",
"suffix2": "FACR"
}Returns Examples
{
"canCreateReports": true,
"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",
"npiNumber": "1234567893",
"phoneNumber": "5551234567",
"suffix1": "MD",
"suffix2": "FACR"
}