User Group APIs
You cannot create either user groups or product profiles through the API. You must create them in the Admin Console. You can then use the User Management API to manage product access for users by adding and removing users to and from your existing user groups and product profiles.
You can use a POST request to the action
resource for your organization to manage user group memberships, and to manage administrative rights in user groups. The commands in the body of your POST request specify action steps to take for a given user.