Tag Info

Hot answers tagged

5

You cannot change any properties in the User Profiles via client OM code (neither .NET nor via JavaScript) with the exception of the user's profile picture. MSDN - Work with user profiles in SharePoint 2013 Not all functionality that you find in the Microsoft.Office.Server.UserProfiles assembly is available from client APIs. For example, you have ...


3

This was a bug in the April CU. The June CU Apparently fixes this.


3

If you have Exchange Online as well, you can use Powershell Set-UserPhoto. The cmdlet works for both on-premise and online.


3

it looks like your workflow is picking up the last instance of the found pool of names! so in your case, you have the name JDOE, the workflow in AD picks up JDOE and JDOE1 and JDOE2 it would then return JDOE2 as its the last occurance in the array of returned items. If in the people picker you had JDOE1 it would return JDOE1 only and send the mail to ...


3

When ever you make a change in AD for one user or all users, You have to run the User Profile Sync Crawl. You can schedule it daily /weekly or what ever. We schedule incremental every night so that all the changes imported from AD to SharePoint.Run Full Profile Import once a month.


3

in this case msdn is you best friend. As i created it for the company that i work for i could answer this for you ;) mysite limmit for webapplication first you need to understand what is a mysite? a mysite is a site collection. The mysite when setup if done according to best practice should be hosted on its own web application. This web application ...


2

Choice JS or Server OM depends on you. For example if you think that in the future you will need the same code in SP Online, in that case is better write the code in JS. The main object for that is PeopleManager. This is an example of JS code: var personProperties; // Ensure that the SP.UserProfiles.js file is loaded before the custom code runs. ...


2

Can you describe WHY you want info in the User Info List? Generally you sync with the User Profile Service and leave the User Info List alone. I think you don't understand the architecture. There are many great guides on the topic, the best by far is Spence Harbar's: http://www.harbar.net/articles/sp2010ups.aspx It says 2010 but applies to 2013 as well. ...


2

You need to go to Document Library Ribbon -> Under Library -> Library Settings -> Permissions for this document library OR simply Document Library Ribbon -> Under Library -> Library Permissions By default the document library will be inheriting permissions from Site, you need to click "Stop Inheriting permissions" ribbon button to stop that.. Than you ...


2

You could follow eirikb's suggestion and create a Console Application project in VS to run it. Or you could scrap the whole RWEP bit and just use the SharePoint 20xx Management Shell / PowerShell since it's a one off run. $site = Get-SPSite "http://yoursite" $user = $site.RootWeb.SiteUsers.GetByEmail("theemail@domain.com") $user.Email = ...


2

There is a typo in SOAP message (newData variable). Bellow is valid SOAP message for ModifyUserPropertyByAccountName operation: var msg = "<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' ...


2

This example uses the User Profiles object model to display the user profile properties that exist on the server. Replace servername with an actual value before running the code example. Also add references to the following in your Microsoft Visual Studio project: Microsoft.Office.Server Microsoft.Office.Server.UserProfiles Microsoft.SharePoint System.Web ...


2

Everything you describe here is EXACTLY what the User Profile Service is built for. Can you explain that to your client? Tell them that you can use the User Profile Service and be done in a couple hours or spend days, weeks, months working around it and they will never be happy, finally returning to the User Profile Service. Sometimes it is your ...


2

I assume you have a customized page where these users enter the User's name and then you replace all instances of that name with a new one... To do this client side, you need to use the 'SearchPrincipals" webservice. It will return a list of possible matches based on a name/email/login name. You might also be interested in this client side People Picker ...


2

I ran into the same issue, user account was a farm admin, local machine administrator, had local run as rights on the server, cleared the SP cache, pretty much everything you tried I had tried. I found out that the April 2014 CU contained a fix (http://support.microsoft.com/kb/2760265) where the User Profile Syncrhonisation service will not run when using ...


2

If you need Cost Center in the user info list, you have to mark it as Replicable in the User Profile Service Application. I never use the User Info List for these types of solutions, I always use Search, it is significantly faster and more scalable. You have to: Crawl your user profiles. Promote the People: Cost Center property to a managed property ...


2

Try this: var profileManager = new UserProfileManager(ServerContext.GetContext(SPContext.Current.Site)); var profile = profileManager.GetUserProfile("domain\\username"); //instead of GetUserProfile use GetUserProfile(True); using (SPSite personalSite = profile.PersonalSite) { var personalSiteUrl = personalSite.PersonalUrl; } ...


2

You can use CSOM or REST api to get user's personal MySite url. //Get user's personal MySite url SP.SOD.executeFunc('sp.js', 'SP.ClientContext', GetUserProfileProperties); function GetUserProfileProperties() { //Get the current user's account information $.ajax({ url: _spPageContextInfo.webServerRelativeUrl + ...


2

This is just an expansion of @aveenavs answer, which works great for me, unless the user is on the root site of the application. The only difference is using _spPageContextInfo.webAbsoluteUrl instead of _spPageContextInfo.webServerRelativeUrl in the url in the ajax call. So I would change it to this: //Get user's personal MySite url ...


2

You cannot use 1 site collection for all. Each profile has its own site collection. You need to have MySite specific solution where you have a Web scoped feature that adds the masterpage to the masterpage gallery and sets the masterpage for the site collection through the FeatureActivated eventreceiver.


2

No it's not possible. Here is a link: http://community.office365.com/en-us/forums/148/p/173261/505321.aspx?ss=5b31d473-26f2-41da-8c36-9397d1d2fad2#505321


2

The MyLinks control is hidden in SharePoint 2010, but as you point out still present in both 2010 and 2013. The links are part of the User Profile. So they are in the User Profile Database. You can access them via the QuickLinksManager and the User Profile Property "QuickLinks". I should point out that the preferred technique in 2010 and 2013 is to use Tags ...


2

First thing is check that you are actually syncing. I would first visit Central Administration and under your user profile service execute a full sync and verify it runs. There is a visual queue that it's running on the user profile service page. After it runs you can check to see if the user name is updated. I would also look directly and the users ...


2

Yes, this is correct. In our intranet we use disabling user to prevent unauthorized access. So the way this user references remain intact and guarantee the security of sensitive information. Hope this helps you.


2

I would try using Search REST API for this. The API can be used to query User Profiles and return the path to their My Site. You could even create a A-Z directory if you wanted. Very easy to do with search.


2

You can disable the timer job responsible for sending mail for MySite Suggestions Email job. From Central Administration, click Monitoring Under the Timer Jobs heading, click Review job definitions Scroll down (or click through pages) until you find a job called User Profile Service - User Profile My Site Suggestions Email Job


2

I would recommend using a query against the change log. The "Event Receiver" really isn't it's just a timer job using the same approach detailed in the article. You could even run it all external to SharePoint from PowerShell if you wanted. No need to deploy custom code to SharePoint.


1

You could use SPWeb.SiteUserInfoList to get the users (UserInfo) of the site collection (RenderUsers method) and then render User profile link (RenderUser method) as demonstrated below: private void RenderUsers(SPWeb web, int groupId, HtmlTextWriter output) { var query = new SPQuery(); query.ViewFields = ...


1

using (SPSite site = new SPSite(userProfile.PersonalSite.ID, this.Site.Zone)) { string redirectURL = SPUrlUtility.CombineUrl(site.Url, SourceUrl); CommonHelper.RedirectToPage(redirectURL, false, false, this.Context); } Do not forget about Zone!


1

The problem is that because you're in a SharePoint Hosted app, you're in a separate domain than SharePoint. Since the user profiles belong to the SharePoint host domain, and not the app domain, getting user profiles from the current context will return nothing. In order to get them, you need the cross-domain library: SP.RequestExecutor.js. Now, I've not ...



Only top voted, non community-wiki answers of a minimum length are eligible