Update user avatar using a URL

Hello, I’m using SSO to login/signup users from my website to the discourse forum.

During the signup I’m sending some data in the payload (username, external_id, avatar as URL, etc…). So far so good and the user’s avatar on discourse are showing the same as my webstie.

Now when a user updates his avatar on my website, it basically updates the avatar in the database to be a new URL string. How can I update the avatar on discourse as well to match the new avatar ?

Thanks in advance !

There’s a discourse connect overrides avatar admin setting if you’re able to use that method:

1 Like

Okay thank you that worked