User can view/edit/create only incident which he has created how to achieve this?

indrasen
Tera Contributor

In servicenow instance User can view/edit/create only incident which he has created how to achieve this?

5 REPLIES 5

Harish KM
Kilo Patron
Kilo Patron

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;

}

Regards
Harish

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.


Screenshot 2024-03-11 173822.png

Hi @indrasen yes you can use that approach as well. OpenedBy is dynamic me

Regards
Harish

indrasen
Tera Contributor

@Harish KM what do you mean by "along with role"