getUserDetailsInternal function implemented