# Managing Workspace users - removing users that aren't defined?

**URL:** <https://discuss.hashicorp.com/t/managing-workspace-users-removing-users-that-arent-defined/46618>\
**Category:** Terraform Providers\
**Created:** [November 8, 2022, 11:02am UTC](https://discuss.hashicorp.com/t/managing-workspace-users-removing-users-that-arent-defined/46618 "2022-11-08T11:02:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![victorhooi](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/victorhooi/32/31872_2.png) [@victorhooi](https://discuss.hashicorp.com/u/victorhooi)\
**Post date:** [November 8, 2022, 11:02am UTC](https://discuss.hashicorp.com/t/managing-workspace-users-removing-users-that-arent-defined/46618/1 "2022-11-08T11:02:06Z")

</div>

The Terraform Google Workspace tutorial gives a useful example of how to add a CSV file of users to a Workspace domain:

> **[Manage Your Google Workspace Organization | Terraform | HashiCorp Developer](https://developer.hashicorp.com/terraform/tutorials/it-saas/google-workspace)**
>
> Manage a Google Workspace organization using Terraform. Add a new user, new group, and assign permissions to your user with infrastructure as code.

However, this doesn’t remove users that aren’t defined in the code.

Is there some way to have true infrastructure-as-code, where users not defined will be removed as well? Or what is the idiomatic way to tackle this in TF?
