How to allow my application to delete records from sys_user_grmember.

Christopher Lun
Kilo Explorer

By default my App cannot delete records from sys_user_grmember. I am new to SNOW app development. I am wondering if there is a way to give access to my app to delete, so that I can run some scripted APIs and removes users from groups. I am running my API request from a user admin. Also, I created an app_admin_role in the app, but I am not sure how to give it the right permissions. find_real_file.png

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Unless the Can delete is checked you cannot delete records even using GlideRecord from scope outside global

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

7 REPLIES 7

Christopher Lun
Kilo Explorer

I can check the "Can Delete" in the global, but the intended purpose is that people install the app and be able to used the scripted APIs without them having to tinker with their own instances. 

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Unless the Can delete is checked you cannot delete records even using GlideRecord from scope outside global

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Just to understand correctly. I would have to intruct the clients that they need to select Can Delete on the table for our Scripted Rested API to work.