In Debian, since version 2:3.3.10-1, the procps package has the systemd integration bits enabled. This means that now the “ps” command can display which (user) unit has started a process or to which slice or scope it belongs.
For example with the following command:
ps -eo pid,user,command,unit,uunit,slice