In Intune Admin select Devices > Windows Devices > Manage Devices > Configuration.
Create a new policy or edit an existing one if applicable.
For platform select Windows 10 and later and Profile Type as Settings Catalogue.
Give the policy a name.
If Configuration Settings click Add Settings.
Select ‘Interactive Logon Do Not Display Last Signed In’ from Local Policies Security Options by browsing or searching for it.
Enable the setting so the username will not be shown.
Create the assignments for the policy and save.