# Tiny Elf - Transferring ownership of automated triggers

Three years after [writing the original version of Tiny Elf](https://emmti.com/tiny-elf-a-slack-bot-with-google-sheets-and-typescript), a new requirement has come up for me to transfer ownership of automated triggers. So this is just a blog post with some boring instructions 🤗

> Tiny Elf runs on a time-driven trigger. Unfortunately, the script run by one user does not have the permission to delete triggers set by another user. Thus, the original owner of the trigger needs to delete the trigger they have set up.

## Original Owner - Deleting the trigger

This needs to be done by the person who has triggers currently automating Tiny Elf.

1. Open your `Tiny Elf` Spreadsheet
    
2. Go to the `Tiny Elf` menu and click on `Delete trigger (Pauses automated notifications)`
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1759995824581/90f33397-3c5c-4c2c-8ae3-d4394c5124d0.png align="center")
    
3. Once the trigger is successfully deleted, you should get a notification saying `Trigger has been deleted.`
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1759995971818/cc00c064-6830-4ac5-a3ea-6cf071ac0202.png align="center")
    

### Original Owner - Verifying if your trigger is deleted

1. Open your `Tiny Elf` Apps Script project.
    
    * This can be done by going to your `Tiny Elf` Spreadsheet.
        
    * Click `Extensions` → `Apps Scripts`
        
    * Then `Tiny Elf - Rostering bot` Apps Script project will open in a new window.
        
2. On the left, click **Triggers** alarm. You should see any triggers you set here.
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1759994086451/068bef5d-fa9c-42df-8599-3e81cbdc224f.png align="center")
    
3. You should not see any scripts `Owned by` Me. That’s SUCCESS! 💪
    
4. If you do see any such triggers, click on the meatball menu and hit `Delete trigger`
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1759994462205/c1a18325-41d3-48de-8c4f-c728c4b2df71.png align="center")
    
    ## New Owner - Setting up automated notifications
    
    1. If you have been pointed at a `Tiny Elf` Spreadsheet and asked to take ownership of its triggers, the first step is authorising `Tiny Elf`. Do this by clicking on the `Tiny Elf` menu → `Authorise Tiny Elf`.
        
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1759996583174/f91ce958-47e4-486e-bce5-1b62d8e3150b.png align="center")
    
    2. Click `OK` on the next pop-up.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1759996733100/f3b5086d-d8cd-4db3-9aaa-913eb8d63f91.png align="center")
        
    3. Choose an Account in the next pop-up.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1759996834480/1266c20e-9453-476d-bda9-eb127a0c01b1.png align="center")
        
    4. Click `Continue`
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1759996935495/912a172d-7291-48c7-a51f-1e224b59004f.png align="center")
        
    5. `Select All` in the next screen and click `Continue` at the bottom of the screen.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1759997021138/325cf0c9-7b9d-4c39-b0e3-9dc98d2c06f2.png align="center")
        
    6. You should see a success message. Click `OK`
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1759997128268/2f653f72-248e-49ff-b6d4-b0ed92c8cdde.png align="center")
        
    7. You should now see the full `Tiny Elf` menu with four menu items.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1759997213383/245c09cf-a53f-49b0-8fb2-d864b12791de.png align="center")
        
    8. Verify your trigger settings in the `Settings` sheet.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1759997263587/2576be4d-262a-4bc1-847f-ff10d16a7790.png align="center")
        
    9. Click `Set/reset automated trigger` in the `Tiny Elf` menu.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1759997330971/48217336-d019-4f61-90a4-de1f910e9ee5.png align="center")
        
    10. You should get a message saying `Success` - `Trigger has been set\reset.` Click `Ok`.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1759997408066/a0de024d-a5be-47a3-90bd-1b0542bb3ccc.png align="center")
        
        Congratulations! That’s it. You have now transferred ownership of the automated trigger to yourself. 🌟
