Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to transfer user data before deletion #396

Closed
tammersaleh opened this issue Jan 9, 2023 · 1 comment
Closed

Ability to transfer user data before deletion #396

tammersaleh opened this issue Jan 9, 2023 · 1 comment

Comments

@tammersaleh
Copy link

Affected Resource(s)

  • google_workspace_user

Feature Request

When I delete a google workspace user from the admin interface, I'm allowed to transfer their data as part of the process. (see this doc)

We're transitioning to managing all google users through this provider and would like to retain this functionality. I imagine a new block could be added to the resource like such:

resource "googleworkspace_user" "dwight" {
  primary_email = "[email protected]"
  ...

  transfer_data_upon_deletion {
    target_user_email = "[email protected]"
    transfer_email = true
    transfer_drive_files = true
    transfer_...
  }

Potential Issues

I'm unsure how the admin console juggles data transfer before user deletion. If Terraform initiates the data transfer and then deletes the user, will Google know to queue the deletion to happen after the transfer finishes, or will the deletion call fail? (or worse: will the transfer be aborted?)

References

A quick search makes me think this is the data transfer API used by the admin console.

@tammersaleh
Copy link
Author

Not sure how this dupe showed up, but closing in favor of #397

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant