GetUsersGroups API Error
Hello.
I've created a number of new properties and added them to a new tab within Incidents.js, then assigned the visibility of this tab to a particular group. However, when a user with that permission group checks - they cannot see the tab they should see. This has led to me wanting to check within the browser to see what groups the portal believes that particular user is assigned to, but when I run the GetUsersGroups API, IE:
https://TheNameOfOurSite/api/V3/User/GetUsersGroups?id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
All I get is this:
My current question and issue simply relates to the API issue here; why is this returning an error? I am following the same format as is advised, and there is at least one other user api link that works for that user id, so it's not a blanket API issue. For example, when I run the below, relevant data is returned:
Answers
Hi Martin,
You might need a capital I in Id.
This is how I use that API
Hi Geoff. Navigating to the URL - even with a capital I - still only returns an error. However if I run the script you mentioned while in the console on the portal page, it does return data. Not sure if it should ever work using the URL method but this will give me the info I need so I guess I don't really need to know at the moment - thank you!