Using the API Gateway REST API how can I see what users/ad groups have access to which cameras?

Hi!

I can see how to get which cameras belong to which cameraGroups, and users to roles, roles, but I’m not sure how to go from users to cameras. I’m guessing through views or viewgroups, but I can’t find the routes that would show those relationships.

Thanks,

Steven

When you have the camera there is a task “ChangeSecurityPermissions”.

The task takes a parameter “userPath”. This is found by doing..

Now I can do a POST like this..

If I want to change the permissions I can also do that..So what you get is for one camera and one role what are the permissions. It is not like a camera belongs in a role like it belongs in a group. Each role has a set of permissions for each camera. The camera object is the container, for each camera you can for each role find the permissions set.

Note that often it is sufficient to know that if you have the user context it is all automatic. What I mean is; if you are logged in as user A and ask for all the cameras you will get all those you are allowed to see.