Approval Rule getting in the way

Hi Team. 

I have an issue with a workflow. The workflow Run AS accounts for the user who started the workflow. The workflow starts when a BOOLEAN VA is selected. 

As you can see in the screenshot, there is an approval rule. If approved, it add adds the workflow target to a security group. Then, it sets an attribute on the workflow target and the values of the account's email address that initiated the change. Finally, it runs a Powershell script. 

If I disable the Approval rule, everything runs as expected. When I enable the approval rule, the step where it sets an attribute value to the email address of the person who initiated the start of the workflow is blank. I assume the Approval rule is getting in the way or taking over the following steps as the service account.?

Any suggestions? 

Top Replies

Parents
  • Hi  

    Let me re-cap,

    You have a change approval workflow, where if anybody changes the value of a VA (either 0 to 1 or 1 to 0), the initiation conditions are met.

    The normal flow the workflow should be:

    Pre-Operation

    • Approval Task activity step: Get approval from the Service Desk

    Operation

    Post-Operation

    • Add to Group activity step: Add the workflow target users into some group
    • Update object activity step: Initiates a new request to update some attributes of the workflow target user (not sure what the email address bit was doing)
    • Execute Script activity step: Execute a PowerShell script, to do stuff in the workflow target users in OneDrive (permissions and possibly something else)

    However, with the approval step disabled, the workflow operates as expect, but with it enable it doesn't.

    Are you able to share the output of the change history for a user when it doesn't work? Specifically, the details in the Workflow activities and policy actions, and also any events related to any warnings or errors in the Active Roles Admin Service event log? Also can you confirm the version of Active Roles your using?

Reply
  • Hi  

    Let me re-cap,

    You have a change approval workflow, where if anybody changes the value of a VA (either 0 to 1 or 1 to 0), the initiation conditions are met.

    The normal flow the workflow should be:

    Pre-Operation

    • Approval Task activity step: Get approval from the Service Desk

    Operation

    Post-Operation

    • Add to Group activity step: Add the workflow target users into some group
    • Update object activity step: Initiates a new request to update some attributes of the workflow target user (not sure what the email address bit was doing)
    • Execute Script activity step: Execute a PowerShell script, to do stuff in the workflow target users in OneDrive (permissions and possibly something else)

    However, with the approval step disabled, the workflow operates as expect, but with it enable it doesn't.

    Are you able to share the output of the change history for a user when it doesn't work? Specifically, the details in the Workflow activities and policy actions, and also any events related to any warnings or errors in the Active Roles Admin Service event log? Also can you confirm the version of Active Roles your using?

Children