I am running with an issue to accessing AD users in Sandbox solution. Can anyone has idea how to do that.
I know how to do in normal SharePoint 2010 solution. But I am not able to do in the same way. :(
UserProfileManager profileManager = new UserProfileManager(SPServiceContext.Current);
UserProfile up = null;
up = profileManager.GetUserProfile(LoginName);
Any help is highly appreciated.