How to Allow End Users to Run Workflow Without Failing?
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.
Thanks!
Best 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! **1
Answers
-
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! **1 -
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.
0 -
@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!
0
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 664 Datasets
- 120 SQL DataFlows
- 2.3K Magic ETL
- 824 Beast Mode
- Visualize
- 2.6K Charting
- 86 App Studio
- 46 Variables
- Automate
- 194 Apps
- 486 APIs & Domo Developer
- 90 Workflows
- 24 Code Engine
- AI and Machine Learning
- 23 AI Chat
- 4 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 119 Domo Everywhere
- 283 Scheduled Reports
- 11 Software Integrations
- Manage
- 143 Governance & Security
- 11 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 116 Community Announcements
- 5K Archive