- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 04:25 AM
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.
only exists other ACL for the state field
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 04:38 AM - edited 08-23-2023 04:38 AM
@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;
Thanks,
Manjusha Bangale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 05:01 AM - edited 08-23-2023 05:02 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 04:38 AM - edited 08-23-2023 04:38 AM
@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;
Thanks,
Manjusha Bangale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 04:46 AM
Hello @manjusha_
I tried with the code that you provided me but is allows the "assigned to" user to move the state field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 04:51 AM
Check is there any another ACL which is making state field editable
Thanks,
Manjusha Bangale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 04:57 AM
Hello, there are only two ACLs for this.
The one I created and this one