Tag Info

Hot answers tagged

5

Getting only the current user won't be enough to get user profile properties. You need to use the PeopleManager as well. Your code should look something like this: var context = SP.ClientContext.get_current() var web = context.get_web(); var user = web.get_currentUser(); var peopleManager = new SP.UserProfiles.PeopleManager(context); var personProperties = ...


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

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


3

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


3

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


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


3

The ObjectGUID is a binary string ( or octet string ), so what you are probably seeing is some random nonsense characters when you attempt display the value. The ObjectGUID actually follows a well-established standard - it's a UUID version 4. With this information, you should be able to decode the binary string into a readable string representation. Take ...


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

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

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.


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.


2

I was running into the same issues and it turned out I was referencing the wrong DLLs. I was also having issues with CreatePersonalSiteEnqueueBulk not being recognized. I was referencing the 15 version not the 16 version and also the 16 version I had was out of date. Be sure you are referencing the proper DLL and have the most up to date version. I'm now ...


2

You can expand the user field using following code CAMLQueryOptions: "<QueryOptions><ExpandUserField>True</ExpandUserField></QueryOptions>" Now you can extract username in success method by using string manipulation.


2

I have a Powershell function in my profile (it also handles loading all the CSOM modules too) that looks like this: #This will handle iterating through all the OD4B sites that have been provisioned #and setting an eDiscovery SCA and any other SCAs as necessary $sca = "user@domain.com" $Password = Read-Host -Prompt "Please enter your password" ...


2

Since I have to load the userprofile script, I had to use: SP.SOD.executeFunc('userprofile', 'SP.UserProfiles.PeopleManager', function() { var clientContext = new SP.ClientContext.get_current(); var personProperties = new SP.UserProfiles.PeopleManager(clientContext).getMyProperties(); clientContext.load(personProperties); ...


1

The look and feel in your screenshot is the new look and feel of the mysite. Microsoft did some changes to the look and feel of SharePoint Online. These updates were deployed during summer of 2014. To mimic the old look and feel, you can create a new master page and CSS file and deploy these to all your mySites. However there is no guarantee that your ...


1

I've exactly the same problem with you. You can delete the current connection and create a new one, then start synchronize it. And try to focus on Sync Status on screen when you starting sync to see if there is any change there. If not, I think difinitely cause of sync.


1

SP.UserProfiles.PersonProperties.userProfileProperties property returns an a dictionary of property name keys and their string values. In JavaScript you could use the following syntax to access value in a dictionary: myProperties.get_userProfileProperties().UserName or myProperties.get_userProfileProperties()['UserName'] Example var context = ...


1

If you are OK with a code based solution, use the Client side object model to connect to your tenant's user profile service and export the data. Here is a good post to do it. You will have to loop through all the user profiles and export the data. You can also make use of the people search data. Query the people search using the rest API to get all the ...


1

Since he references my post I figured I should answer your question. After creating your Managed Property you can set the FullTextIndex property like this. $managedproperty.FullTextIndex = "PeopleIdx" $managedproperty.Update()


1

The REST API for the user profile service is read only. What I would suggest is that your registration app create an entry in a list with the required details and then you use an event receiver on that list to build the profile for the user.


1

In order to get your search working on the people properties you need to do some more configuration. Once you have imported the user profiles into SharePoint, you need to configure the people search. Refer this link to configure people search. Also, in the search service application, make sure that you have the managed property for the property you want to ...



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