Tag Info

New answers tagged

0

Simple answer would be you should be using the same MySite host as the rest of the organization. MySite is closely linked with the User Profile and Search Service configuration and being in different OU's would not matter as long as they have been included in the AD connection configuration in the User Profile Service Application of the farm hosting the ...


1

Audiences have to be built and compiled before they can be used. Audiences are built in the User Profile Service area of Central Administration and are based on user profile properties. For example, you could create a Marketing audience where the membership includes everyone with the Department of Marketing. Once defined and compiled, it is available in ...


0

As the issue is reoccurring on a weekly basis it surely points out to a fault Timer Job. Please narrow down your ULS log and you'll find out the culprit. I read in a blog which I'll refer once I find the URL, there are couple of Jobs which can do this and out of them one is "Recycling Bin". You should surely set it to stop on Friday and see the result on ...


1

Office location is being user to get the location of the office i.e USA, UK, West campus etc.As this property is set the location using the term set. I think this property being used when a company having office in different locations and they categorized them in multiple zone i.e North America, South America. While on other hand office property get the ...


3

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


6

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


0

There's no need to make a request to the server when the userid is already loaded in browser. You can use: _spPageContextInfo.userId available in SharePoint 2013 and Online (wave 16).


0

@Yayati had a very helpful response, but I had to use "item.get_item('ID')" instead of item.ID in order to get it working for me. Here's my code: function getUserInfo(AccountName) { var clientContext = new SP.ClientContext.get_current(); var userInfoList = clientContext.get_web().get_siteUserInfoList(); var query = new SP.CamlQuery(); ...


1

You can get check the link for getting user info(ID, First Name, Last Name, Email, Username, Name) by User login Name. http://sharepoint.stackexchange.com/a/146788/40602 Use following way to set people or group field in javascript var user = User_ID + ';#' + User_Name; listItem.set_item(fieldName, users); listItem.update();


0

ExecuteOrDelayUntilScriptLoaded(init,'sp.js'); var currentUser; function init(){ this.clientContext = new SP.ClientContext.get_current(); this.oWeb = clientContext.get_web(); currentUser = this.oWeb.get_currentUser(); this.clientContext.load(currentUser); ...


1

The supported method is to migrate the User Profile Service Databases together - you can't do them separately. All your noteboard entries are stored in the UserProfile Social Database. You could try: Use API to query the user profile service and export the required values and then re-import them into destination farm. Attempt to use only the social ...


0

Maybe recreation of User Profile Sync would solve the issue. To start copy youe settigs: AD connection settings connection filters, DBC preffered search center Mysite host (and personal path) Audiencies (all other added manualy) Profile, Social and Sync DB names (to give the same name while recreating) Delete UPS and Sync DB: CA->Manage secive ...


1

There are a few methods that should help you here: GetPeers GetManagers GetDirectReports There is no "easy way" that I've found but you can write your own helper classes that use these methods.


0

As a Tenant Admin you can create new managed properties in Search to Retrievable for String and Yes/No data types. You do this in the Search Service Application under Search Schema. For other data types like Date and Decimal you have to reassign one of the preconfigured RefinableDATA## fields (RefinableDate01, RefinableDecimal02, etc.) I do this all the time ...


0

Actually, adjusting the import filters to reflect the new OU fixed this. – George Winters Apr 27 at 20:23


1

Below is your answer Guid fieldID8 = item.Fields.GetFieldByInternalName("MyField").Id; string valueField8 = item[fieldID8].ToString(); SPFieldUserValueCollection userField8 = (SPFieldUserValueCollection)item.Fields[fieldID8].GetFieldValue(valueField8); DataTable dt = new DataTable(); dt.Columns.Add("ImageUrl", Type.GetType("System.String")); ...



Top 50 recent answers are included