New answers tagged

0

I assume that your SharePoint version is 2013 and User Profile service is working fine on your environment. You can use REST API to get user information from User Profile Service. $.ajax({ url: "http://<site url>/_api/sp.userprofiles.peoplemanager /getuserprofilepropertyfor(accountame=@v, propertyname='PictureURL') ...


0

You can use this piece of code to fetch data from Active Directory using JavaScript and then with the help of SPUtility or JavaScript set the value of fields. function getUserName() {  var wshNetwork = new ActiveXObject("WScript.Network");  var userName = wshNetwork.UserName;  return userName; }  function getAD(userName) {  //var name = userName.split("."); ...


0

You have to Inherit your page from Microsoft.SharePoint.WebControls.UnsecuredLayoutsPageBase Override the AllowAnonymousAccess property and return true protected override bool AllowAnonymousAccess { get{ return true; } }


2

Thank you for the answer Hardik. The topic you linked to seems to be the best and only example of doing this. Even though, I came up with another solution (an easier version of it), so I am posting it as an answer, in case some other people find it useful in the future :) What I did: Created a global List "UsersActivities" Creted two columns in the ...


4

Extensive explanation, tutorial, etc.: Find Number of Users Currently Logged on to a SharePoint Site The gist of it is that you don't have OOTB features to show you the number of currently logged in users. You can check IIS for current users, but you don't know whether these are logged on or not. The solution explained in the blog article is ...


1

Based on the error status, SharePoint is saying no personal site exists for the user. Did you check whether Mysites is properly configured and you are able to access the page? I have faced the same issue and resolved it by recreating the User Profile in my dev UPA You can also try some of the solutions proposed here ...



Top 50 recent answers are included