How to make fields read only if logged in user is not part of assignment group in CI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2023 12:27 AM
Hello Experts,
In user table there is one field called cmdb this field type is select box as per now if logged in user cmdb=true then he can able to edit all the fields in all ci classes. if cmdb=false then he cannot edit all field will be read only.
now the requirement is
In any CI classes current logged in user is a part of support group and he is not part of assignment group and cmdb=true then we need make read only 2 fields (status and support group)
remaining fields need to be editable because cmdb=true.
note.
above change will not applicable for Admins and config admin roles
How to achieve this instead of ACLs.
Best Regards,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2023 03:10 AM
Hello @Dhruv Chandan
There are a lot of ACLs created on all server classes so i am asking is there any way or not instead of ACLs
BestRegards,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2023 03:47 AM
There are and will be multiple ways to develop a functionality.
However we need to keep in mind that we always follow best practice because if not today but in future someone will definitely raise questions for the bad design.
The onLoad script is not providing restriction to the user to make sure it stays read only as the user can edit it from the list layout. To counter that you'll have to write another ACL which will make things complex to scale and maintain.
Hope this help.
Regards,
Dhruv