How to get camera groups and Roles in Milestone Xprotect export without giving basic user admin role.

I am trying to retrieve the list of camera groups and list of roles from the Milestone sdk.

i am using the code bellow:

ManagementServer ms = new ManagementServer(VideoOS.Platform.EnvironmentManager.Instance.MasterSite);

var roles = ms.RoleFolder.Roles;

var rooms= ms.CameraGroupFolder.CameraGroups;

this code works on Milestone XProtect Corporate only if i give the basic user read right on the management server in the overall security tab. This option is not available on the other versions.

May you let us know a workaround for this problem?

Thanks.

  1. This is by design.

  2. In Professional+, user should be as administrator when you use Configuration API.

  3. In Corporate, basic user without admin-group can use Configuration API because Corporate has differentiated admin rights functionality.

So if you want to use Configuration API in Professional+ then user should be in Administrator group.

You can get CameraGroups with MIP configuration, please explore Configuration Access - https://doc.developer.milestonesys.com/html/index.html?base=samples/configaccess_sample.html&tree=tree_2.html