Delegates - How to allow certain roles to create new delegate records for all users

pennieturner
Mega Guru

At present, you can only add a delegate to your own user record (unless you are admin)

I want to allow a group of people IE Service Desk to be able to create and write to a users delegate record.

So I created a new ACL for sys_user_delegate Create Record and allowed the servicedeskmanager role access to it, but I still get an error -

Invalid update

Cannot assign or modify other users' Delegates

I updated the other rules for sys_user_delegate table so that the servicedeskmanager role can read and write to the table, and they can see it, but when they press submit the error appears.

Any ideas how I can do this so that the servicedeskmanager role can update delegates for other users?

Thank you

6 REPLIES 6

sumeet_n
Kilo Guru

Hi Pennie,




I did not create any new ACL. Modified the script in below ACL




Record | Write | sys_user_delegate.user




as: (gs.hasRole("approval_admin") || gs.hasRole("servicedeskmanager"));






let me know if this works.


Thanks for the quick response, but I tested adding the approval_admin role to her but it didn't work.   I just made the change you suggested and I still get the same error



Do I need a rule on the sys_user_delegate table aswell for create do you think?


I am not sure if there are any other acls affecting this behaviour in your instance. You may try adding create role as well. And yes my user also had itil role, if thats the difference.



Unfortunately i don't have the system with me. You can check the modifications done by me on demo004. User is Abel Tuter and role is test_delegation_role.


rathbone
Tera Contributor

This is an older thread but wanted to do the same thing. For anyone that happens upon this thread you also need to modify the "Delegates" business rule.