# Template data per user

**URL:** https://community.glideapps.com/t/template-data-per-user/13184
**Category:** Ask for Help
**Created:** [July 28, 2020, 3:57am UTC](https://community.glideapps.com/t/template-data-per-user/13184 "2020-07-28T03:57:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jeremy\_P](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@Jeremy\_P](https://community.glideapps.com/u/Jeremy_P)
#### Post date: [July 28, 2020, 3:57am UTC](https://community.glideapps.com/t/template-data-per-user/13184/1 "2020-07-28T03:57:33Z")

</div>

When a new user signs up, I want them to see rows of data already in the app that they can edit or delete (per user data). Is there a clever way of doing this? (I couldn’t figure it out with an onEdit script since the trigger doesn’t work for a new row)

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [July 28, 2020, 7:15am UTC](https://community.glideapps.com/t/template-data-per-user/13184/2 "2020-07-28T07:15:21Z")

</div>

Is there a condition tied to a user field that enables them to edit or delete?

---

<div class="post-metadata">

### Author: ![IgorMartynov](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/igormartynov/32/4740_2.png) [@IgorMartynov](https://community.glideapps.com/u/IgorMartynov)
#### Post date: [July 28, 2020, 7:37am UTC](https://community.glideapps.com/t/template-data-per-user/13184/3 "2020-07-28T07:37:03Z")

</div>

This short function is looking for the new row in users table and sets the timestamp.  
Attach it to the onChange event.

```
function onChangeTrigger(e) {
  var sh = SpreadsheetApp.getActiveSheet();
  if( sh.getName() == "users" ) {
    if(e.changeType === 'INSERT_ROW') {
      var row = sh.getActiveRange().getRow();
      sh.getRange(row, 2).setValue(new Date());
    }
  }
}

```

Go on board and try this in action @Jeremy_P in my firsrt demo app: [https://goonboard.glideapp.io/](https://goonboard.glideapp.io/)
