How to change a device password

I’m trying to change the password HomeAssistant uses for my Synology drive.

Where is this passsword stored? And how can it be changed?

I had no luck in the UI under Configuration->Devices (Manage connected devices). I also looked through various text files including core.device_registry.

Many thanks

Richard