Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Get User Info From Active Directory

  Asked By: Brain    Date: Nov 11    Category: Sharepoint    Views: 4623

There is a nice function with WSS that will retrieve the user
information from AD when adding them to a new site. It will also
retrieve their email address and put it into the userInfo table.

But when they are not explicitly added to a site their email address
is never retrieved from active directory. In fact their user
information is not even put into userInfo until they visit the site.

This is a problem for me because I have code that will automatically
add alerts for specific people in a team site. If they have not
been to the site then there is no user to add an alert to, and if
they have been to the site but have not been added to a site
explicitly or have not manually entered their email address, the
alert never reaches them.

When I add the alerts I can check to see if a user is in the site
and add them if necessary using SPUserInfo, but then I have to also
add code to get the correct email address etc.

What object model methods are out there that will let me do what WSS
does when you add a user to a site and automatically get their email
address etc.? Basically I need something that given a login name it
will add the user to userInfo from active directory information.



6 Answers Found

Answer #1    Answered By: Daron Oneill     Answered On: Nov 11

There is an import process in the SPS product, but not in WSS. It is certainly doable with a custom program to enumerate the AD and add  the user.

It actually sounds like a very interesting project...

Answer #2    Answered By: M Juarez     Answered On: Nov 11

Common problem. I presume that you are using AD groups or cross-site
groups to secure your WSS sites. The easiest solution is to create a
culture where people  understand that they are required to visit the site
before notices will be sent. Then incentivize them to follow that

Another solution is to use AD users to secure the site  and the problem
will go away. That's similar to bringing in thousands of cats to get rid
of the mice, and then thousands of dogs to get rid of the cats, etc.

Could your code  that will automatically  add alerts  for specific  people
in a team  site go and get their email  from AD?

Everyone pays a price for this SharePoint deficiency. The incomplete
Members Web Part, the incomplete Assigned To list, and problems like
yours are common to everyone's SharePoint implementation. I hope it is
fixed in v3.

Answer #3    Answered By: Johnrock Fellerz     Answered On: May 20

ADAudit Plus is a valuable security tool that will help you be compliant with all the IT regulatory acts. With this tool, you can monitor user activity such as logon, file access, etc. A configurable alert system warns you of potential threats.


Answer #4    Answered By: Johnrock Fellerz     Answered On: May 20

Apart from Bulk Management for all AD objects, ADManager Plus also offers 150+reports (for IT compliance) & helpdesk delegation! Specialty: Shortcuts for everyday AD & office management actions! Attraction: Affordable pricing and perfect scalability!


Answer #5    Answered By: Johnrock Fellerz     Answered On: May 20

ADSelfService Plus is “4 services sold at the price of 1”! This end-user product offers password self-service, Active Directory Self-Service Update, People Search, and Password Expiry Notifier (a very useful tool for VPN users).


Answer #6    Answered By: Johnrock Fellerz     Answered On: May 20

The tool offers Exchanger server traffic analysis, mailbox size, public folder size, & other important reports. It is also an important security tool as it points out inactive mailboxes and offers Mailbox & Public folder content reports!


Didn't find what you were looking for? Find more on Get User Info From Active Directory Or get search suggestion and latest updates.