Hello!!
I know that an user with Editor Access can’t perform Call Entry.DisableRole(“RoleName”).
Does exist anyway to change user ID with MANAGER ACCESS to allow to perform Call Entry.Disable(“RoleName”) and after all, go back to original User ID (with Editor Access)?
Thanks,
Marcia
Subject: It would possible to change the user ID by Lotus Script? I need to allow an user with Editor Access to perform CALL Entry.DisableRole.
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.
/Andrei
Sametime goes AJAX: Botstation - Sametime Widget Overview
Subject: It would possible to change the user ID by Lotus Script? I need to allow an user with Editor Access to perform CALL Entry.DisableRole.
create an agent
sign this agent to run with the manager’s credentials
call the agent in your code
Subject: RE: It would possible to change the user ID by Lotus Script? I need to allow an user with Editor Access to perform CALL Entry.DisableRole.
Thank you for hele me…
Coud you post the agent’s code?
Thank you again.
Marcia