Required parameter for every type of request:
id, set to 0 for a POST request.
Sample Go code for each method is available on the pages above, but I don't have the knowledge to develop this by myself.
I hope I'm doing it the good way to ask this, and thank you for creating a PR if you find this enhancement helpful!
Hi,
This is a followup of #12 to request Smart user groups and Static user groups support for resources and data sources.
Description
Classic API Endpoint for User groups is described here:
POST
request to create a new smart or static user group https://developer.jamf.com/jamf-pro/reference/createusergroupsbyidPUT
request to update an smart or static user group https://developer.jamf.com/jamf-pro/reference/updateusergroupsbyidGET
request to obtain smart or static user group details https://developer.jamf.com/jamf-pro/reference/findusergroupsbyidDELETE
request to remove a smart or static user group https://developer.jamf.com/jamf-pro/reference/deleteusergroupsbyidEndpoint URL: https://yourServer.jamfcloud.com/JSSResource/usergroups/id/{id}
Sample request body for
PUT
andPOST
for smart user group (settingis_smart
totrue
):Sample request body for
PUT
andPOST
for static user group (settingis_smart
tofalse
):Required parameter for every type of request:
id
, set to0
for aPOST
request.Sample Go code for each method is available on the pages above, but I don't have the knowledge to develop this by myself. I hope I'm doing it the good way to ask this, and thank you for creating a PR if you find this enhancement helpful!