python-qnapstats icon indicating copy to clipboard operation
python-qnapstats copied to clipboard

User does not need to be an admin, "delegated administration" seems enough

Open ast0815 opened this issue 7 months ago • 0 comments

Hello!

I am using this library as part of the QNAP integration in home assistant. Works very nicely!

I tried on a whim, whether it might be possible to use this with a non-admin account (for paranoia reasons) and it works! You just need to give the account certain "delegated administration" rights in the control panel. I gave the user the following rights:

  • System Monitoring
  • Shared Folder Management

This allowed me to use the integration without errors. I am not 100% sure the "Shared Folder Management" is necessary, but I would suspect it is to monitor the disk usage. I'm on QTS 5.2.4 with a TS-321+.

Just wanted to note this here, so maybe the README can be amended to reflect this. I think this is generally a tiny bit more secure than using a user with full admin rights.

Anyway, thanks for this package!

ast0815 avatar May 08 '25 08:05 ast0815