Tag Info

Hot answers tagged

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

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; } ...


1

Looks Like you enable the profile Picture importing from AD. Now if you want to stop the sync You have to follow these steps. Login on Central Admin with farm admin account go to Application Management > Manage Service Applications > Click on User Profile Services. On this Page Click on Manage User Properties > Edit the Picture Property Click Edit the ...


1

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


1

One approach, for example for "Prefix" would be to map the AD property personalTitle to a new User Profile Property that you create in the User Profile Service Application. If you are looking at Rank, it may be better to use a field like Job Title (which in AD is "title" that is already mapped to the User Profile Property JobTitle). Once you import your ...


1

$site = get-spsite "http://sis-intranet" #Give URL of a site collection whose web application is associated with this user profile service application $context= [Microsoft.office.server.servercontext]::GetContext($site) $userProfileManager = new-object Microsoft.office.server.userprofiles.userprofilemanager($context) $profiles = ...


1

The SharePoint Online PowerShell Module is extremely limited. As for CSOM, it seems that the UserProfiles namespace does not include any classes or methods to set the subtype.


1

Setting up Mysite fixed the problem.


1

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 + ...



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