Is there any way to get the credentials (mainly Name and/or E-Mail) of the currently logged in Microsoft User in MS Edge via JavaScript?
In older IE Versions, there was the ActiveXObject
function, which would've allowed me to solve the problem like this, however this is depreactead and won't work in Edge:
var WinNetwork = new ActiveXObject("WScript.Network");
console.log(WinNetwork.UserName);
Another possible option for me would be to just fetch the Windows User but I don't think that's possible in JS as it's pretty limited to the browser or am I wrong?