Programmatic way to add/remove a user from groups

How can we add/remove a user from a group(permission group) using curl command?

When i assign a user in a group using “metabase UI” i can see in backend an api is called.

http://metabaseui/admin/people/userId/edit

But not able to figure-out, how to use this api in curl command to assign/remove a user from group.
Please help on this.

Hi @cloudops
By using the API: https://github.com/metabase/metabase/blob/master/docs/api-documentation.md
The best way to learn the API, is to just use Metabase while having your browser developer Network-tab open and looking at the request, and what data is being send/received. Many browsers even gives you an option to copy as cURL command by right-clicking the request.