- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2018 06:52 PM
Hello,
I created a custom table for which i need to read access to all the itil users and write access to Network Support group users.
How to acheive this ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2018 08:06 PM
Hi Irfan,
Write the code in ACL script part:-
For Write Access:-
if(gs.getUser().isMemberOf('Network Support')){
answer=true;
}
else{
answer=false;
}
For Read Access:-
if(gs.getUser().hasRole('itil')){
answer = true;
}
else
{
answer = false;
}
TIA
PKG

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2018 07:10 PM
Hi Shaik,
You will need to create 2 ACL rules, one for each group's level of access.
have a look at the docs on how to do this:
(note you will need to elevate your roles to security_admin before you an create or edit ACLS)
rule #1,
Type: record
Operation: Read
Name: (this is where you choose your custom table) , leave second dropdown as none to apply rules to the entire table.
Add the Role 'itil' to the requires role related table
rule #2,
Type: record
Operation: Write
Name: (this is where you choose your custom table) , leave second dropdown as none to apply rules to the entire table.
-> create a new role for managing your custom table, ie. 'XXXX support'
Add the new Role'XXXX support' to the requires role related table AND to the Network support group to give them write access
🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2018 04:48 AM
Thank you that may work but we dont want to create a custom role 😞

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2018 07:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2018 08:06 PM
Hi Irfan,
Write the code in ACL script part:-
For Write Access:-
if(gs.getUser().isMemberOf('Network Support')){
answer=true;
}
else{
answer=false;
}
For Read Access:-
if(gs.getUser().hasRole('itil')){
answer = true;
}
else
{
answer = false;
}
TIA
PKG