The CreatorCon Call for Content is officially open! Get started here.

Hello ACL is no working

Abigail
Tera Expert

Hello, I need to restrict the access to the "assigned to" user to not be able to move the state and give access only if the user belongs to IT.I.SIAM.Change_Management.

Abigail_0-1692789300682.png

Abigail_1-1692789317059.png

only exists other ACL for the state field

Abigail_3-1692789706525.png

But when I impersonate the users this one is able to move the state.
I tried to move the script conditions and also only work with the non-script condition but is still not working.
Any idea why this is happening?

Thanks

2 ACCEPTED SOLUTIONS

manjusha_
Kilo Sage

@Abigail ]

In your write acl (for state field)script write below code

 

var group = 'IT.I.SIAM.Change_Management';// you can use field value as well using current.getDisplayValue('assignment_group')//use proper backend name of assignment group field
var isMember = gs.getUser().isMemberOf(group);

answer =isMember;

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact

 

Thanks,

Manjusha Bangale

View solution in original post

@Abigail 

 

Keep your ACL  as it is and deactivate exisiting acl and check whether state field is read only or not 

 

Check it for member of group IT.I.SIAM.Change_Management and user who is not member of the group.

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact

Thanks,

Manjusha Bangale

View solution in original post

10 REPLIES 10

manjusha_
Kilo Sage

@Abigail ]

In your write acl (for state field)script write below code

 

var group = 'IT.I.SIAM.Change_Management';// you can use field value as well using current.getDisplayValue('assignment_group')//use proper backend name of assignment group field
var isMember = gs.getUser().isMemberOf(group);

answer =isMember;

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact

 

Thanks,

Manjusha Bangale

Hello @manjusha_ 
I tried with the code that you provided me but is allows the "assigned to" user to move the state field

@Abigail 

 

Check is there any another ACL which is making state field editable 

 

Thanks,

 

Manjusha Bangale

 

Hello, there are only two ACLs for this.
The one I created and this one

Abigail_0-1692791812807.png