Set idDisabled true to user by api

Hi all,
2 days ago I updated grafana 7 and I really liked the changes. One of the new things that I needed is to enable or disable a user, I was waiting for it. But I have a question: how can I enable / disable a user through the http api?


1 Like

Is this option available through api? To me it looks like only username or email could be modified :frowning:

root@grafana /root #  curl -X PUT -H "Content-Type: application/json" -d '{"isDisabled":true}' http://admin:******@localhost:3000/api/users/21
{"message":"Validation error, need to specify either username or email"}
root@grafana /root #

Is there another way to disable users over api?