#me grant

Manage tree grants.

Grants control access to memories by tree path. A grant gives a user specific actions (read, create, update, delete) on a tree path and all its descendants.

#Commands


#me grant create

Grant tree access to a user.

me grant create <user> <path> <actions...> [options]
Argument Required Description
user yes User name or ID.
path yes Tree path to grant access to.
actions... yes One or more actions: read, create, update, delete.
Option Description
--with-grant-option Allow the grantee to re-grant this access to others.

#Example

me grant create alice work.projects read create update

#me grant revoke

Revoke tree access from a user.

me grant revoke <user> <path>
Argument Required Description
user yes User name or ID.
path yes Tree path to revoke access from.

#me grant list

List grants.

me grant list [user]
Argument Required Description
user no Filter by user name or ID.

Displays a table of grants with user, tree path, actions, and grant option.


#me grant check

Check if a user has access to a tree path.

me grant check <user> <path> <action>
Argument Required Description
user yes User name or ID.
path yes Tree path.
action yes Action to check: read, create, update, delete.

Reports whether access is allowed or denied.