Introduction
This document demonstrates the minimum required privilege for non-owners to be able to lock/unlock workspaces in HCP Terraform.
Procedure
There are two options to allow users (non-owners) for locking/unlocking workspaces:
- The user's team has the org-level permission of Manage all workspaces.
- The user's team has the project/workspace-level permissions of Manage Workspace Run Tasks and Lock/unlock workspace.
The minimum required permissions for users' team for locking/unlocking workspaces are Manage Workspace Run Tasks and Lock/unlock workspace. You can assign Team access at the workspace level by following Managing Workspace Access Permissions.