User API to Update Users
Hello,
I am attempting to update a user using the DOMO User API. When doing so, I receive a HTTP status code of 500.
I have been able to successfully add/get users to/from our DOMO instance using the API. However, I cannot update them. This is what my header contains:
Method: PUT
URL: https://api.domo.com/v1/users/(userID)
Accept: application/json
Content-Type: application/json
Host: api.domo.com
Content-Length: 35
Authorization: bearer (token)
Body: { "email" : "example@example.com" }
I am following the DOMO User API documentation and everything looks alright, but it seems like I must be missing something. Has anyone else ran into this problem or notice something I have missed? Any help would be greatly appreciated!
Thank you
Best Answer
-
@ZMM - There are actually a few other required fields you need in the body of your PUT. It is looking for "name", "email" and "role" fields.
{
"email": "emaild@domain.com",
"role": "Admin",
"name": "UserName"
}Also to note - the API currently only supports the updating of those three fields.
I am already working with development to have them update the documentaion and add more functionality.
What other parts of the user would you like to update via the API?
2
Answers
-
I have been trying to get these to work as well. The URL does not make sense to me. if it truly is api.domo.com, how do you get users for your instance. I have worked with the workbench and domoapi.dlls but these APIs are just not making sense to me. for example, why do you need client id and secret if you have an authorization token? with the DLLs, I just used the token.
I guess I will be combing Dojo for more posts.
Best of luck. Let me know if you make progress.
0 -
Hi,
Updating users seems to be a bug.
I can confirm that I am able to get/add/delete users, but my problem is that I cannot update them. I followed the documentation regarding getting/adding/deleting users to DOMO.
The ID and secret are linked to your DOMO instance. I used the client ID and secret to get the token. The token is only valid for a certain amount of time (about an hour). After that, a new token must be generated from the client ID and secret. From there, I used the generated token in the Authorization header which allowed me to get the desired data.I hope that this information has helped!
0 -
@ZMM - There are actually a few other required fields you need in the body of your PUT. It is looking for "name", "email" and "role" fields.
{
"email": "emaild@domain.com",
"role": "Admin",
"name": "UserName"
}Also to note - the API currently only supports the updating of those three fields.
I am already working with development to have them update the documentaion and add more functionality.
What other parts of the user would you like to update via the API?
2 -
Hi @Bulloko,
I just tried it and it worked!
Those three fields are actually the ones that I needed to update.That is likley why it was not working for me. I was told a few weeks ago that this was a bug, but I am very happy it is working now!
It would be nice to be able to update "title" as well, but for now this will work.
Thank you again, Bulloko!
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
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 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