We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Server API - Update user

jensroy
10 - Fireball

Hi there!

 

We have an issue with a service account that we have on the Alteryx server. We cannot open the "user" page for the service account, as it will just time out. Most likely, this is because the user in the mongodb does not have first name and last name, that might cause an issue loading the content.

 

So, my question then is, is it safe to use the API to PUT the following request:

'{
"id": "dummy_service_account_id",
"name": "Service Account, Alteryx",
"firstName": "Alteryx",
"lastName": "Service Account",
"email": "email@email.com",
"isActive": true,
"roles": ["Evaluated"]
}'

 

What i worry is that I do the PUT on certain fields, and that it will blank out other fields if they are not included, such as maybe studio ID or other thing. Can I safely run this to only update the fields defined in the request?

2 REPLIES 2
abacon
12 - Quasar

@jensroy Are you able to test with a user that you are able to access through the GUI? I would think you could easily do what you're trying to do and it wouldn't overwrite the fields you don't provide, but I would feel more comfortable testing on a user.

 

Bacon

jensroy
10 - Fireball

Fantastic idea, I can just create a new dummy user and test on that. Thanks!

Labels
Top Solution Authors