> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/infrastructure-as-code-management/platform/workspaces/workspace-rbac.md). Agents can also search and read this documentation through its [MCP server](https://developer.harness.io/~gitbook/mcp).

# Workspace Permissions

Configure role-based access control for IaCM workspaces and variables.

You can control who has different types of access to the Workspace in a project. Create/edit a Role, and select the "Infrastructure as Code Management" section

![IACM Workspaces permissions in a role, including View, Create/Edit, Delete, Edit Variables, Delete Variables, Approve, Access State, Execute Remote Plan, Lock/Unlock, Rollback State, and Trigger AI Agent](https://3575326923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffhx6XzjvtJmfv5gPWZ5m%2Fuploads%2Fgit-blob-44b3b8928b5c0bc9efc3dd2002b0f792d10f0ec6%2Fworkspace-rbac.png?alt=media)

For each Role, you can define the following set of permissions:

1. **View** - Permitting users to view the Workspaces in the project
2. **Create/Edit** - Permitting users to create and edit Workspaces in the project
3. **Delete** - Permitting users to delete Workspaces in the project
4. **Edit Variables** - Permitting users to create and edit Environment and Terraform variables
5. **Delete Variables** - Permitting users to delete Environment and Terraform variables
6. **Approve** - Permitting users to approve the Infrastructure Stage (using the approval step)
7. **Access State** - Permitting users to view the state (including historical revisions)
8. **Lock/Unlock** - Permitting users to manually [lock and unlock workspaces](https://developer.harness.io/infrastructure-as-code-management/platform/workspaces/lock-workspace.md).

{% hint style="warning" %}
**Lock/Unlock permission enforced on 5 January 2027**

Effective 5 January 2027, only a role with the **Lock/Unlock** permission can lock or unlock a workspace.

Harness grants **Lock/Unlock** by default to roles created before November 23, 2026 that have **Create/Edit** on workspaces. Review other roles and grant **Lock/Unlock** where needed before 5 January 2027.
{% endhint %}

## Using Resource Groups <a href="#using-resource-groups" id="using-resource-groups"></a>

You can utilize Resource Groups functionality to specify which users can access a specific Workspace. For this, create a resource group, add the specific (or all) Workspaces, and bind it to a specific user or user group.

![Resources](https://3575326923-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ffhx6XzjvtJmfv5gPWZ5m%2Fuploads%2Fgit-blob-375c2a921a72e961607de38f697f1965bd817a43%2Fworkspace-rg.png?alt=media)

Go to [Manage resource groups](https://developer.harness.io/harness-platform/use-harness-platform/platform-access-control/manage-resource-groups) to configure resource groups for workspaces.

{% @harness-feedback/feedback %}
