@@ -384,6 +384,7 @@ async def find_user_handler(
384384 username : Optional [str ] = Query (None ),
385385 email : Optional [str ] = Query (None ),
386386 user_id : Optional [uuid .UUID ] = Query (None ),
387+ application_id : uuid .UUID = Query (None ),
387388 db_session = Depends (yield_db_session_from_env ),
388389) -> data .UserResponse :
389390 """
@@ -392,6 +393,7 @@ async def find_user_handler(
392393 - **username** (string, null): Username
393394 - **email** (string, null): User email
394395 - **user_id** (uuid, null): User ID
396+ - **application_id** (uuid, null): Application ID
395397 """
396398 if token_restricted :
397399 raise HTTPException (
@@ -401,7 +403,11 @@ async def find_user_handler(
401403
402404 try :
403405 user = actions .get_user (
404- session = db_session , username = username , email = email , user_id = user_id
406+ session = db_session ,
407+ username = username ,
408+ email = email ,
409+ user_id = user_id ,
410+ application_id = application_id ,
405411 )
406412 except actions .UserInvalidParameters :
407413 raise HTTPException (
@@ -417,6 +423,7 @@ async def find_user_handler(
417423 created_at = user .created_at ,
418424 updated_at = user .updated_at ,
419425 autogenerated = user .autogenerated ,
426+ application_id = user .application_id ,
420427 )
421428
422429
0 commit comments