This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to delete users with ReST API?

I have tried to find out if there is a call to delete users with ReST API. I did not find one so far.

A customer as to delete hundred of users in an environment ...


Use "Verified Answers" if your problem/issue has been solved!

  • 0  

    I can not see anything is the rest documentation, but will try to find out, the undocumented call I used to use doesn't work any more.

    One way to stop them logging in would be try settting the inactive flag in the db on ss_principals, I think that should work.  Do not set the delete flag as this will not do a proper delete and will leave orphaned records for shares etc. 

  • 0   in reply to   

    Thank you Robin. But they want to remove all local data too (personal workspaces) ...


    Use "Verified Answers" if your problem/issue has been solved!

  • Verified Answer

    +1  

    So we managed to work it out

    DELETE https://<server>/rest/admin/users?name=<userid>