Gidon_Albert
2 years agoContributor II
TransformationEventHandler and ManageWorkflowProfiles Security Role
We have a TransformationEventHandler that adds missing members that is kicked off by the
Select Case args.OperationName
Case Is = BREventOperationType.Transformation.ParseAndTrans.ProcessTransformationRules
'Suspense Invalid Members
If suspenseInvalid Then Me.XFR_HandleProcessTransRules_SuspenseInvalid(si, globals, api, args)
'Create Invalid Members
If createInvalid Then Me.XFR_HandleProcessTransRules_SuspenseInvalid(si, globals, api, args)
End Select
Our security profile assigns different groups to each workflow's execution group. This prevents users in one entity from seeing or executing workflows for another entity. When a user in an execution group tries to import or retransform data, they get the following error:
Unable to execute Business Rule 'TransformationEventHandler'.
Security Access Error. User is not authorized to access workflow profile.
We can avoid this error by setting the ManageWorkflowProfile security role to the same group that executes the workflow or to 'Everyone', but then the members of that group can see all the workflows.
Any ideas on how to allow the workflow's execution group to perform the import or retransform without triggering the error?