maton google-drive permission create
maton google-drive permission create [flags]
Grant a permission. –type is one of user, group, domain, anyone. –role is reader, commenter, writer, fileOrganizer, organizer, owner. user/group requires –email-address; domain requires –domain.
Options
-
--connection <string> - Connection ID to route through (Maton-Connection header)
-
--domain <string> - Domain name (for type=domain)
-
--dry-run - Print the request that would be sent without executing it
-
--email-address <string> - Email address (for user/group)
-
--email-message <string> - Custom message for the notification email
-f,--file <string>- File or folder ID (required)
-
--format <string> - Output format: 'json' (default) or 'text' on supported commands
-q,--jq <expression>- Filter JSON output using a jq expression
-
--no-notification - Skip the notification email (overrides --send-notification-email)
-
--paginate - Follow next_cursor and concatenate all pages (list commands only)
-
--role <string> - Role: reader, commenter, writer, fileOrganizer, organizer, owner (required)
-
--send-notification-email (default true) - Send a notification email when granting access
-
--supports-all-drives - Set when the file lives in a shared drive
-
--template <string> - Format JSON output using a Go template; see "maton help formatting"
-
--transfer-ownership - Required when --role=owner
-
--type <string> - Grantee type: user, group, domain, anyone (required)
Options inherited from parent commands
-p,--profile <string>- Profile to use for this invocation (overrides the active profile; also reads MATON_PROFILE)
Examples
$ maton google-drive permission create -f 1aBcD... --type user --role writer --email-address alice@acme.com
$ maton google-drive permission create -f 1aBcD... --type anyone --role reader