Skip to main content
On this page

Kater CLI Share and administer access

kater access grant

Gives a member, a group or Everyone an access level on a file or folder.

It replaces any level they had on that path, and keeps their Can execute. A new grant takes the server’s default for execute access, on unless --no-execute is given, and the answer says what it gave. Everything in a folder inherits the grant, unless a folder below it is restricted.

Examples

Terminal window
# Let everyone in the organisation view the ad_reporting workspace
kater access grant connections/snowflake_prod_connection/workspaces/ad_reporting --level viewer --everyone
# Let one person edit it
kater access grant connections/snowflake_prod_connection/workspaces/ad_reporting --level editor --user teammate@example.com
# Let the Marketing group manage every workspace of the connection
kater access grant connections/snowflake_prod_connection/workspaces --level manager --group Marketing

Arguments

ArgumentDescription
<path>The file or folder to give access to, from the content root, such as connections/snowflake_prod_connection/workspaces/ad_reporting.

Options

OptionDescription
--level <level>The level to give. viewer can view, editor can edit, and manager can edit and share.
--user <user>A member, by email address or user id, such as teammate@example.com.
--group <group>A group, by name or id, such as Marketing.
--everyoneGives the level to everyone in the organisation.
--execute, --no-executeWhether the grantee can also run queries on the content without reading it. Left out, a grantee keeps what they have here, and a new grant takes the server’s default, which the answer says.

It also takes the global options anywhere on the line, and --help.

Name one grantee

Give one of --user, --group or --everyone, and only one. The name must match one member or one group exactly. When it does not, the command lists the members or groups that it found.

You need the Manager level on the path, or the access:administer permission.

See also