Is there an api to set the primary group for a user

I think you may be able to update user settings via updateUser operation:

https://docs.discourse.org/#tag/Users/operation/updateUser

1 Like