Make Assignment group and Assigned to Read Only When Logged in User Don't Have Specified Role.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2024 05:59 AM
Hi All,
How to Make Assignment group and Assigned to Read Only When Logged in User Don't Have admin or Incident manager Role.
This Task can be performed by Two ways :
- ACL field Level
- Client Script (onload)
Via ACL is Working Fine, but when I am trying via Client Script is Not Working.
for knowledge purpose I am trying this Client Script but it is not Working.
Client Script Code:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2024 08:14 AM
HI @satishyelmule ,
please follow the tread so that you will let know what this not achievable from onload client script.
Thanks
please mark as solution accepted and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2024 11:16 AM - edited 08-09-2024 11:57 AM
@satishyelmule for your client script approach. You may need to update your condition as below. Rest of the code looks good.
if(!isAdmin && !isIncidentManager)
market helpful 👍and accept the solution✅if this help you to understand!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2024 11:45 AM
You can use the code given by @Satishkumar B
But make sure the variable name should be
isAdmin
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2024 11:45 AM
Hi @satishyelmule ,
Add the same code in the UI Policy script to complete this requirement with on Load checkbox true.
I have tried it and it works.
I believe there is some UI Policy that is overriding the client script.
Mark as helpful, if this helps you.
Regards,
Najmuddin.