ID command of SUA does not return uidNumber from the Active Directory

Recently we got an issue where running ID command on a Windows 2008 was returning a number different from the uidNumber set in AD. This feature is by design where the ID command does not query the RFC 2307 attributes of Active directory to return the numbers

Rather the ID command uses the Active directory SIDs to generate the SUA specific IDs and it is calculated on the fly. Hence it shows a auto generated and it is based on a logic that query the samaccount name of the user / group.