Friday, February 15, 2019

Fish out specifics about the user from adal.js!

Assuming .GetUserInfo() as described here...

let user = activeDirectoryContract.GetUserInfo();
let name = user.profile.unique_name;
let email = user.userName;

 
 

Well, email is going to end up with the user's e-mail address in it and name will have the active directory login username complete with the leading domain separated by a backslash.

No comments:

Post a Comment