43 lines
998 B
Markdown
43 lines
998 B
Markdown
---
|
|||
|
|
# Code generated by make gen. DO NOT EDIT.
|
||
|
|
title: "`coder sharing add`"
|
||
|
|
description: Share a workspace with a user or group.
|
||
|
|
---
|
||
|
|
|
||
|
|
<!-- DO NOT EDIT | GENERATED CONTENT -->
|
||
|
|
|
||
|
|
Share a workspace with a user or group.
|
||
|
|
|
||
|
|
Aliases:
|
||
|
|
|
||
|
|
* share
|
||
|
|
|
||
|
|
## Usage
|
||
|
|
|
||
|
|
```console
|
||
|
|
coder sharing add [flags] <workspace> --user <user>:<role> --group <group>:<role>
|
||
|
|
```
|
||
|
|
|
||
|
|
## Description
|
||
|
|
|
||
|
|
```console
|
||
|
|
This command fails if workspace sharing is disabled for the deployment, or if the organization's sharing policy doesn't allow sharing the workspace. See https://coder.com/docs/user-guides/shared-workspaces#policies for sharing policies.
|
||
|
|
```
|
||
|
|
|
||
|
|
## Options
|
||
|
|
|
||
|
|
### --user
|
||
|
|
|
||
|
|
| | |
|
||
|
|
|------|---------------------------|
|
||
|
|
| Type | <code>string-array</code> |
|
||
|
|
|
||
|
|
A comma separated list of users to share the workspace with.
|
||
|
|
|
||
|
|
### --group
|
||
|
|
|
||
|
|
| | |
|
||
|
|
|------|---------------------------|
|
||
|
|
| Type | <code>string-array</code> |
|
||
|
|
|
||
|
|
A comma separated list of groups to share the workspace with.
|