Workflow access denied but still task is completed

Frank Martin 476 Reputation points
2024-04-17T06:43:47.15+00:00

I made a simple SharePoint 2013 workflow using SPD in SharePoint 2016. When an item is created, task is assigned to Group2 for approval. There are two security groups.

Group1 - this group can create items

Group2 - this group can approve/reject items

On this list there is another SharePoint 2010 workflow running which set permissions as follows. Initially when workflow is started, both groups have Contribute permission on list item. The workflow removes Contribute permission for user who created item and replace it with Read permission.

Now the problem is when the user who created item, tries to approve workflow, it gets error which is fine (because it has Read permission). But at the same time workflow status is changed to Completed which means task is now complete. This doesn't make any sense! If the user doesn't have permission and it is throwing error, why task is set to Completed? Because of this workflow gets stuck as now when Group2 tries to do anything, it cannot because task is Completed.

Screenshot given below.

workflow

SharePoint Workflow
SharePoint Workflow
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Workflow: An orchestrated and repeatable pattern of business activity, enabling data transformation, service provision, and information retrieval.
600 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Xyza Xue_MSFT 25,466 Reputation points Microsoft Vendor
    2024-04-18T07:55:28.82+00:00

    Hi @Frank Martin ,

    Thank you for posting in this community.

    Why not combine two workflows into one workflow? Try this. Maybe this will solve your problem.SharePoint Designer 2013 will be discontinued on Jul 14, 2026, so maybe you can migrate and try out SharePoint Online and Power Automate as soon as possible.

    User's image

    https://learn.microsoft.com/en-us/lifecycle/products/sharepoint-designer-2013


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.