Skip to main content
1-Visitor
Feb 12, 2019 6:33 AM UTC
Question

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

5-Regular Member
Feb 12, 2019 6:40 AM UTC

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

Translate
yasmalik1-VisitorAuthor
1-Visitor
Feb 12, 2019 11:02 AM UTC

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

Translate
5-Regular Member
Feb 13, 2019 2:07 AM UTC

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

Translate