@router.post('', name='users:create', status_code=status.HTTP_201_CREATED)
async def create_user_grid(current_user: UserPrivate=Depends(get_current_user), new_user: str=Form(...), file: Optional[UploadFile]=File(None)) -> str:
    if file:
        pdf_file = file.file.read()
    else:
        pdf_file = b''
    dict_user = json.loads(new_user)
    dict_user['daa_pdf'] = pdf_file
    user_schema = UserCreate(**dict_user)
    try:
        return syft_user_messages.create_user(user_schema, current_user)
    except Exception as err:
        logger.error(err)
        raise_generic_private_error()
@router.post(, name='users:create', status_code=status.HTTP_201_CREATED)
async def create_user_grid(current_user: UserPrivate=Depends(get_current_user), new_user: str=Form(...), file: Optional[UploadFile]=File(None)) -> str:
    if file:
        pdf_file = file.file.read()
    else:
        pdf_file = b
    dict_user = json.loads(new_user)
    dict_user['daa_pdf'] = pdf_file
    user_schema = UserCreate(**dict_user)
    try:
        return syft_user_messages.create_user(user_schema, current_user)
    except Exception as err:
        logger.error(err)
        raise_generic_private_error()