just created this console app for you:
try
{
using (SPSite mysite = new SPSite("http://yourwebsite:2010"))
{
using (SPWeb web = mysite.OpenWeb())
{
Console.Write("web users");
Console.WriteLine();
Console.WriteLine();
foreach (SPUser user in web.Users)
{
Console.Write(user.Name);
Console.WriteLine();
}
Console.WriteLine();
Console.WriteLine();
Console.Write("site collection users");
Console.WriteLine();
Console.WriteLine();
foreach (SPUser user in web.SiteUsers)
{
Console.Write(user.Name);
Console.WriteLine();
}
}
}
}
catch (Exception a)
{
}
Console.Read();
so what you want is web.SiteUsers
for site collection and web.Users
for webs ;) not web.Site.RootWeb.Users. If you run the code above within a console app you should see the user within the list and if it has a domain tag or not!