> For the complete documentation index, see [llms.txt](https://docs.codatum.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codatum.com/access-control/access-control-for-resources/access-control-for-teamspace.md).

# Access Control for Teamspace

## Resource Roles for Teamspaces

Owner role is different from Editor/Viewer roles and they are not mutually exclusive. When roles overlap, the higher role takes precedence.

| Role Name        | Summary                                            |
| ---------------- | -------------------------------------------------- |
| Teamspace Owner  | Can manage teamspaces without workspace owner role |
| Teamspace Editor | Can edit notebooks and folders in the teamspace    |
| Teamspace Viewer | Can view notebooks and folders in the teamspace    |

## Teamspace Operations and Access Control Rules

The operations that can be performed to manage teamspaces and the corresponding roles required to perform them are listed here.

| Operations                                                                              | Required Roles                                                                  |
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| View all teamspace names                                                                | Workspace Viewer                                                                |
| Add a teamspace to the workspace                                                        | Workspace Editor                                                                |
| <p>Rename a teamspace;<br>Manage teamspace owners;<br>Manage teamspace permissions;</p> | <p>"Workspace Owner"<br>OR ("Workspace Viewer"<br>AND "Teamspace Owner") \*</p> |

\*: This operation can be performed by a Workspace Viewer if the Workspace Viewer is the Teamspace Owner of the respective teamspace.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.codatum.com/access-control/access-control-for-resources/access-control-for-teamspace.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
