diff --git a/mxcubecore/HardwareObjects/abstract/ISPyBDataAdapter.py b/mxcubecore/HardwareObjects/abstract/ISPyBDataAdapter.py index 82923c659b..8429298427 100644 --- a/mxcubecore/HardwareObjects/abstract/ISPyBDataAdapter.py +++ b/mxcubecore/HardwareObjects/abstract/ISPyBDataAdapter.py @@ -322,6 +322,15 @@ def get_sessions_by_code_and_number( self._error(str(e)) raise e + def get_person_by_username(self, username: str) -> Dict: + try: + person = self._shipping.service.findPersonByLogin(username) + return asdict(person) + except WebFault as e: + self._error(str(e)) + + return {} + def get_sessions_by_username( self, username: str, beamline_name: str ) -> LimsSessionManager: