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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

How to set a user profile Image in a mashup ?

yasmalik
9-Granite

How to set a user profile Image in a mashup ?

I am trying to set a image for an user on the mashup then how it is possible to do it ? please help me to do it

4 REPLIES 4

You can find such service under Entities - User in custom service section in any Thing entity, here's the code:


var params = {
content: undefined /* IMAGE */
};

// no return
Users["ryan"].SetAvatar(params);

 

you can change the User name and the IMAGE name as you want

yasmalik
9-Granite
(To:zyuan1)

When I made the user I was given an image then I want here that when a user login then it automatically show his image automatically acc. to user authentication

You can design a mashup with Value Display widget, and put the Avatar of the current Login user to this widget.

slangley
23-Emerald II
(To:zyuan1)

Hi @yasmalik.

 

If the responses provided by @zyuan1 answered your question, please mark the appropriate one as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

Top Tags