How to Allow End Users to Run Workflow Without Failing?

zacpolin
zacpolin Member
edited June 10 in Workflows

Hello,

I've created this workflow to update a users Domo role based on a start form. I've tested all aspects of this workflow and it works when I run it, it works when I test it with a hardcoded User.ID, and it also works when another Admin runs it.

When I have an end user run this workflow, it fails on the last step "updateUserRole". I'm assuming it's failing here because that user's current role doesn't have access to update their own role. Is there a way around this?

I thought the workflow would run based on the owners permissions (me) as an admin and not the individual users permissions. Without this, workflows lose a lot of there practical functionality for our use cases. Screenshots attached.

Image1.png Image2.png Image3.png

Thanks!

Tagged:

Best Answer

  • ArborRose
    ArborRose Coach
    Answer ✓

    I don't think you would ever want workflows to override permissions or set a role if the user didn't already have permissions. You could try to setup an indirect workflow that triggers or "listens" for updates to a dataset. Have the user fill out a form or submit whatever….and have that trigger the admin owned workflow.

    ** Was this post helpful? Click Agree or Like below. **
    ** Did this solve your problem? Accept it as a solution! **

Answers

  • ArborRose
    ArborRose Coach
    Answer ✓

    I don't think you would ever want workflows to override permissions or set a role if the user didn't already have permissions. You could try to setup an indirect workflow that triggers or "listens" for updates to a dataset. Have the user fill out a form or submit whatever….and have that trigger the admin owned workflow.

    ** Was this post helpful? Click Agree or Like below. **
    ** Did this solve your problem? Accept it as a solution! **

  • DanHendriksen
    DanHendriksen Domo Employee

    Yes, the user who runs the workflow is the user who performs all the tasks. If they don’t have permission to do that the task will fail.

    In situations like these, our support team can setup a workflow to always run as another user (IE: you). Just understand it will always show it was ran by you, and all the ramifications that go with that.

  • zacpolin
    zacpolin Member

    @DanHendriksen That is helpful to know. Thank you!

    I like the idea that @ArborRose shared about trigger an admin owned workflow to run based on a dataset updating. I will try to implement that into my process. I think that should work for what I'm trying to accomplish. Thank you for this tip!