> For the complete documentation index, see [llms.txt](https://docs.terrakube.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.terrakube.io/user-guide/projects/workspace-assignment.md).

# Workspace Assignment

Workspaces can be optionally assigned to a project. Assigning a workspace to a project lets you apply project-level team permissions and keeps related workspaces organized together.

### Assigning a Project when Creating a Workspace

When going through the workspace creation wizard, select a project from the **Project** dropdown. This field is optional — selecting **(No project)** leaves the workspace unassigned.

<figure><img src="https://4014930676-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfAN3V983Y82_trlbcu%2Fuploads%2Fgit-blob-6f8370eb27cd8fc21a45740b3c7b3d5cc49754e2%2Fprojects-workspace-create-dropdown.png?alt=media" alt=""><figcaption></figcaption></figure>

### Changing a Workspace's Project

To move a workspace to a different project or remove its project assignment, open the workspace and go to its **Settings** page. Find the **Project** field and select a new project or clear the selection, then save.

<figure><img src="https://4014930676-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfAN3V983Y82_trlbcu%2Fuploads%2Fgit-blob-a3516908ace831496c1fcdd41cfa9df3f78c34f5%2Fprojects-workspace-settings-field.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Moving a workspace between projects requires the **Manage Workspaces** permission at the organization level, regardless of your project-level role.
{% endhint %}

### Filtering Workspaces by Project

On the workspaces list page, use the **Project** dropdown filter to show only workspaces belonging to a specific project. Select **Unassigned** to show workspaces that have not been assigned to any project.

<figure><img src="https://4014930676-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfAN3V983Y82_trlbcu%2Fuploads%2Fgit-blob-805b98985e3fe1bdf4ab769b880c7de8b008b9de%2Fprojects-workspace-list-filter.png?alt=media" alt=""><figcaption></figcaption></figure>

### Project Badge on Workspace Cards

Each workspace card in the list displays the name of its assigned project as a badge. Workspaces without a project assignment show no badge.

<figure><img src="https://4014930676-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfAN3V983Y82_trlbcu%2Fuploads%2Fgit-blob-82522c00717adc2bdc9431376076ba3992492426%2Fprojects-workspace-card-badge.png?alt=media" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.terrakube.io/user-guide/projects/workspace-assignment.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
