Fix empty field `login_name` in API response JSON when creating user (#30511)
Fix #30508
ps: if `sourceID` is not set, `LoginName` will be ignored
(cherry picked from commit cf9061f44a439aa7775e301a7467dbda22a06eaa)
authored by