CA Service Management

Expand all | Collapse all

Restrict Users from Approving Change Workflow Tasks When Not Assigned to Them

Jump to Best Answer
  • 1.  Restrict Users from Approving Change Workflow Tasks When Not Assigned to Them

    Posted 09-29-2016 02:03 PM

    There are concerns that I have that anyone that has access to the Change record can approve a Workflow Task. Although there are logs to show if this happens there are far to many Change Records to track to that level of detail. What can I do to ensure that only the ones in the Group (or specific member if assigned to them) can approve a particular task? I thought of doing a data partition but not certain how I would restrict that since all users need to at least be able to approve their first Workflow task to start the workflow. Any ideas would be appreciated.



  • 2.  Re: Restrict Users from Approving Change Workflow Tasks When Not Assigned to Them
    Best Answer

    Posted 09-29-2016 02:35 PM

    Hi,

     

    We've accomplished this requirement using a pre-update data partition on the Workflow_Task object.

     

    This constraint restricts users from approving workflow not assigned to them, unless the assignee is null OR they are part of the group assigned to the task.

     

    Here's a constraint that should work for your requirement.

    assignee = @root.id OR assignee IS NULL OR (group.[group]group_list.member IN @root.id)

     

     



  • 3.  Re: Restrict Users from Approving Change Workflow Tasks When Not Assigned to Them

    Posted 09-29-2016 07:26 PM

    with this in place, I am seeing that users cannot add and/or edit new tasks which we have to allow them to create in the workflow. Can we do anything that will not prevent them from accomplishing this?



  • 4.  Re: Restrict Users from Approving Change Workflow Tasks When Not Assigned to Them

    Posted 09-29-2016 07:41 PM

    I got it, the NULL value was off for one of the parameters thanks again.



  • 5.  Re: Restrict Users from Approving Change Workflow Tasks When Not Assigned to Them

    Posted 09-29-2016 02:42 PM

    Thank you very much! I have this in Test now and it is working.



  • 6.  Re: Restrict Users from Approving Change Workflow Tasks When Not Assigned to Them

    Posted 09-29-2016 02:52 PM

    Just a side question... Do you have something in place that restricts them from changing the group to their own group, assigning it to themselves and then approving it?  If not they would still be able to approve the task.

     

    Tammy



  • 7.  Re: Restrict Users from Approving Change Workflow Tasks When Not Assigned to Them

    Posted 09-29-2016 03:30 PM

    This restriction won't allow users to edit workflow if assignee is filled (unless they are in the same group as the assignee) . If assignee is null and group is filled it can be transferred to another group.