How can I get the username from the client computer connected to my Streamlit app?


I am new to Streamlit and to the world of coding. I need to create a log that includes the user entering the data. The computer is shared between users and each user has a corporate account. I do not want to create another login form that will require them to create another password. I will like to get the username from the user’s computer. In python, I can use user = os.getlogin() but that will get the user of the computer hosting the app. All user’s computers are windows.

Thanks in advance for your help.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.