SharePoint Cafe

All MindsharpBlogs

My Links

Article Categories

Archives

Blog Stats

2007 IT Pro Resources

Mindsharp Instructors

Mindsharp Training

SharePoint User Profiles Write Back to Active Directory

Many thanks to Ward Ralston at Microsoft for this tip.  Ward and I met when he was a trainer at the now defunked Paladin Data Systems in Poulsbo, Washington.  He's a great guy and this tip is really worth reading.

Have you ever wanted to grab the information users enter into their SharePoint profile and write it back to Active Directory?  Thought it wasn't possible?  Well, it is.  Read this:

First, schedule the profiles to import daily from Active Directory to SharePoint Portal Server 2003.

Then, do this:

Allow users to edit some of their mapped AD attributes in their profile (Last Name, Title, Room, etc).  You can also make an HR group in Active Directory that has the edit profile permission so HR could change any user too.

Thirdly, use MIIS to query the profile database to extract those attributes on a defined schedule…….Something like this:

select ntName, max(title) as Title, max(sn) as sn, max(givenName) as givenName, min(objectGUID) as objectGUID
from (select ntName, propertyVal,
(case when propertyid = 13 then propertyVal else '' end) as Title,
(case when propertyid = 4 then propertyVal else '' end) as sn,
(case when propertyid = 5 then propertyVal else '' end) as givenName,
(case when propertyid = 1 then propertyVal else '' end) as objectGUID
from userProfileValue upv inner join userProfile up
on upv.recordid=up.recordid
where propertyid in (13, 4, 5, 1)) as tbl
group by ntName
order by ntName

Lastly, have MIIS write the changes back to AD so it they  are reflected on the next replication cycle. (MIIS also wrote the change to a MySQL HR database)

Viola!  You can have the attributes that users fill out in their profile written back to Active Directory.

Bill English
Mindsharp

posted on Tuesday, August 30, 2005 10:05 PM

Feedback

# SharePoint User Profiles Write Back to Active Directory 9/1/2005 12:45 AM Patrick Tisseghem's Blog [MVP SharePoint]

# re: SharePoint User Profiles Write Back to Active Directory 8/7/2006 4:37 PM Ishai Sagi

Bill, can you say what version of MIIS is needed? do we have to buy the enterprize version (25,000$) or is the free version enough (the free version is not supposed to connect to non-AD databases)
I dont have any expirience with MIIS and would appriciate the input.

# re: SharePoint User Profiles Write Back to Active Directory 10/17/2006 12:16 PM Jim

You would need the enterprise version since the SQL DB containing the profiles is a "non-AD" database.

# re: SharePoint User Profiles Write Back to Active Directory 2/12/2007 3:31 PM Corey Blake

What is the process for doing this same function in MOSS 2007?

# çizgi film 8/20/2008 6:43 AM Çizgi Film

very good

# film izle 8/20/2008 6:44 AM film izle

very good

# gelinlikler 8/20/2008 6:44 AM Gelinlikler

very good

# masaüstü resimleri 8/20/2008 6:44 AM masaüstü resimleri

very good

# mercedes yedek parçaları 8/20/2008 6:44 AM Mercedes Yedek Parçaları

very good

# autocad kursu 8/20/2008 6:45 AM autocad kursu

very good

# müzik dinle 8/20/2008 6:45 AM müzik dinle

very good

# Bay 8/20/2008 6:45 AM Havuz

very good

# yemek tarifleri 8/20/2008 6:46 AM yemek tarifleri

very good

# Bay 8/20/2008 6:46 AM havuz

very good

# re: SharePoint User Profiles Write Back to Active Directory 8/20/2008 6:47 AM gaziosmanpaşa

very good

# re: SharePoint User Profiles Write Back to Active Directory 8/20/2008 6:47 AM ilahi dinle

very good

# re: SharePoint User Profiles Write Back to Active Directory 9/19/2008 7:22 AM nike sb dunks

Thank you!
http://www.shoes777.com/

# re: SharePoint User Profiles Write Back to Active Directory 9/19/2008 7:22 AM nike sb dunks

Thank you!
http://www.shoes777.com/

# re: SharePoint User Profiles Write Back to Active Directory 9/27/2008 9:39 AM nike shoes

Thank you!

Title  
Name  
Url
CAPTCHA
Protected by Clearscreen.SharpHIPEnter the code you see:
Comments