http://docwiki.cisco.com/wiki/CUCM_Directory_Synchronization_FAQ
run sql select * from enduser where status=0
run sql select * from enduser where userid='userID'
run sql update enduser set status=1 where userid=‘userID’
=====
How can I turn my LDAP synced users into local users??
This method was mainly used for pre 9.x CUCM when you could only have, all LDAP, or all local users, and you wanted to disable the LDAP sync for whatever reason, which would turn all users into inactive users. Not so useful for 9.x+ since you can have both, LDAP and local, users at the same time.
You'll need some queries for this:
run sql update enduser set status=1
If any user became inactive, the above query will change the status to active.
You would want to do this in small batches to avoid issues, You can use any condition you want from the enduser table to do that, this example updates users with DN starting with 2
run sql update enduser set status=1 where telephonenumber like ‘2%’
Once you're done updating the users, you can make sure all of them are now local users
run sql select * from enduser where status=0
You should get 0 results if all of your users are now local users. If you do get a result from the query, you can run the query again, against those users.
UPDATE 7/1/16
Someone recently posted another method to do this and I wanted to test it, I had one test user which was LDAP integrated, and another one, very similar but was local and ran a query to compare them (I'm only showing a few fields from enduser table):
pkid firstname middlename lastname userid telephonenumber tkuserlocale status fkdirectorypluginconfig ==================================== ========= ========== ======== ====== =============== ============ ====== ==================================== 654602f8-ba93-30c8-b525-dc286f2d26f8 Jane Doe jadoe 16173685021 1 1 494352d5-5701-3ea9-6535-7eec7d1303eb pkid firstname middlename lastname userid telephonenumber tkuserlocale status fkdirectorypluginconfig ==================================== ========= ========== ======== ====== =============== ============ ====== ======================= ec2f2388-e2fe-55cb-a4ce-575b1ce266ef Jane Doe1 jadoe1 NULL 1 NULL
The query that was mentioned, was this:
run sql update enduser set fkdirectorypluginconfig=NULL where userid = 'jadoe'
After I ran que query, I refreshed the GUI, and user jadoe was now a local user, this seems to be the preferred method now if you need to turn LDAP users into local users in bulk.
According to the 10.5 data dictionary, that is the field that determines if the user is LDAP integrated, or not, and thus prevents changes to the users.
The above method will work on 10.x and 11.x as I confirmed the fields are the same.