How to Make a field read only for user if he's from a certain group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2023 03:07 AM
Hi Everyone,
i wan't to make a field read only for currently logged in user if he's not from a certain group, i don't wan't to create ACL or Business rules, can this be done via UI policy?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2023 03:18 AM
Yes its possible, please use script field in UI policy and apply your logic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2023 03:20 AM
could you please give an example of a logic for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2023 03:32 AM
I believe ACL is the easiest option for doing the same, in UI policy you need to make GlideAjax call for checking whether user is the member of the group then you need to make it readonly/editable.