Tag Info

Hot answers tagged

4

For a client solution I would use the Search REST API. The grouping has to be done on the client, it depends on how you configure your Managed Properties. The trick with People is to pass the correct Result Source ID in the query: For example: ...


4

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

You should use: using (SPSite site = new SPSite(_upa)) { SPServiceContext context = SPServiceContext.GetContext(site); UserProfileManager _upaManager = new UserProfileManager(context); // Chek if user exists if( _upaManager.UserExists("mydomain\\myuser")} { // The user exists } else{ // The User doesn't exists ...


3

When you changed the My Site Host URL did you extend and map it to your original my site host or did you just add the binding in IIS and then change AAM? Change the web application and ensure that all of the dependancies are working as well as changing the setting in the User Profile Service Application. Ensure that the URL you wish to use for the MySite ...


3

SharePoint has user profile synchronization service. It allows to sync AD user details with SharePoint user profile. You can configure mapping between attributes in AD and user profile properties. Once you configured syncronization you can access properties of users. If you need only send email, I guess it can work without syncronization, just by user. ...


3

I may be wrong, but I don't think there is an easy/elegant way to fix this without some sort of code. The easiest way to fix this, IMO, would be a post-import powershell script which iterates each item of the list, and for each field that needs a fix-up, it reassociates it with it's correct user. If you could get an export of the original site's ...


3

Peter Holpar has a very good article on this topic as it relates to SharePoint 2010. Generally speaking, it's very much the same in SP 2013. If the property is just going to be populated once from the WCF service and then SharePoint will be the owner of the property (i.e. where people go to update it) then you do not need a BCS model or the sync connection. ...


2

It was working fine until I changed the default zone's authentication method to allow FBA in addition to Win Auth (claims). Instead of changing the default zone, I think you should have extended the web application. If you can't switch things back to how they where, I would consider to restore the web application: Considerations when restoring a Web ...


2

If you are just using the default Windows authentication this should not be a problem at all - even with claims based authentication. Make sure the SharePoint URLs are in the "Intranet Zone" of the browser and your users should be logged on automatically - even without Kerberos. For this basic scenario you don't need ADFS or any other identity provider.


2

OR...you could NOT use PORT numbers for your MySite web application and either create a unique URL like http://mysite or http://my (or whatever works for your organization and culture). Then set trusted sites. OR, If the users are non-domain users (the new domain will trip an auth prompt when you switch hosts) you could create the MySite host under a ...


2

To answer your first question -> When you grant a specific user permissions to a site, they are added automatically to the hidden User Information list. As far as an Active Directory group -> The group gets added to the hidden User Information list, but the user does not get added until they access the site. (As an example, I granted an AD group ...


2

If you using SharePoint 2013 you can get user profile information more easily using the PeopleManager. This blog post contains an example: Real-world Apps for SharePoint 2013 - Kudos (Part 1)


2

Try resetting the Sync Information using Stsadm.exe –o sync –listolddatabases 0 Stsadm.exe –o sync –deleteolddatabases 0 See “User Profile Sync” doesn’t show update data even after multiple Full Profile Import


2

I was having the same issue and solution to the problem we got is to use following link to get the user profile photo instead of directly accessing picture url coming from sear result or accessing direct url to the image.. [https:///_layouts/15/userphoto.aspx?size=&accountname=&url=] size=S/M/L accountname=user's email url=url of image - optional - ...


2

You should be able to use the Search API to get a users ProfileViewsLastMonth and ProfileViewsLastWeek information. Here is a REST example: /search/_api/search/query?querytext='Elliot Wood'&sourceid='B09A7990-05EA-4AF9-81EF-EDFAB16C4E31'&selectproperties='ProfileViewsLastMonth,ProfileViewsLastWeek' sourceid='B09A7990-05EA-4AF9-81EF-EDFAB16C4E31' ...


2

goto site settings, under look and feel select image renditions. here you can fiddle around to choose what you want to show with an image when sharepoint renders the profile image. its found here: select the image (thumbnail) by hovering over and click on edit renditions these are the sizes to change to your liking: click on the selected size to ...


2

Users within Site Collections are stored within the Site Collection's own User Information List. Consider these islands from all other places where users reside. The Shared Service User Profiles are users imported from, typically Active Directory into the Profile database. It is possible that this functionality is not working properly, or was never set up, ...


2

private string GetPersonalSite(SPSite site) { var curUser = SPContext.Current.Web.CurrentUser; SPServiceContext context = SPServiceContext.GetContext(site); UserProfileManager upm = new UserProfileManager(context); UserProfile profile = upm.GetUserProfile(curUser.LoginName); return profile.PersonalUrl.AbsoluteUri; } that should work! ...


2

UserProfile.PersonalSite property gets the personal site of the User: var profileManager = new UserProfileManager(ServerContext.GetContext(SPContext.Current.Site)); var profile = profileManager.GetUserProfile("domain\\username"); using (SPSite personalSite = profile.PersonalSite) { var personalSiteUrl = personalSite.PersonalUrl; }


2

You need to setup Exclusion Filters for User Profile Synchronization in SharePoint to check for the 'disabled' flag on the Active Directory account. Then those accounts should be handled automatically. Specifically, to not synchronize disabled AD accounts, you set to exclude: userAccountControl Bit on equals 2 More info on that is here.


2

As long as you set the User Profile Sync to omit the Disabled User OU, the users will be removed from the import. You can also add the additional check for "disabled" but simply changing OU will work. Also, ensure that you are regularly running a search crawl of the User Profiles so that the user is removed from Search Results.


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

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


1

The way we do it to resolve sAMAccountName changes: run an incremental update to ensure the change has been picked up stsadm -o migrateuser to merge old account into new with the -ignoresidhistory flag Have a powershell script that iterates through all sites removing the old user account, remove-spuser run audience compilation


1

Disregarding what you are trying to do. The PowerShell to accomplish the read of the boolean field looks like this. (Tested in 2013) $context = Get-SPServiceContext -Site http://mysite $upm = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($context) $up = $upm.GetUserProfile("DHT\Ruby") $up["ShowHide"].Value This returns True if its ...


1

Ok I have the solution to this...nothing to do with either set of code. The reason its happening is that the SP domain i'm on (https://domain.sharepoint.com/) is trying to access the "-my" version on the domain (https://domain-my.sharepoint.com/) which is where the profile images are stored. Before any code us run you should access this -my domain to which ...


1

You might find my blogpost regarding the same topic useful: http://vrdmn.blogspot.in/2013/02/sharepoint-2013-working-with-user.html It shows how to specifically fetch the PictureUrl of the current user: http://sitename/_api/SP.UserProfiles.PeopleManager/GetMyProperties/PictureUrl


1

It looks like you are using 2010, but this should work in both 2010 and 2013. I'd try creating a managed property and assign the crawled property People:Manager. In the UPA you will probably have to mark Manager as indexable. Make the managed property queryable, searchable and retrievable if in 2013. Recrawl the user profiles and then perform the search ...


1

If your connection is of type "ActiveDirectoryImport", the methods of the classic sync-connection won´t work, because Microsoft implemented it in a different way. This is also reflected at http://msdn.microsoft.com/en-us/library/microsoft.office.server.userprofiles.connection.propertymapping.aspx where they state, that the Connection.PropertyMapping ...



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