Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. Getting info from Active directory using SPFieldUserValue

Getting info from Active directory using SPFieldUserValue

Scheduled Pinned Locked Moved SharePoint
windows-admin
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aptiva Dave
    wrote on last edited by
    #1

    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 1 Reply Last reply
    0
    • A Aptiva Dave

      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 Offline
      I Offline
      Ingo
      wrote on last edited by
      #2

      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.

      A 1 Reply Last reply
      0
      • I Ingo

        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.

        A Offline
        A Offline
        Aptiva Dave
        wrote on last edited by
        #3

        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.

        I 1 Reply Last reply
        0
        • A Aptiva Dave

          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.

          I Offline
          I Offline
          Ingo
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups