From Longman Dictionary of Contemporary Englishhave somebody’s numberhave somebody’s numberinformalUNDERSTAND to understand something about someone that helps you deal with them Judy had always had his number. → number
Examples from the Corpus
have somebody’s number• You can tell Cara has his number. She knows exactly how to handle him when he's mad.