top of page

Restrict CRUD Operations with BPA Workflow

Writer: Chris Wharton
Chris Wharton
5 days ago
3 min read

I recently read a LinkedIn article by IFS Wire about how IFS Cloud manages create and update permissions through projection actions.


Several people had shared ways to stop specific users from using the create or update method on a specific record. The suggested methods seemed a little hacky or needed back end development and the discussion got me wondering whether a BPA workflow could do the same job more cleanly.


Why BPA workflows?

A BPA workflow can be set to run on the create, read, update or delete operation of any dataset in IFS Cloud. That makes it a natural place to put this kind of access check, without custom code. They can run from projection actions or custom events.


The workflow

We have built a very simple workflow and turned it into a reusable template. It has a few simple steps which can be deployed into multiple reusable workflows.


  1. Define the Permission Set to check.

  2. Identify the user running the operation.

  3. Check the user against their directly assigned permission sets.

  4. Check the user against their group assigned permission sets.

  5. If both checks return zero results, then show an error message, else, allow the operation.



This could be adapted to check a user group that the user belogs to. For more advanced cases, you could combine the permission set check and a user group check to decide who gets access, or require the user to have a group assigned permission and not a direct permission.


Download the Template


Installing it in your environment

  1. Upload the template as a new BPA workflow template.

  2. Clone it for each workflow that needs the same control.

  3. Update the permission set details in the workflow, save and publish

  4. Add projections or custom events to connect to the workflow.


One workflow and multiple projections

A single workflow can be called by multiple projections. Take the original example, where purchase orders needed to be restricted. You could attach the same workflow to both the purchase order header and the purchase order lines.


If the same permission set controls create and update on both, pointing several projection calls at one workflow is the cleanest solution. You maintain the rule in one place, and it applies everywhere it's needed.


Upload the Template

  • Navigate to Solution Manager > Workflow Manager > Workflows

  • Select Upload

BPA Workflow Upload

  • Browse for files, Identify the BPMN file to upload and then press OK

BPA Workflow File Selection

Clone the Template

Using the tree navigator on the left hand side, select version 1 and select Clone

BPA Workflow Cloning

Clone as a new workflow, add a name and press OK.

BPA Workflow Naming

Customise the Workflow

You should now be on your cloned workflow. Select version 1 and hit the design button.


  1. Select the first task in the worklfow

  2. Select Input/Output and expand the Role variable

  3. Update the Assignment Value to your permission set name.


BPA Workflow Customisation

  • Save the workflow and deploy it.


BPA Workflow Deployment

Add your projection action(s)


BPA Workflow Projection Definition

IMPORTANT STEP: To ensure the workflow runs correctly, the Type must be VALIDATION (as we are utilising the error message functionality) and the Timing must be BEFORE - to ensure the logic runs before the record is changed.


Here we also define that this will work upon the CREATE operation.

BPA Workflow Selection type and timing

Activate the action and Finish the wizard

BPA Workflow Enable Action

Take it for a spin


My restriction was on the purchase order creation. Here i can create the purchase order header, however when i click save, i get the error from our workflow.

Purchase Order showing restriction upon save

You should now be able to use this in your own workflows to enhance your business logic.


As with anything of this nature, alwyas test in a non-production environment and fully test the logic. For purchase orders there are many ways in which they can be created and you will need to test impacts of the new restrictions on all processes.

bottom of page