The script is fired from a custom menu item created in the "ui_custom.xml".The users are TeamSite users