> 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="/files/w630CaTnoqcVbRYLvKEj" 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="/files/Gwge3XAuek0iIGrvb9Uf" 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="/files/APTRCVZSejN0bHq1zTgD" 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="/files/KTitmktaP9UEmvmCYSUq" 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 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.terrakube.io/user-guide/projects/workspace-assignment.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.
