I am trying to create Sharepoint 2007 users through c#. I begin by adding them into our AD server, which is tied to our SP server. The users appear in the AD, as well as within the SP user directory. However, if you try to log into the Sharepoint site with this account, it will not allow you to.
In order to use the account on Sharepoint, you must first manually log onto the Windows domain via the standard windows login. Once you have logged onto the domain, the SP version of the account becomes ‘active’. Is there anyway to stop this behavior and simply allow users to log onto the SP site without having to manually log them onto a machine first?
I found the answer. You can create a user in Sharepoint and they are created properly, but if you set the user password to “Expire on first login” within Active Directory, then you will be unable to log onto the Sharepoint site until you reassign a new password to that account. By not setting the “expire password” property, you can create users and log onto the Sharepoint site immediately.
Thanks for the other solutions, I wish i was using SP2010!