cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1144
Views
0
Helpful
3
Replies

Unity Connection SQL query for "inactive LDAP users"

Paul McGurn
Level 6
Level 6

Hi,

I'm trying to find an easier way to view inactive LDAP users in Unity besides viewing each user's page to see the "inactive" message.  Is there a SQL query that'll point these out?

 

Unsing Unity 9.1 SU1

3 Replies 3

Sreekanth Narayanan
Cisco Employee
Cisco Employee

Hi Paul,

You can use the data dictionary to achieve this. I am not a CUC guy, but on CUCM, there is a table called "enduser" that will have the required details. I'm guessing it should be the same on the CUC as well.

try

admin:run sql select * from enduser where status=0

I can't find a Unity-specific data dictionary doc, and that query isn't quite right.  The users in Unity are not the same design as CUCM, as you have the concept of "local", "LDAP-synched", and "CUCM-synched".  I'm trying to find users that were LDAP-synched that are no longer active.

Hi,

run sql SELECT * from enduser where status = '2'

if using putty, enable the logs to a file so you can see the table nicely