import getpass getpass.getuser()
It's been years but have you figured it out how to do this? I have the same problem
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.