Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Required permissions for Surveillance Station #168

Open
thiagofigueiro opened this issue Oct 7, 2021 · 1 comment
Open

Required permissions for Surveillance Station #168

thiagofigueiro opened this issue Oct 7, 2021 · 1 comment

Comments

@thiagofigueiro
Copy link

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
Copy link

apires commented Jan 19, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants