Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, November 11, 2011 11:42 AM
Hi,
We have a staff account that doesn't show up in the staff search on SharePoint.
In Manage User Profile, I can't find this person under "Active Profiles", but the account shows up under "Profiles Missing from Import". Using Edit Profile, I can see the account is in an incorrect OU.
Went to AD and confirmed the account is enabled. But the account on AD is in a new container.
I suspect this account has expired/disabled at some point in the past. That is the only reason that a user profile appears in Profiles Missing from Import, am I correct in saying so? Most of the people's profiles who have left the organisation behave in such way.
I suspect this is a staff probably left the uni at some point, then came back again.
Someone recreated this staff account on AD with the exact same account name, but with a new GUID.
SharePoint still has this staff profile with the same account name but the old GUID.
Hence the sync can't pick up anything for this account name.
Am I correct in thinking so?
Trying to resolve the problem, I've manually removed this user profile from the "Profiles Missing from Import" list.
I've even run the my site clean up job manually. we don't have my site set up at the moment.
But the overnight sync still didn't import this staff account from AD.
I tried to manually create the profile using "New Profile" from "Manage User Profile", I got a message saying can't create the profile because it already exists.
What should I do next?
Many thanks
All replies (4)
Thursday, November 17, 2011 5:12 PM ✅Answered
Hi,
Got some good news. Got to the buttom of this mystery. Since sharepoint complains there is still a profile exist even after I've removed the profile from the missing from import list. So I went to the profile_full table to search by the staff name. The search returned nothing. So there is no issue as to the deleted column is marked.
So I say ok, I'll search by alias. And then the second hidden profile appeared.
For example, if the staff name is John Smith. Search by John Smith returned nothing. But search by smithj returned an active profile.
So someone probably has tried to manually add the profile to sharepoint or someone has tried to do something on AD that shouldn't happen.
So two profiles exsit on the sharepoint both with account ID as smithj, but one with display name as John Smith, the other has display name as smithj.
This is where things messed up.
Removed one profile from the missing from import list, and then updated the active profile with the correct fields. The overnight import job also synced the profile correctly. Issue resolved.
Marked this as the answer. Hope this can help others.
Monday, November 14, 2011 3:48 AM
Hi homer,
Thanks for your post.
As I understand, the account is enabled, but it always appear in the “Profiles Missing from Import” view. So please try to check the things below:
1. Mare sure the user OU are included in Profile Service Sync Service connection Containers.
2. Please check the “Sync filter” for the service, and make sure the account are not include in the Exclusion Filter for Users.
Also try to do a full importing.
http://support.microsoft.com/kb/827754
Monday, November 14, 2011 11:05 AM
Hi,
Many thanks for the reply.
I've checked the configuration of the syn connection. The OUs are selected. I've checked other accounts in the same OUs. They are present in sharepoint as active profiles.
The two filters we have are "employeeID is not present" and "accountExpires is present". In AD, the account in questions does have an employee ID and the account never expires.
As this is a live sharepoint staff intranet portal, I've read some articles on the net indicating that a full sync is not recommended.
I've manually deleted this user profile from the "Profiles Missing from Import" list through central admin->manage user profiles.
My thinking is since it is in the list of "Profiles Missing from Import", this might be the reason why sharepoint can't sync the account for some reason. In AD the account looks completely normal, but it is possible it expired at one point and recreated with the exact same account name again later on.
So I thought if I remove this account completely from the user profile database on SharePoint, and see if sharepoint imports it properly.
But it seems SharePoint marked the account as deleted rather than actually removed the account from the profile database.
How do I check if a user profile is actually removed from the user profile database on sharepoint?
The closet thing I can find is the following article;
I assume it means run the $UserProfileManager.RemoveUserProfile command in SharePoint 2010 Management Shell.
I've never done this before, so a step by step guide on checking profile exsitence and remove a profile would be really helpful.
Many thanks.
Thursday, October 4, 2012 1:17 PM
If you can't find his profile in the UI, but you get an error when you try to recreate it, I suggest deleting his account via PowerShell...
Open the User Profile Service Manager: **** if you get an error here, you dont have access to the User Profile Service****
{
#Get the USer Profile Service Information
#URL for Central Admin (where the User Profile service lives)
$caUrl="http://central-admin:5000";
$site= new-object Microsoft.SharePoint.SPSite($caUrl);
$servercontext=[Microsoft.Office.Server.ServerContext]::GetContext($site);
$userprofilemanager=new-object microsoft.office.server.userprofiles.userprofilemanager($servercontext);
$p = $userprofilemanager.getUserProfile("domain\username");
$userprofilemanager.RemoveProfile($p)