Posts Tagged ‘User’
Sync User account in SharePoint from Active Directory
– Log into the WFE server and performed below steps:
Get-SPUser -identity “Domain\Account” -web http://site_collection_url
UserLogin DisplayName
——— ———–
Get-SPUser -identity “Domain\Account” -web http://site_collection_url -syncfromad
set-SPUser -identity “Domain\Account” -web http://site_collection_url -syncfromad
User account not in sync with Active directory
We had few user accounts, which were added to the site in past but they left the organization. Now when they are back and there details are changed in active directory but similar account is used. It seems that the account is not updated automatically with SharePoint site.
Hence We followed below PowerShell commands to rectify the issue:
Get-SPUser –identity “Domainname\Account ID” -web http://yousitecollection | select *
It will show some output like below:
+++++++++++++++++++++++++++++++++++++++++++
UserLogin : Domainname\Account ID
DisplayName : User Display name
Name : user name
Email : user email
Notes :
LoginName : Domainname\Account ID
Groups : {}
OwnedGroups : {}
ID : 2914
Xml : <User ID=”2914″ Sid=”S-1-5-21-2077763542-2135228977-565468543-463992″ Name=”user name” LoginName=”Domainname\Account ID” Email=”user email” Notes=”” IsSiteAdmin=”False” IsDomainGroup=”False” Flags=”0″ />
RawSid : {1, 5, 0, 0…}
Sid : S-1-5-21-2077763542-2135228977-565468543-463992
IsSiteAdmin : False
IsSiteAuditor : False
IsDomainGroup : False
IsApplicationPrincipal : False
RequireRequestToken : False
AllowBrowseUserInfo : True
Alerts : {}
UserToken : Microsoft.SharePoint.SPUserToken
RegionalSettings :
ParentWeb : Indianapolis Facilities Management
Roles : {}
+++++++++++++++++++++++++++++++++++++++++++++++
Options 1
Run below command to sync the user from AD to the site collection
Set-SPUser –Identity USER_ID –SyncFromAD –Web http://SITECOLLECTIONURL
Options 2
Hence first remove the old account from the site collection by running the command:
Remove-SPUser -Identity Domainname\Account ID -Web http://yousitecollectionurl
After that add the user again on the site by search his fresh/new user account using address book.
SharePoint 2010: Removed account showing up on site
ISSUE:
+++++++
Once in a while you will find that in SharePoint 2010, when users go to there mysite and click on “Organization”, they can still see the users who are no longer reporting to them or left the organization.
RESOLUTION:
+++++++++++
– Browse your central admin site
– Go to “Application Management”
– Click on the “Manage Service Applications”
– Click on “User profile service” Application
– Now under the Central Administration Manage Profile Service: User Profile Service, click on “Manage User Profiles”
– Once you get to the page http://<CA site url>/_layouts/ProfMngr.aspx, change the view to “Profiles Missing from Import”
– In the box “Find profiles” type the user account name and click “Find“[Note: You can get the user account name by going to mysite and clicking on the picture of the user, who is no longer there but still showing]
– Select the user account which comes up in search results and delete the account
– Now go to your mysite and you will find that the user is no longer showing under your “Organization” tab
User Profiles: “Error while querying for whether the import is in progress: System.Net.WebException:”
ISSUE:
=======
Errors in ULS log files under C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\LOGS
07/14/2009 15:30:43.93 OWSTIMER.EXE (0x06BC) 0x0080 SharePoint Portal Server User Profiles 0 Medium User Profile Import: Error while querying for whether the import is in progress: System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. —> System.IO.IOException: Authentication failed because the remote party has closed the transport stream. at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) at System.Threading.ExecutionContext.Run(ExecutionContext executionCo…
07/14/2009 15:30:43.93* OWSTIMER.EXE (0x06BC) 0x0080 SharePoint Portal Server User Profiles 0 Medium …ntext, ContextCallback callback, Object state) at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.WriteHeaders(Boolean async) — End of inner exception stack trace — at Microsoft.Office.Server.Search.Administration.SearchApi.RunOnServer[T](CodeToRun`1 remoteCode, CodeToRun`1 localCode, Boolean useCurrentSecurityContext, Int32 versionIn) at Microsoft.Office.Server.Search.Administration.SearchApi..ctor(WellKnownSearchCatalogs catalog, SearchSharedApplication application) at Microsoft.Office.Server.Search.Administration.SearchSharedApplication.get_SearchApi() at Mic…
07/14/2009 15:30:43.93* OWSTIMER.EXE (0x06BC) 0x0080 SharePoint Portal Server User Profiles 0 Medium …rosoft.Office.Server.UserProfiles.SRPSite.IsImportInProgress(String contentSourceName)
RESOLUTION:
===========
–>Go to “c:\windows\system32\reg.exe” and right click on the file, choose “properties” from the drop down
–>Click on “Security” tab
–>Under “Group or user names” click “Add”
–>Now you will get a new window called “Select Users, computers, or groups” [In server 2003]
–>In this window under “From this location”, click on “Location” and select the local computer name
–>Now under “Enter the object name to select”, add [WSS_WPG] and give “READ” as well as “Read and Execute” privileges on the server and click [OK]
–>Performed IISRESET
–>Follow the same steps on all the servers connected to current farm
–>Issue should not occur any more in your environment