In a Java application using System.getProperty("user.name"); You can get the user name, under which you went to the computer. Is there a similar possibility in JavaScript in the browser to get the user login, as does Java?

Maybe there is an opportunity to do this through Active Directory? So that you can get it in the browser name.

  • eight
    I really hope not. I would not want any site to know exactly my personal data without my explicit consent. - VladD
  • 2
  • I think that not even all OSs have such a thing as a username for login. For example, in Android, the maximum name is used by default. And Android also has a browser, oddly enough - Vladyslav Matviienko
  • Guys help please solve the issue))) I have a corporate network, I was able to write a code for working with Active Directory (I can get the name, I can get the soap). But search in AD is carried out on such a filter as the user name. And it turns out a dilemma, colleagues will only use the web service, so I somehow need to get this username, but how? Or maybe you can somehow get a user using a servlet and Active Directory? Or maybe JavaScript itself can work with Active Directory? - Vorobey.A
  • one
    This code does not work. This is java code in js code? - Vorobey.A

0