# Setting Site Member's Profile Picture by Default?

**URL:** <https://forum.wixstudio.com/t/setting-site-members-profile-picture-by-default/10973>\
**Category:** Ask the community\
**Tags:** wix-members-area, code, question\
**Created:** [January 8, 2022, 12:29am UTC](https://forum.wixstudio.com/t/setting-site-members-profile-picture-by-default/10973 "2022-01-08T00:29:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![info93798](https://avatars.discourse-cdn.com/v4/letter/i/34f0e0/32.png) [@info93798](https://forum.wixstudio.com/u/info93798)\
**Post date:** [January 8, 2022, 12:29am UTC](https://forum.wixstudio.com/t/setting-site-members-profile-picture-by-default/10973/1 "2022-01-08T00:29:40Z")

</div>

Not sure if this is the right place to ask this but I am wondering if there is a way for me to either automatically or manually assign new members to my site with a profile picture? I don’t want members of my site to have to choose their own profile picture.

The way I have currently set up my site is so that when a member signs up they must be approved first (by myself) before being able to log in. I would like to be able to assign them a profile picture either before or right after I approve them.

Is there any way to do this on Wix? I have not found a way as of yet?

---

<div class="post-metadata">

**Author:** ![user5133](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/user5133/32/105455_2.png) [@user5133](https://forum.wixstudio.com/u/user5133)\
**Post date:** [February 17, 2025, 7:26pm UTC](https://forum.wixstudio.com/t/setting-site-members-profile-picture-by-default/10973/2 "2025-02-17T19:26:53Z")

</div>

Did you find a way of doing this?

I found a thread from 2021 that suggests that it is possible…

> [@How can you make a default profile pictures that every member get when they sign up?](https://forum.wixstudio.com/t/how-can-you-make-a-default-profile-pictures-that-every-member-get-when-they-sign-up/35694/4):
>
> Hi there raised_hand_with_fingers_splayed I’m against assigning a default image for each site member, instead, on their profile pages, or anywhere else, before showing their picture, check whether they have a picture or not, and if they don’t, show the default picture. Example: const default\_image = 'wix:image://...'; return getUserProfile().then((profile) =\> { $w('#name').text = $w('#picture').tooltip = $w('#picture').alt = profile.name; $w('#picture').src = profile.picture || defa…

but I’m getting an error when I publish it saying

```
 `ReferenceError: getUserProfile is not defined`

```

This is the code that was on the thread…

```javascript

$w.onReady( **function** () {

**const** default_image = 'wix:image://v1/4c497b_98f0451b76d344f19f7b431300bef6e6~mv2.png/_.png#originWidth=400&originHeight=400';

**return** getUserProfile().then((profile) => {

$w('#name').text = $w('#picture').tooltip = $w('#picture').alt = profile.name;

$w('#picture').src = profile.picture || default_image;

})

});

```
