This is by request to ISD (send them the image) or if the mailbox has an associated role account you can also log in to the OWA for it and add a profile image the normal way https://support.microsoft.com/en-us/office/add-your-profile-photo-to-microsoft-365-2eaf93fd-b3f1-43b9-9cdc-bdcd548435b7
Knowledge base
Category
- E-mail and calendar