User management Programmatically

Is it possible to remove, change roles, etc. users on code, not on the Auth tab of weweb?

If possible, I would appreciate it if you could tell me how.