Set local admin profile pic

stevefitz
New Contributor III

If I want to add a local admin profile pic, is the only way to do so by referencing an external site/vault to copy the image from? Or is there a way to store the file on Jamf? 

5 REPLIES 5

AJPinto
Esteemed Contributor

It's been a very long while since I did this, but it can be done with terminal or at least could be done with terminal. Try the command below.

sudo dscl . create /Users/username Picture "/path/to/image.png"

 

obi-k
Valued Contributor III

Yeah, using this for a while too with success. I push the picture we want to the directory, and install package and script in 1 policy.

• dscl . create /Users/test Picture /Library/User\ Pictures/Fun/test.png

stevefitz
New Contributor III

Thanks. I'

m trying to do this via a policy for all enrolled laptops.

sdagley
Esteemed Contributor II

@stevefitz Take a look at https://apple.stackexchange.com/questions/117530/setting-account-picture-jpegphoto-with-dscl-in-term... for info on how to set a user image (and thanks to https://github.com/freegeek-pdx/mkuser for calling that out post)

Shyamsundar
Contributor III

you can also try this to Sync the user picture from Entra ID

https://techitout.xyz/2024/05/08/entra-id-directory-picture-sync-with-macos/