Getting info from Active directory using SPFieldUserValue
-
I have an SPFieldUserValue object and I was wondering how I can use that to get a user's phone number, if it is populated in Active Directory.
-
I have an SPFieldUserValue object and I was wondering how I can use that to get a user's phone number, if it is populated in Active Directory.
You have to Synchronize Sharepoint with the AD. Therefore is the "User Profile Service". You can setup it so that it gets data from the AD or write it back, if you want to. You can even set, which data will be synchronized. :rolleyes:
------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.
-
You have to Synchronize Sharepoint with the AD. Therefore is the "User Profile Service". You can setup it so that it gets data from the AD or write it back, if you want to. You can even set, which data will be synchronized. :rolleyes:
------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.
So, I guess I should have figured that there would be a limitation on the UPS since we're running Foundation. From what I have read, it isn't active for Foundation. Think I will just use some LDAP to pull the user's phone number from AD, unless there is an easier way.
-
So, I guess I should have figured that there would be a limitation on the UPS since we're running Foundation. From what I have read, it isn't active for Foundation. Think I will just use some LDAP to pull the user's phone number from AD, unless there is an easier way.
Aptiva Dave wrote:
I should have figured that there would be a limitation on the UPS since we're running Foundation
Well, yes, you should have told that in your question. There are limitations in Foundation. As we use Enterprise 2010, I pretend everyone does until he tells me. :rolleyes: The only solution coming to me then is to write an VS.Net Application that does it for you. You can get the users from SharePoint and the users from your AD, you can synchronize them reading data from AD, writing it to SharePoint. :cool: That shouldn't be so much work at all.
------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.