Cannot delete users Unity Connection Voicemail account

Unanswered Question
Aug 16th, 2010

When I try to delete a Unity voicemail account, following messages appear:

  • Failed to delete Unified Communications Manager user association. To force delete operation, click Here.
  • Unable to disassociate user (user account name) from Unified Communications Manager.

This has not happened before. Suspect user was initally set up differently from other users as have no problem deleting voicemail of others.

Any help you can offer would greatly be appreciated.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
techguy73 Mon, 08/16/2010 - 20:35

If the user is imported from the Call Manager, it has to be deleted there as well and resynch and then delete from UC.


CPBVOIP176 Tue, 08/17/2010 - 11:35

Thank you for your response. The user is not in CUCM. Please view attachment. Thanks!

Brad Magnani Tue, 08/17/2010 - 14:18

Is this Business Edition? (Co-resident UC and CUCM on same server)  Or is it standalone UC with an AXL integration pointed to the CUCM server?

CPBVOIP176 Tue, 08/17/2010 - 19:19

It is a standalone UC.

Brad Magnani Tue, 08/17/2010 - 14:42

There's a table on the platform side (CUCM) that maps the end user to a UC user.  It sounds like the user may have been deleted from CUCM, but UC still has record of it, so now UC has the orphaned user with no mapping anymore on CUCM, so its likely failing to match up with the CUCM mapping, thus failing.

From CUCM, or the CUCMBE box CLI to confirm that the entry is in fact gone:

run sql select userid, pkid from enduser where userid = 'hytchang'

Likely to be 0 results, which is fine.  We'll now have to then manually remove the user from UC.  It's a two step process.

From UC or CUCMBE box box CLI first you will need to find the ObjectId for the user that you want to remove:

run cuc dbquery unitydirdb SELECT ObjectId from vw_User WHERE Alias = 'hytchang'

And then you will want to delete that user as such:

run cuc dbquery unitydirdb EXECUTE PROCEDURE csp_UserDelete (pObjectId = 'full objectid that was returned from above query')

Hope that helps,


CPBVOIP176 Tue, 08/17/2010 - 19:10

Thank you know if the option they provide of "forcing" the deletion would have the same results?

dsutphin Tue, 03/31/2015 - 07:29

Did you ever get a response on if forcing the delete removes the users cleanly. i am having the same or very similar issue. LDAP deleted the users from CUCM and when i attempt to delete the users from CUC to reclaim the licenses i am getting the same issue you expressed.Above

Failed to delete Unified Communications Manager user association. To force delete operation, click Here.

CPBVOIP176 Fri, 04/03/2015 - 13:07

1. Login in to Putty (or any other means that allows you to get to the CLI)

2. Type in the Unity server IP address

3. Select the SSH radial button and then click OPEN.

4. Log in using the Administrator ID and password.

5. At the command line, type in the following command, where XXXX is the user netID.

run cuc dbquery unitydirdb SELECT ObjectId from vw_User WHERE Alias = 'XXXX'

NOTE: If you copy the command line, to paste it in SSH simply right mouse click

This will run a query and give you the database location that should look something like this : d5d1d135-2bfb-4ddb-b775-09878796dcc5

6. To delete the user, type the following command:

run cuc dbquery unitydirdb EXECUTE PROCEDURE csp_UserDelete (pObjectId =' XXXXXXXXXXXXXXXXXXXXXX) where XXXXXXXXXXXXXXXXXXXXXX is the Identity number that came back from your previous query.

Command line should show Rows:0

Double check Unity to ensure the user is deleted.


Login or Register to take actions

This Discussion

Posted August 16, 2010 at 6:47 PM
Replies:8 Overall Rating:5
Views:3112 Votes:0

Discussions Leaderboard

Rank Username Points
David Hailey
Chris Deren
Tommer Catlin
Ginger Dillon
Rank Username Points
Terry Cheema
Shadi Shami
Aaron Harrison
Aman Soi