Yes, you can use SwitchToID method of NotesRegistration class. I guess it can be done in a secure way if you put the code in a lss file and the reference it in "Use" statement, thus making it impossible to the current user to see the actual password of the used id-file. The´problem is that user can manage (Accidentally or on purpose) to abort the switch back to the original id and remain logged in as Manager.
I would rather create a temporary document with necessary parameters (database, username, rolename) and call Agent.RunOnServer(doc_id). The server-based agent is signed with ID which has Manager Access thus it will be able to perform the operation and write the status back to the temp document to show to the current user.
Sametime goes AJAX: http://www.botstation.com/stwidget