As in any army around WW2 there were ID cards. Often different versions for officers than for other ranks. The two versions here are both for officer of the Royal Netherlands East Indies Army.
They are slightly different one is the standard, official version and the other is a temporary one that was handed out during the war against the Japanese but before the occupation which makes it probably quite rare.
The official one (the front can be seen above left) was to a captain who would receive the Military order of William 4th class for his resistance actions against the Japanese.
His medal group is in the collection of Museum Bronbeek and I have donated an album to the museum regarding his receipt of the MWO4 after WW2.
The second was to Lieutenant who was involved in the defense of Palembang in February 1942 and the fights against the Japanese parachutists who landed there. He probably lost his regular ID in that period and he received this one before the surrender to the Japanese on March 9th. So this temporary version was made only days before the surrender.
Both officers would survive the war and internation in the POW camps of the Japanese and reach the rank of Lieutenant-Colonel in the post war period.