Search This Blog

Friday, January 12, 2024

Maximo Application Suite 8.11: How to undelete a MAS User

Normally, it is impossible to re-create a MAS user within the UI after they are deleted. This error is reported when the user is re-created:

AIUCO1026E: Unable to create user with id=XXXX, since it is already taken by a previously-deleted user.

Steps
Once a mongo shell has been opened for your MAS mongo database, you have two options to re-create the user. You can either undelete the specific user to restore the old user, or delete the data record completely allowing you to re-create the user manually. 

This first command restores the old user (in this case, user1), making them once again visible within the MAS User Administration UI.

db.User.update({username: "user1"},{$unset: {deleted:""}})

Alternatively, you can run this second command to delete the user from your database. This allows you to re-create the user manually within the UI. 

Note this command deletes the old user completely, causing their user data to be lost forever.


db.User.deleteMany({username: "user1"})





No comments:

Post a Comment

MAS and Manage custom resources are not reconciled

  After a change was applied to IBM Maximo Application Suite (MAS) or IBM Maximo Manage, the custom resources are not reconciled. For exampl...