Apparently changing the password on a share changes its ID. Small code refactor to work around that.
Added support for sharing with users and groups.