Windows Authentication

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

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.