I am assuming, you dont have your jabber-config.xml file set? so you are using EDI for directory lookup?
in your cucm, go to user Management > user settings > service profile and check the settings of your Directory profile,
make sure you have the correct search base
Please remember to rate useful posts, by clicking on the stars below.