Impersonate User: Mimic another user similar to the Default Profile

I'm looking for a way as an Administrator to impersonate another user similar to the way you can login to the portal using the Default Profiles.
Example: I select a user to impersonate and then click a button. I'm then in the portal as that user.
There may be a problem opening documents, etc, but I'm more interested in making sure that I see the content that the other person is seeing.
It would be a great help to diagnose security problems such as "Why can't I see this portlet, etc."
One solution I thought of was to switch ID's in the PTUSERS table. This solution wouldnt' want to go any further than dev though. I don't really like this solution because if you forget to switch them back or they are in the portal when you switch them......there's a problem.

I think that changing the PTUsers table is unlikely to do what you want. It's likely to break the system because there are a number of other tables that contain data about users, and you have not changed those tables. Additionally, information may be cached in memory, so changing the tables would not change that information.
I think that there is a significantly easier way to do this, though it may still not be easy. The IPTSession interface supports a function called ImpersonateUser. If you are logged into the Portal as an Administrator, you can call ImpersonateUser to switch your session over to that of another user- from then on, the Server will treat you as the second user.
This is a very easy call to make, but it's only half the story- the UI also has to know to treat you as the new user (e.g. use the correct language settings, flush cached session info, etc.) This is basically like doing a login. I don't know the details of how this would be done (a discussion forum about UI customization would be more useful here), but I could imagine doing something like copying the login screen logic to a second, "hidden" login screen which takes in a username, but no password. The page would only operate if you were already logged in as an Administrator, but it would perform the "standard" login logic, except that it would do Session.ImpersonateUser on the pre-existing session instead of creating a new session and logging in as the new user.

Similar Messages

  • How do we change the default profile folder location?

    I work for a university in Manhattan. We are trying to install Firefox 5 for our users but Firefox profiles are stored in the AppData folder which is a problem for us as it exceeds the user profile space.
    We need a way to have Firefox create the profile elsewhere. Is anyone aware of how to do this?

    Hi,
    Thank you for taking the time to offer a solution to our problem. Unfortunately, the Firefox profile information set under the administrative account does not transfer to the user accounts. Even though we created a Firefox profile set to open to a different location, when a user logs in the default profile, located in AppData, is created for them and they do not have access to the new one.
    Are you aware of any way to set the profile of each user to automatically be created elsewhere? Thank you.

  • Windows cannot load the user's profile but has logged you on with the default profile for the system.

    My Windows 7  crashed a couple days ago after a windows update, I got this message.
    Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off.
    I restarted the machine and got this message
    Windows was unable to load the registry. This problem is often caused by insufficient memory or insufficient security rights.
    DETAIL - The process cannot access the file because it is being used by another process. for C:\Users\TEMP\ntuser.dat
    I checked the event Log I found these .
    Windows cannot load the user's profile but has logged you on with the default profile for the system.
    DETAIL - Only part of a ReadProcessMemory or WriteProcessMemory request was completed.
    Windows has backed up this user profile. Windows will automatically try to use the backup profile the next time this user logs on.
    Windows cannot load the locally stored profile. Possible causes of this error include insufficient security rights or a corrupt local profile.
     DETAIL - The process cannot access the file because it is being used by another process.
    This is the first error in the event viewer after a successful logon
    The description for Event ID 34 from source ccSvcHst cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
     If the event originated on another computer, the display information had to be saved with the event.
    ccSetMgr
    Windows cannot load the user's profile but has logged you on with the default profile for the system.
    DETAIL - Access is denied.
    Looking at the Logs all I can tell is that after the Desktop Window Manager started if caused this error.
    The winlogon notification subscriber <SessionEnv> was unavailable to handle a notification event.
    then this one
    The Desktop Window Manager has exited with code (0x40010004)
    Then this before it shutdown.
    The User Profile Service has stopped.
    I started up the PC and the first message I got was
    How can I get access to my user profile? do I need to createa new Administrator account? Please help
    The EventSystem sub system is suppressing duplicate event log entries for a duration of 86400 seconds. The suppression timeout can be controlled by a REG_DWORD value named SuppressDuplicateDuration under the following registry key: HKLM\Software\Microsoft\EventSystem\EventLog.

    hi do the following
    1. In Search programs and files (Windows 7) area, type in regedit, and press Enter.
    2. If prompted click yes,
    3.  expand the following HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
    4. click the sid that related to your admin profile (if you not sure, click each sid and in turn look to the right hand side of registry editor it will show who that sid is related to one of the registry files should hae in description localhost\admin or
    something similair)
    5. right click the sid and press delete.
    6. restart your machine and log back on with the admin account, this will then rebuild the admin profile... dont worry when it loads and none of your personal settings are saved or files or folders... go to c:\users
    in here you will see two folders for the admin account, one will be just admin and the other most likely admin.localhost
    i cant remember which one is which but just check both, one will still have all your files and folders in it.
    i suggest making a backup of your data before doing this incase something does go wrong, but ive had this happen many times in a domain enviorment and has worked for me everytime.

  • How to change the theme in the default profile so new users get a different theme

    How can I change the theme (background picture, etc) for the default profile, so that when new users log in and get a new profile created, they get a different theme than the one they currently receive?

    Hi,
    If you want to get a different theme for new users, based on my understanding, it’s not easy, we can load the specific theme for all user because we can control OS to load this specific theme file.
    The default location of theme file is:
    C:\Windows\Resources\Themes
    To configure OS load different theme for different user, I think this cannot be controlled by a registry key. It’s complicated to make OS choose different theme pack for different user, even more, the theme pack files are limited.
    Here is some different but similar discussion about changing theme programmatically:
    How do I change the current Windows theme programatically?
    http://stackoverflow.com/questions/546818/how-do-i-change-the-current-windows-theme-programatically
    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    If you have any feedback on our support, please click
    here
    Alex Zhao
    TechNet Community Support

  • How to alter the default profile for multiple users

    I am trying to alter the default profile assigned to users during user creation to a new profile. I know to change the profile for one user using the syntax
    alter user abc profile profileabc
    The issue I have is that there are 100's of users under default profile and changing for each of them manually would be difficult. The approach that I see is to write a shell script where I connect to the db and get a list of all the users with default profile. Then I loop through the file making connection to the db each time and executing the alter statement.
    Please help if you think that there can be a more efficient approach to this.
    Thanks

    alter user abc profile profileabcspool newsql.sql
    select 'ALTER USER '|| USERNAME || ' PROFILE NEWPROFILE;' FROM DBA_USERS;
    SPOOL OFF
    @newsql.sql

  • User.region and the default locale

    What is the difference between user.region, user.country and the default locale.
    Thanks

    Same problem here ! I called Apple Care and got two people during 2 hours on call, they were unable to explain why and just repeat that "the use of TVout for recording purpose are not supported by apple".
    Why this settings has to be hidden ?
    FYI : i'm able to capture Ipad 2 thru BMD Intensity Pro but not able to switch PAL and NTSC in TV OUT settings to get a correct input. TV OUT setting doesn't appear.

  • Date Format in Zreport similar to the default date format set using su01.

    Dear All,
                I have a requirement as to change the date format in Zreport as the one which is set in default date format for the user in Su01 tcode.
    Ex.. If the user has set the default date format in SU01 as ' YYYY-MM-DD' , in report also, date should appear as '2009-12-24'.
    Is there any code  or  Function Module to change the date format in report as in the default Date format?
    Can u help me in this?
    Bye.....
    Cheers
    Christina.

    Try the following code.
    select the format of current user from usr01 table.
        SELECT SINGLE datfm FROM usr01
        INTO w_datfm
        WHERE bname = sy-uname.
    Format based upon the current user settings. put this total code inside one form for reusability.
        IF w_datfm = '1'.
          CONCATENATE w_date6(2) c_dot w_date4(2) c_dot w_date+0(4) INTO outtab-value.
          CONDENSE outtab-value NO-GAPS.
          CONCATENATE w_rundate6(4) w_rundate3(2) w_rundate+0(2) INTO w_date.
          CONDENSE w_date NO-GAPS.
        ELSEIF w_datfm = '2'.
          CONCATENATE w_date4(2) '/' w_date6(2) '/' w_date+0(4) INTO outtab-value.
          CONDENSE outtab-value NO-GAPS.
          CONCATENATE w_rundate6(4) w_rundate0(2) w_rundate+3(2) INTO w_date.
          CONDENSE w_date.
        ELSEIF w_datfm = '3'.
          CONCATENATE w_date4(2) '-' w_date6(2) '-' w_date+0(4) INTO outtab-value.
          CONDENSE outtab-value NO-GAPS.
          CONCATENATE w_rundate6(4) w_rundate0(2) w_rundate+3(2) INTO w_date.
          CONDENSE w_date.
        ELSEIF w_datfm = '4'.
          CONCATENATE w_date0(4) '-' w_date4(2) '-' w_date+6(2) INTO outtab-value.
          CONDENSE outtab-value NO-GAPS.
          CONCATENATE w_rundate0(4) w_rundate5(2) w_rundate+8(2) INTO w_date.
          CONDENSE w_date NO-GAPS.
        ELSEIF w_datfm = '5'.
          CONCATENATE w_date0(4) '/' w_date4(2) '/' w_date+6(2) INTO outtab-value.
          CONDENSE outtab-value NO-GAPS.
          CONCATENATE w_rundate0(4) w_rundate5(2) w_rundate+8(2) INTO w_date.
          CONDENSE w_date NO-GAPS.
        ENDIF.

  • Accidently deleted the default profile-wher to find old bookmarks to restore?

    I accidentally deleted the default profile while try to delete a username for a website, which was memorized by Firefox. On a Mac OSX, where do I find the bookmarks file that was in use before deleting the default profile. I have to restore the bookmarks or at the minimum, gat a list of those with their url so that I can make new.

    You are on Mac OS X 10.4, so you do not have the Time Machine that more recent versions have. If you did remove the entire [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] and do not have a backup of that folder then all your personal data including the bookmarks is gone.
    /Users/&lt;user&gt;/Library/Application Support/Firefox/Profiles/&lt;profile&gt;/

  • Enabling Password controls in the Default Profile

    After sharing with customer metalink note 114930.1, customer has the following questions:
    1. Will Oracle suggest enabling password controls in the profile "Default" that is created during the installation without those controls enabled?
    2. Oracle accounts (SYS, SYSTEM etc.) are created with the default profile associated with them (at that time there are no manually created profiles). Does Oracle permit assigning other profiles (created after installation) to those most critical accounts
    Any help/direction is much appreciated

    Hi,
    1/ I don't know if Oracle would suggest that, but I would either enable password control if you have such a requirement, wherever you set it up, or don't touch anything if it's just to leave it disabled... I usually create specific profiles for the users and set up the limits according to the kind/type of users they are.
    2/ Don't you have no test instance?
    TEST> create profile p limit failed_login_attempts 5;
    Profil cr&#65533;
    TEST> alter user sys profile p;
    Utilisateur modifi
    TEST> alter user system profile p;
    Utilisateur modifi
    TEST> select username, profile from dba_users where username in ('SYS','SYSTEM');
    USERNAME                       PROFILE
    SYS                            P
    SYSTEM                         PMy 2cp,
    Yoann.

  • Where is the default profile in Firefox copied from under Linux?

    I'm trying to change a default setting in Firefox 3.6.6 under OpenSUSE 11.3. I need to disable network.dns.disableIPv6 globally for all users in their default profile. I cannot figure out where the file is that the default profiles are created from. Can anyone point me to this?

    If you use a Firefox version from the OpenSUSE repositories then you probably find that template folder in the corresponding /usr/lib/xulrunner-xxx folder.
    * /usr/lib/xulrunner-1.9.2.6/defaults/profile
    If you've installed Firefox yourself then look for the Firefox installation folder.
    Be aware that Firefox 3.6.6 is really old and outdated and you should at least update to the latest 3.6.27 version to get all security patches

  • Changing the default profile

    Is there a way to change the default profile that is assigned to new users? In other words, instead of user JONES being assigned DEFAULT if no profile is specifed in the create user statement, I want to set up the database so that MY_PROFILE is the profile that is defaulted to instead? This is in Oracle9i R2.

    Hi,
    Yesterday, there was a thread with the same subject, and it seems that you can (thanks to Yoann) :
    Can I alter the default profile
    Nicolas.

  • How does the Default profile works?

    we are using MSCS cluster.
    On last week, I found SAPGLOBALHOST and SAPDBHOST are pointed to wrong server in default.pfl in
    <CLUSTER>\SAPMNT\PRD\SYS\profile. I changed both parameter to currently server name and restart service. Therefore, we lost zcsa/installed_languages parameter in PRD_DVEBMGS01_<CI_SERVER> file. I have to add this parameter again in RZ10.
    My question is:
    Why SAP can start up correctly when the SAPGLOBALHOST and SAPDBHOST were wrong ? I don't think anybody changed this parameter without notice.
    Where is the old zcsa/installed_languages parameter stored? I searched all servers, I couldn't find this parameter.
    Thank you

    Check SAPGLOBALHOST and SAPDBHOST parameters in Instance profile. If the values in the instance profile is correct it will override the default profile values. Also check the environmental variables like DB_HOST etc.
    When you change the value of zcsa/installed_languages didn't save it as a new version?If you save as a new version then go to profile directory and check DEFAULT.PFL.<n>

  • CG36 - No virus scan profile is selected as the "default profile"

    When running transaction CG36 - Import Reports, I'm getting this message in the job log:
    "No virus scan profile is selected as the "default profile"                   VSCAN         034          I"
    Do I have to set up a default profile for virus scan? I have never seen this error until recent upgrade. Is there a way to by pass this virus scan if we choose not to activate it?
    Thanks!

    I encountered the same problem during the CG36 transaction.
    "Error during virus scan in file "...\usr\sap\.....\xixoxoxioxo.pdf" with Message class "CM_REPORT_IMP_EXP"   010     E
    Job cancelled after system exception ERROR_MESSAGE.
    This may be due to BASIS security level virus scan checks on the files being imported to the application server. Is BASIS assistance required on this or any workaround to bypass?
    Thank you.

  • Only the default profile and still cannot reset browser

    I am running the new Windows 8.1 and just re-installed Waterfox 27. The browser keeps informing me that it is running slowly. The links send me to nowhere because my profile apparently doesn't show the reset button in Help / troubleshooting. The only profile I can locate indicates it is the default profile. This profile only has an alpha-numeric name that was self generated at some point.
    I was using Waterfox on a previous Laptop using Win7x64 Ultimate I owned, it has sense died. This new Lenovo unit was installed with Windows 8, I allowed the upgrade to 8.1.Operates with an Intel(R) Core(TM) i5-4200U CPU @ 1600GHz 2.30GHz, 64-bit Operating System, x64-based processor.
    Waterfox has installed itself in the "C:\Program Files\Waterfox\waterfox.exe" folders. I have done an un-install, a reinstall, of your browser.

    Try to use the Profile Manager to start Firefox/Waterfox with this default profile.<br />
    You only see the Reset button if Firefox is started with the profile that is marked as Default=1 in the profiles.ini file.
    *http://kb.mozillazine.org/Profile_Manager

  • Another FM similar to the FM SAPWL_ACCNT_GET_SYSTEM_USAGE

    Hi all,
    Please let me know if there is any FM similar to the FM SAPWL_ACCNT_GET_SYSTEM_USAGE. This FM provides the data of the system resources used by a user or an account are returned as a result. Amongst other things, this data contains the dialog steps performed by the user or account, the CPU and database time used for this and the data volume transferred from the database. The exact structure of the returned data can be seen in the structure SAPWLACCTS in the SAP Repository.
    Now I would like to know any other FM similar to the above one. But the exact structure of the returned data should also contain the two new fields GUITIME (GUI time) and GUINETTIME (Frontend Network Time) along with the other data present in the structure SAPWLACCTS.
    Thanks and regards,
    Anishur

    hi,
    goto SM59 -> click on create rfc -> define rfc of receiver -> save -> give target host n system no -> give user id n password -> clicko n test connection -> if yes [u ll get info of remote connection ] -> remote login -> u can get intial screen of remote system.
    if helpful reward some points.
    with regards,
    Suresh Aluri.

Maybe you are looking for