How to delete users from Grok server

Hi Datagrok team,

I was trying to programatically delete users from Grok server (via JS API) but received an 404 error every-time.

Can you explain me what I am doing wrong?


const user = await grok.dapi.users.filter('login = "userId"').first();

There is no such endpoint, because you can’t delete a user. You can block it (right in the next version, I will add this feature), user.status = DG.USER_STATUS.BLOCKED

1 Like