API endpoint for User Groups?
I am super terrible at searching or picking the right keywords, but I am completely stumped on whether I can use the API to get a list of User Groups. I searched the Swagger page ( https://www.logicmonitor.com/support/rest-api-v3-swagger-documentation ) for user group, group, and looked through everything, and I cannot find a GET command to pull back a list of User Groups. I'm talking about the section under settings where you can make Users or User Groups, like if you wanted to organize "Department 1" and "Department 2" or "Ungrouped" under your users list.
Can anyone tell me the endpoint for getting a list of User Groups?
I swear I've combed the API swagger doc for every occurrence of group on the page, and found nothing. Maybe it doesnt exist in V3? Or maybe I'm terrible at searching. :) I would just grab all the users and brute force a list, except I am specifically wanting to interact with any empty User Groups as well, so I have no idea how I would find them with the API
Thanks, and sorry for such a basic question.
Well I found the solution. I dont like it but I found it. As I mentioned, the endpoint that worked in API V1, "/setting/admin/groups", does not exist in the swagger DOC in API V3. So I thought the functionality was removed since there was no "/setting/admins/groups" (admins with an "s") in the documentation for V3, and the old one wasnt present.
BUT annoyingly, the OLD endpoint from API V1 still works, and I can actually get a response from "/setting/admin/groups" but I guess that means technically its unsupported.
Thanks!