May I know if it is possible to obtain user’s Windows ID?
Hi @gegreg,
Yes it is possible. You can use os library of python.
Here’s how the code is:
import streamlit as st
import os
st.write(os.getlogin())
Sample Output:
SOMAN
(My Windows ID)
Hi somanyadav,
Thanks for providing me the idea. I tried and it shows the host id but not the user id.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.