A
A
andreystrelkov2014-07-07 11:05:52
JavaScript
andreystrelkov, 2014-07-07 11:05:52

How to find out the name of the current authorized user in Active directory using Javascript code?

Good afternoon, is it possible, using a few lines when, to find out the name of the current user from AD?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maksim Zverev, 2014-07-07
@andreystrelkov

In IE

var WinNetwork = new ActiveXObject("WScript.Network");
alert(WinNetwork.UserName);

Other browsers must have an ActiveX plugin installed.

A
Alexander Borisovich, 2014-07-07
@Alexufo

No plugins installed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question