Can't delete group with Domo Group API (Python SDK)
Hello,
I'm trying to set up some PDP Automation process using groups, however, I notice that the Python command for delete group does not work properly, I'm not sure if I have adequate permissions or if the API is just not working.
For example, when trying to run
domo.groups.delete(group_id)
I get:
"statusReason":"Bad Request","message":"Can't delete a group that contains users"
So I proceed to remove the users inside with
domo.groups.remove_user(group_id, user_id)
But then, when I try the first command, I get:
"statusReason":"Forbidden","message":"Forbidden","toe":"3ULDJ4BKT1-I4MS6-CV520"
So…
Basically now I can no loger delete a group because I'm not a manager of the group… I can't even remove the group from the website…. So is now that group orphaned and immortal??
It seems that the group API is just weird… because it forces you to remove users, but then you are locked out.
What am I doing wrong?
Any thoughts would be appreciated.
Comments
-
What is your role inside of Domo? We have a specific grant for "Manage All Groups" That you may need to execute this endpoint.
0 -
"BI Power User Fast Track". I can see the following two Grants on the Role description:
0 -
Looks like a custom role. An admin with that Manage All Groups grant should be able to delete that group via API or via the UI.
Did you remove yourself from that group as well with that first command? That would prevent the "Edit Groups" grant from applying to that group.0 -
Yes. I did remove myself because the message error was telling me that I "Can't delete a group that contains users", instead of directly telling me that I did not have permissions to do that operation regardless of the group having users within it. So, error message is kind of confusing.
But thank you for your help, I will send an e-mail to the Admin to delete the groups wrongly created.
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive