You will need a plugin already created, such as the one in the previous recipe. When running the code, the users must have the Act On Behalf Of Another User privilege (under Business Management | Miscellaneous Privileges in security roles) or be a member of the PrivUserGroup group in Active Directory: