I have the following code to get and display data about all users
that have permissions to a particular site:
private void Page_Load(object sender, System.EventArgs e)
{
SPSite siteCollection =
SPControl.GetContextSite(Context);
SPWeb site = siteCollection.AllWebs[""];
SPUserCollection users = site.Users;
try
{
foreach (SPUser user in users)
{
Response.Write("User: " +
(user.Name) + "<br />");
Response.Write("Personal
Site: " + "<br />");
Response.Write("E-Mail: " +
(user.Email ) + "<br />");
Response.Write("Login
Name: " + (user.LoginName) + "<p />");
}
}
catch (Exception excpt)
{
Response.Write(excpt.ToString());
}
}
My question is - can I call another method to get the URL of the
personal site (MySite)? This may be a simple task but it is escaping
me.