Deleting or Deactivating an Organization
tyler.bubin
Member, Domino Posts: 8 ✭
Comments
-
Good Morning Tyler! As of now it is not possible to delete an organization as the org data structure is embedded pretty deeply in our infrastructure. The standard workaround is to switch the owner to a sysadmin, delete other users, name the org in a way that makes it obvious it isn't usable.
--
Renaming Domino organization
See the steps below what you'll need to rename your organization via MongoDB queries:
Before renaming the organization:
1) All users of a group will need to be removed
2) All projects belonging to the Organization will need to be transferred to another user
3) Are there any Hardware tiers or Compute Environments that belong to the org you want to remove? If so, you will need to re-assign them.
--
After that, the steps below needs to be followed:
Steps to rename an organization:
1) Find the owner of the org you wish to rename (keep in mind an owner can own multiple orgs, so look for the correct id in step 2)
db.users.find({"loginId.id": "<current admin username>"})
2) Find the Organizations whos members match the returned ID
db.organizations.find({"members": {$elemMatch: {userId: ObjectId("<user object id>")}}}).pretty()
3) Find the org (using the below users object) using the org id
db.users.find({"_id" : ObjectId("<organizationUserId:ObjectId>")}).pretty()
4) Update the Organization name with the new name (set this for both loginId & loginId.lowercaseId)
db.users.update({"_id" : ObjectId("<ObjectId>")},{$set: {"loginId.id": "<new name>", "loginId.lowercaseId": "<new name>"}}
Note, all these things must do your Domino admin (Admin->Advanced->MongoDB)5 -
Update: If you are considering renaming an organization, please contact Domino support or your account team. We do not recommend updating Mongo directly without speaking with our team first.
Katie
Field Data Scientist @ Domino
0
Howdy, Stranger!