var context = new SP.ClientContext.get_current();
web = context.get_web()
var currentUser = web.get_currentUser();
currentUser.retrieve();
context.load(web);
context.executeQueryAsync(
var userObject = web.get_currentUser();
console.log(userObject.get_email());
console.log(userObject.get_loginName());
console.log(userObject.get_title());
);
No comments:
Post a Comment