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

Required permissions for Surveillance Station

Open thiagofigueiro opened this issue 3 years ago • 1 comments

Calling SynologyDSM().surveillance_station.update() with a regular user results in:

SynologyDSMLoginInvalidException: {'api': 'SYNO.API.Auth', 'code': 400, 'reason': 'Invalid credentials', 'details': 'Invalid password or not admin account: user'}

I received the same error for SynologyDSM().information.update().

Does this package only work with admin users?

thiagofigueiro avatar Oct 07 '21 02:10 thiagofigueiro

Stolen from the Home Assistant doc, which uses this package:

"Due to the nature of the Synology DSM API, it is required to grant the user admin rights. This is related to the fact that utilization information is stored in the core module.

When creating the user, it is possible to deny access to all locations and applications. By doing this, the user will not be able to login to the web interface or view any of the files on the Synology NAS. It is still able to read the utilization and storage information using the API."

apires avatar Jan 19 '23 01:01 apires