User can view/edit/create only incident which he has created how to achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 04:02 AM
In servicenow instance User can view/edit/create only incident which he has created how to achieve this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 04:21 AM - edited 03-11-2024 04:21 AM
Hi @indrasen you would need to create ACL for this along with role
Incident.none
Incident•* on read/write/update acls
And in advance script
if(current.opened_by == gs.getUserID())
{
answer = true;
}
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 05:12 AM
I want to express my gratitude for your assistance with the script. It's indeed working well. I've noticed that we can achieve the same result using scripting by employing the condition "opened_byDYNAMICsys_id." I appreciate your guidance and would love to hear your thoughts on this approach.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 05:14 AM
Hi @indrasen yes you can use that approach as well. OpenedBy is dynamic me
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2024 04:35 AM
@Harish KM what do you mean by "along with role"