New answers tagged

1

Please use below line to get original size picture. currentUserInfo.photo=getUPValue(xData.responseXML, "ows_EncodedAbsUrl"); Instead of currentUserInfo.photo=getUPValue(xData.responseXML, "PictureURL"); This ows_EncodedAbsUrl will give you the original picture's URL.


0

You need to use the SP.UserProfiles.js to get the URL of the user like this: SP.SOD.executeOrDelayUntilScriptLoaded(init, 'SP.UserProfiles.js'); var currentUser; function init(){ var targetUser = "SomeDomain\\SomeUserName"; // Get the current client context. var clientContext = new SP.ClientContext.get_current(); var peopleManager = new ...


0

Sites will be migrated when you change the Site Naming Format, but last I looked, not the user's username [using Move-SPUser].


0

The way I have done it in o365 which I think it is the same SP 2013. results object had the user properties var results = data.d.results; var image = siteURL + "/_layouts/15/userphoto.aspx?size=L&accountname="; <div class='contact-item'><div class='contact-profile-image'><img src='" + image + results[i].Person.EMail + "'></div>


1

Use Move-SPUser. $user = Get-SPUser -Identity "i:0#.w|domain\jdoe" -Web http://siteUrl Move-SPUser -Identity $user -NewAlias "domain\jdoe" -IgnoreSid That will translate the new user's identity into the old identity ('identity' being the SID). This cmdlet works farm-wide.



Top 50 recent answers are included