How to get windows user id in web2py for an intranet application?
If you mean you need code at the server to know the windows id of the current browser user, web2py isn't going to be able to tell you that.  Windows authentication has nothing to do with web protocols.
I'm using web2py for an intranet site and need to get current login windows user id in my controller. Whether any function is available?