This old topic describes the root problem very well and presents a nice and easy test for user resolution failing for devices using SSSD.
An “okay” workaround in regards to the wrapper script is to deduce the “obvious” home dir from $SNAP_USER_DATA if getent does not return anything useful.