I am using sharepoint 3.0 and I do the following:
1. Create a user in the server
2. Go to sharepoint site and associate a group with this newly created user (I could not use common name of user to search for the user, I had to use the login name :S)
3. Create an item in one of the list and use this user
4. Login to the site with this user
5. Reset IIS
Problem: In a console application that is running in server, I call SPWeb.AllUsers and it is only returning old users that were there from past(for example administrator) and not returning this newly created user. What part of the puzzle am I missing?
Try SPWeb.SiteUsers that returns users that are added to site collection.
SPWeb.Users return you users that are only explicitly added to that web (unique permissions), however SPWeb.AllUsers give you SPWeb.Users + those that have visited that web.