Exception: VMO61008: You do not have sufficient permissions to complete the operation. When i try to use in VideoOS.Platform.ConfigurationItems.HardwareDriverSettingsFolder to retrieve camera serial number

I’m developing a workspace plugin.

I’m using MIP SDK 2019R3

The part of my code that throw exception is this:

hardware.HardwareDriverSettingsFolder.HardwareDriverSettings.FirstOrDefault().HardwareDriverSettingsChildItems.FirstOrDefault().Properties.GetValue(“SerialNumber”);

If i use an administrator user all is ok, but when i try to use a user that is not an administrator i got an exception:

VMO61008: You do not have sufficient permissions to complete the operation. in VideoOS.Platform.Proxy.ConfigApi.ConfigurationApiItemWrapper.Children()

in VideoOS.Platform.ConfigurationItems.HardwareDriverSettingsFolder.get_HardwareDriverSettings()

For the user that is not an administrator i’ve used a role and by the “XProtect Management Client” i’ve set “full control” on cameras for this role, but whatever security settings i do to this role i always get the same exception.

Please let me know what settings i have to do to this role to retrieve the camera serial number without using an administrator role.

Best Regards

We tested with your code and basic user who is not admin, and it works.

Our minimal settings in Management Client is following –

[Overall Security]

Management Server – Connect “Allow”

Cameras – Read “Allow”

*If you check on “Deny” in some categories in Cameras and Management Server, then please remove them.

[Device]

* Please check if “Read” is checked-on in your cameras.

So, can you please try above settings on your installation? If it does not work again, please share your settings about -

[Overall Security] Management Server,

[Overall Security] Cameras,

[Device]

It would be great if you could share these images of Management Client - Role.

I’ve attached the setting i’ve and the exception log i receive

Just for completeness in the [Overall Security] Management Server i dont see Connect “allow”

I see (as you can see in screenshot attached) the API Status, Full Control and User Authorization. I’ve tried also to set Full Control but i receive the same exception.

Regards.

I could see “Connect” 2019R3 XProtect Corporate, so which version and edition of the XProtect VMS are you using?

I’m using Milestone XProtect VMS Products 2019 R1

Have you seen my screnshots, and the settings i’ve done?

More precisely i’m using Miestone Professional Plus 2019 r1

We will start setting up 2019 R1 Professional plus so let me get back to you later.

Hi Rie, have you some news about it?

I’ve also tried to do a simple component project just for test.

And after the code for login i’ve called the code to list all cameras and for each one camera i’ve found i ve tried to retrieve the serialNumber. Also for this test the result is the same i obtain with my plugin project: with an administrator credential all is fine, with another role i got always the exception “VMO61008: You do not have sufficient permissions to complete the operation”

Hi. We tested 2019 R1 Professional Plus and we got the same result as yours. We will discuss this issue with Milestone Development and let me get back to you next week.

ok Rie, thanks for your response.

see you next week for updating

regards

Hi Pasquale,

I have talked with experts in the Milestone Development and realized that this issue was fixed at 2020 R1. This means, if you use the older version than 2020R1, then it happened unfortunately.

Hi Rie,

I’ve tried with the 2020R2 and now it works.

Thanks.