Hi @g h ,
SharePoint User Profile properties is syning with Active Dictory property, you can get AD information from User Profile directly.
The attachment is a code demo to get user profile property using SharePoint JSOM.
If the response is helpful, please click "Accept Answer" and upvote it.