Add Groups and Categories (with security) with WP-Discourse or the API?

@Angus, thank you so much! This was exactly what I needed!

I was able to create my groups, assign users to groups and create the categories with the proper security.

I really appreciate your help.

One other questions though… when I tried to run a PUT to update a Category or Group, I get this error:

Fatal error : Uncaught Error: Call to undefined function wp_remote_put() in […]/public/wp-content/plugins/wp-discourse/lib/plugin-utilities.php:393

Here’s my test code trying to update category ID 61 with a new name:

$path = "/categories/61.json";
$args =  array( 
			"type" => "put",
			"body" => array (
				"name" => "Cohorts 1",
			)
   		);
$response = DiscourseUtilities::discourse_request( $path, $args )

What am I doing wrong?