Atlanta .NET Regular Guys

Community Blog for two guys in Atlanta that focus on Microsoft and Community.

Quick About

This is the community blog for Brendon Schwartz and Matt Ranlett.  If you want to see their technical posts visit http://www.sharepointguys.com

Back To DevCow

Recent Posts

Tags

Email Notifications

    Archives

    Impersonating users in SharePoint

    I ran across this question in the newsgroups, "How do I impersonate one of my users so I can see what they see on their MySite?"

    Well, if you are faced with a similar problem, you can use the RunAs command - runas /user:Linda1 "C:\Program Files\Internet Explorer\iexplore.exe http://localhost/myportal/"  This works in WSS to see all the personalizations the user has done on their non-shared view of the page.

    Another option is to go to the User Profiles Administration (SharePoint Portal Server only), find the user that you are working with, and click the drop down next to their name.  In this drop down is 'Manage Personal Site'.  This will show you their MySite.

    -- Matt Ranlett

    [edit] - I've added a link to the RunAs command documentation in the Windows XP documentation.  This command also works on Windows Server 2003

    Comments

    Joris said:

    I tried it but it doesn't work, I just get a commandbox which keeps on running...
    # August 25, 2005 2:50 AM

    Matt Ranlett said:

    Joris - is Linda1 a valid user (or did you replace Linda1 with a valid user on the box)?

    Make sure that the user is valid, that the path to iexplore.exe is valid, and that the web address is the address to your portal site.
    # August 26, 2005 7:23 AM