The io.cozy.permissions
doctype is used for a owner of the cozy instance to
control the access of his data.
type
{string}: Permission typeregister
: temporary permissions allowed by registerTokenapp
: permissions for an applicationkonnector
: permissions for a konnectoroauth
: permissions for an oauthcli
: permissions for commandlineshare
: permissions for a share by linkshare-preview
permissions for a preview in cozy-to-cozy sharing
source_id
{string}: Source of the permission. Can be used to reference a parent permissionspermissions
{object}: Set of rules to allow/disallow actions on data see hereexpires_at
{timestamp}: When the permission expirescodes
{map[string]string}: Contains a list of the members (email or instance name) of a permissionshortcodes
{map[string]string}: Like codes, but contains a shorter code (12 chars) instead of a token
See also the official documentation for additional informations