API Error for Retrieve User and List Users
Here are the two end points I have tried:
https://api.domo.com/v1/users/1
<Response [403]>
{"error":"insufficient_scope","error_description":"Insufficient scope for this resource","scope":"user"}
https://api.domo.com/v1/users?limit=10
<Response [403]>
{"error":"insufficient_scope","error_description":"Insufficient scope for this resource","scope":"user"}
Comments
-
Try creating a client and allow it to have a scope with all the permissions and see if you get the same issue. If you do something else is wrong, if you don't than you need to grant an additional scope than you realize you need to. First thing that jumps out is if you're trying to GET user DATA you probably need to add the "Data" scope to that client.
**Make sure to like any users posts that helped you and accept the ones who solved your issue.**0 -
Thanks for the response! So if i understand this correctly, the function of this API endpoint is not as simple as pulling any DOMO users profile 'out of box', without having to set them up a specific way? We have 100+ users right now in our Domo environment, and i was looking for a way to pull any one of these 100+ users' profiles via the API. Thank you!
0 -
You should be able to retrieve information about the user as documented here https://developer.domo.com/docs/users-api-reference/users-2#Retrieve%20a%20user I just mean that the scope of 'user' might be enough permissions to create a user but not retrieve information about a user. Didn't know that for a fact which is why I suggested added all permissions to the Client you're using in your code, and if it then works I'd bet it's the 'data' scope that made it work.
Try the following:
1: Go to https://developer.domo.com/
2: In upper right go My Account->New Client
3: Create a new client will all scopes
4: Replace the credentials in your script to the new client credentials and try again
5: If it works try creating a client with only the User and Data scopes and see if that works.
6: If none of the above works I'll try to see if I'm able to get it and help
**Make sure to like any users posts that helped you and accept the ones who solved your issue.**0 -
FYI I did do a quick test in the API Explorer https://developer.domo.com/explorer#!/auth and you can do one for list users, it worked when I did a scope of Users and Data
**Make sure to like any users posts that helped you and accept the ones who solved your issue.**0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive