Skip to content

Item fails to update or delete if the Owner is deleted from EntraΒ #4788

@james-annages

Description

@james-annages

Remember to label the issue with the appropriate area, and also assign it to yourself if you plan to work on the issue in the near future.

Describe the bug
We have our TRE in a seperat Entra tenacy. We encounted this issue after doing a clean out of Entra Guests/Users.
If you delete a user that is in the owner id of a object the update/delete operations will fail:

2ccb559b-0ddf-4893-9c8d-4ead1bf6e82a: Error message: 

Error: User not found with object ID: "*************" 

   with data.azuread_user.user[0], 
   on data.tf line 60, in data "azuread_user" "user": 
   60:   object_id = var.owner_id 

error running command /cnab/app/terraform /usr/bin/terraform 

Steps to reproduce

  1. Create a object (VM, workspace service or workspace, Possibly others too)
  2. Delete the user that created the object.
  3. Try to update or delete the object. (unsure if you need to wait for the user object to be fully deleted and not in the 30 waiting period)

Azure TRE release version (e.g. v0.14.0 or main):
v0.26.0
Deployed Azure TRE components - click the (i) in the UI:
UI Version: 0.8.19
API Version: 0.25.4

Workaround
Solved by editing the cosmosDB to replace the object owner id with a doner account.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdeploymenthas workarounda workaround is available for this issue

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions