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?

Regards
Matias

1 Like

Hi,
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:******@community.grafana.com/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?
Thanks