Create workspace using API and user management

I am looking to design an API which would create the workspace and assign users or teams to the workspace.

To create the workspace i can use the mutation but not sure how to manage users using API.

Thanks
Avi Basappa