We are working on an automation task, would like to perform the "invite the users" action using API.
I have identifed an API to create user, one for adding user to group but they are missing few fields that are available in UI (front end) but not in API :
1. option to select the user role
2. select the products for which user can be given access
3. mention group membership while creating the user
Other query is "Can we create user and add the him/her to group in with single API call ?"
Please help us with the above queries.