import getpass getpass.getuser()
It's been years but have you figured it out how to do this? I have the same problem
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.