ProtoThis / python-synology

MIT License
55 stars 38 forks source link

Required permissions for Surveillance Station #168

Open thiagofigueiro opened 2 years ago

thiagofigueiro commented 2 years ago

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?

apires commented 1 year ago

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."