make a field editable only to specify group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2017 02:07 AM
Hi,
1. I need to create a new field "Reporting" in Request form.
2. Field can be updatable only by "Service Desk" people.
3. Other user can view the field.
4. field should be grayed out when Request state is "closed".
5. Field shall be available to reporting.
I have tried to create a field and wrote two ui policies to make the field read only when state is "closed" and (g_form.getUser().isMemberof("Service Desk")=='false'. but this was not working
Anyone help me to achieve this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2017 02:17 AM
Hello Subramani,
Try the following:
a new access control (ACL), for "write" action, on table_name.field_name which you want to control.
As condition,specify the conditions when write action is not allowed:
you can put up state is not Closed, or if you have other state values you want to exclude from editing you can use state "is not one of" Closed, etc.
If Service Desk group has a specific role which is only applicable to Service Desk, then you can add in the Requires role list that Service Desk role.
If Service Desk does not have any dedicated role, or their role is added to other groups as well, then you need to
create a script in addition, in the ACL as well:
if (gs.getUser().isMemberOf('Service Desk'))
{
answer = true;
}
else {
answer = false;
}
Please try if the above meets your requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2017 02:21 AM
Hi Andras,
I don't have an access to ACL.
Do I have any other ways to implement it.
Thanks,
Subramani.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2017 02:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2017 02:20 AM
Hi Subramani,
Please write an Write ACL on the Reporting field of Request form (sc_request.reporting_field_name) with the Script as below. Script will be visible if 'Adbance' is checked.
if(gs.getUser().isMemberOf('Service Desk')) //Pass the group name here
{
answer = true;
}
else {
answer = false;
}
I hope this helps.Please mark correct/helpful based on impact