cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

How to set a user avatar from a mashup?

vvaidya
1-Newbie

How to set a user avatar from a mashup?

Hi All,

I wanted to edit user profile from the mashup (at run time). As any user can login to system and can change its details. Can we change user avatar from mashup. I know from composer we can but at run time can we ?

Thanks and Regards,

Vishal Vaidya

1 REPLY 1

Hi Vishal,

To set user's avatar please use below method in your service.

var params = {

  content: undefined /* IMAGE */

};

// no return

Users["YourUserName"].SetAvatar(params);

Regards,

Lalit

Top Tags