Hi,
These two number are absolutely different and not connected each other.
UID stored in the identification register (laded from IFR during reset) is an unique number of the MCU and can be read from the register anytime as from any register.
UID in CSE is connected to the SHE Functional Specification and can be read only by GET_ID command.
Best regards,
Ladislav