ACL not working for Project Worksapce

Rajesha Hati
Tera Expert

i have a requirement that in customer_project table if the project manager and logged in user is not same then he will not be able to assignee that project to any user. and for that i have created 2 acl one is list_edit and another is write ACL, it's working fine for form view and for list view but not working in project workspace. 

 

i am using this script:

var answer = true;
if (gs.hasRole('it_project_manager') && gs.getUserID() != current.project_manager) {
    answer = false;
} else {
    answer = true;
}

answer;
1 REPLY 1

Potier Thomas
Tera Contributor

Hello Rajesha,

I just faced the same issue.
According to the two following KB, it appears that ACLs on the project workspace (in particular on the planning console) will not work properly. This would be because the ACLs are evaluated based on empty records for performance purposes. 

This means that ACL based on field-level values or using data conditions will seldom work properly. 

I used a on-before BR to catch and prevent the unwanted update on my side. If you find any better idea let me know 🙂

Kind regards,
Thomas

src1: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0963072
src2: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB2041216