Snapctl set only with sudo?


I want to set some config values from inside of my snap using “snapctl set” but not within the context of the configure hook, but from a regular app (bash script). When I try, I get

error: cannot use "set" with uid 1931146543, try with sudo

Is this the “normal” and intended behaviour? I thought sudo is only needed if setting from the outside with

sudo snap set ....

I thought using snapctl inside of a snap does not require sudo (as inside of a snap there is no sudo?)

The snap configuration values are system wide, not just for a single user. So, like configuration in /etc, access is restricted