Current User with SPService

To get the current user info just use the SPServive to retrive all information you need.

var thisUsersValues = $().SPServices.SPGetCurrentUser({
fieldNames: [“Title”, “EMail”, “Office”, “LastName”, “FirstName”, “WorkPhone”],
debug: false
});
console.log(“Display name: “+ thisUsersValues.Title);

Leave a Reply

Your email address will not be published. Required fields are marked *