1

I have a SharePoint site with my company's active directory integration. When new personnel start to work, he/she is defined in AD. Then the record comes to SharePoint automatically.

If personnel information needs to be changed, it can changed in AD. But this change doesn't propagate to SharePoint site. Namely, if the name or surname needs to be changed, in AD it is corrected, but not reflected in SharePoint.

How can I change personnel information in SharePoint Designer/Central Administration? enter image description here

Sharepoint 2013 Management Shell

enter image description here

3

You can change it in Central Adminsitration > Application Management > Manage service applications > User Profile Service Application > Manage User Profiles.

But you should investigate why attributes from AD accounts aren't synchronized properly. If one day synchronization between AD and SharePoint gets fixed then changes you made manually in Central Administration might be overwritten.

  • I tried this solve but when I want to find a user profile, it find only admin's user profile. It can't find other user's profile. I want to change other users information. – zengel Dec 11 '14 at 9:44
  • This means you don't have synchronization between AD and SharePoint setup properly. For details take a look at technet.microsoft.com/en-us/library/jj219646(v=office.15).aspx – Slaven Semper Dec 11 '14 at 9:50
  • I can't synchronization again because I'm afraid my site user permissions and profiles can break down. Here is a big company and if the intergration wrong I stayed in a difficult situation. Is there any way? – zengel Dec 11 '14 at 10:08
  • If you want first name, last name, etc. attributes synchronized from AD then you have to configure Synchronization. – Slaven Semper Dec 11 '14 at 10:10
2

NO Slaven is incorrect! this is one way, any changes you make through sharepoint would not make any changes through AD! You should only need to make changes through AD and let Sharepoint handle the rest ;)

Sharepoint like its search counterpart need the same process in AD user profile updating! i think what your looking for is 'Schedule profile synchronization'

through PowerShell:

full code:

 $UserProfileService= Get-SPServiceApplication | ? { $_.TypeName -eq 'User Profile Service Application' }
 $UserProfileService.StartImport($true)

How can I schedule the User Profile Service to run a full sync weekly?

the code above would only sync once tho! so as john noted to setup Windows Scheduled Task to run the script every night or weekend!

for 2013 or 2010:

This is to set a timed schedule to run! this should be set over night or over weekend as it can be heavy on system!

http://technet.microsoft.com/en-us/library/ee890103.aspx

UPDATE

your error relates to not loading the lib for sharepoint snapin!

two options here! one add it through code or two load sharepoint powershell:

1)

add this code first before any other code:

 Add-PSSnapin "Microsoft.SharePoint.PowerShell"
 $UserProfileService= Get-SPServiceApplication | ? { $_.TypeName -eq 'User Profile Service Application' }
 $UserProfileService.StartImport($true)

if code runs fine then you need to stick it into a text file, copy code above and paste into text file. Next you need to save the file... give it a meaningfull name and save. Next goto the file location and change the .txt part to .ps1 ... it should now be a powershell script file instead of a file. You can then setup a Windows Scheduled Task to execute the file when ever you want :) . If you have notepad++ than you can create a new file and just save it with the .ps1 extention instead!

2)

run this powershell instead:

enter image description here

EDIT

please make sure that the connection now exists!

goto:

Central Adminsitration > Application Management > Manage service applications > User Profile Service Application > Manage User Profiles > select 'Configure Synchronization Connections'

enter image description here

once loaded make sure you can see the connection, if you can than its setup and you can click on it to edit..

enter image description here

enter image description here

once in the edit screen you should be able to see some setup configs for domains and user account name that you would use to connect with.

first step is make sure that your setup is correct:

make sure:

'type' is set to 'active directory'

'Authentication' is set to 'windows authentication'

put in a valid account name and password that is at farm level for now.

now the important part is the containers section. please see if you have any populated?

if not click on 'populate container' this should connect to AD with the account details above and populate all AD containers. if the grandparent is checked, uncheck and recheck... if its unchecked than just check it. you can select any other container you wish or deselect as you wish. This will sync the containers with sharpoint.

once finished click on the OK button below and you should be all good to go!

image is a bit messy but contains all important parts, as you can see all containers are loaded and it has a tick around the group that i need and the grandparent is ticked

enter image description here

let me know if you get into any issues!

  • Please look at my second paragraph where I emphasize that synchronization should be fixed. – Slaven Semper Dec 11 '14 at 9:48
  • I tried this but I got error. I added screenshot under my question. Could you analyze the error,please? – zengel Dec 11 '14 at 9:57
  • @aliSharePoint, actually your answer is incorrect. There is a two way sync: sharepointblues.com/2010/05/31/… – Slaven Semper Dec 11 '14 at 10:01
  • @zengel you need to open powershell with sharepoint addin, or add this code first: Add-PSSnapin "Microsoft.SharePoint.PowerShell" – Ali Jafer Dec 11 '14 at 10:08
  • 1
    @aliSharepoint, this is a citation from your answer: "NO Slaven is incorrect! this is one way, any changes you make through sharepoint would not make any changes through AD!" – Slaven Semper Dec 11 '14 at 10:15
0

The issue you encountered is due to the fact that the UserInfo table is not updated for the current site collection.

For your case, I believe you haven't set up the User Profile Synchronization Service Application yet. When you update the user information in the AD server, e.g. DisplayName, in order for the information to be reflected in the SharePoint site, you need to run the following command:

Set-SPUser -identity "domain\UserA" -SyncFromAD

After running the command in the SharePoint Management Shell, the change will be reflected in the SharePoint site.

  • Ngheim I tried your solve. But I got warning and I added under my questions with title of Sharepoint Management Shell. Can you controlled this? What should i do? – zengel Dec 15 '14 at 14:51
  • You need to replace "domain\UserA" with actual user ID. Which users did you update the information? – Randy Nghiem Dec 16 '14 at 4:57
  • for example domain:kuhah username:zengel --> in that case kuhah\zengel . Is it true? @Randy – zengel Dec 16 '14 at 6:19
  • Yes, you should run as Set-SPUser -identity "kuhah\zengel" -SyncFromAD – Randy Nghiem Dec 19 '14 at 9:24
  • I got warning and I added under my questions with title of Sharepoint Management Shell. Can you controlled this? What should i do? @Randy – zengel Dec 22 '14 at 9:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.