ContributionsMost RecentMost LikesSolutionsRe: Lithium Community 18.12 Release Notes Great new features! By the way, I was testing the new promoted search functionality on our Spanish community and I noticed that translations were missing, JohnD, I don't know if that's something that will come on a patch or the next version. Just wanted to give you a heads up in case you were not aware. Re: Update a user avatar using the API Awesome! That's exactly what I was looking for. I just tested it and it works. It's a shame that the documentation doesn't have this option on the 'avatar' part. Thanks, again! Re: Update a user avatar using the API Thanks for the suggestion, but unfortunately we're not just updating the avatars, we want to introduce a completely new theme for avatars so we don't have a 1:1 correspondence between the old and new ones. Update a user avatar using the API Hi everyone, We're adding new avatars to our community and we want to delete the old ones, which will leave us with a lot of broken avatars. I've been looking here for a solution and I know I can use JavaScript to catch those broken images and replace them at runtime. The problem is this doesn't resolve the problem (users having a broken avatar), in fact, it hides it and there's no way for users to know if they have a valid avatar or not. We're considering using the API to modify each user profile using a non-custom avatar to replace it with a default avatar, but I can't find anything on the documentation. API v1 doesn't have a call for that, in fact, the documentation says that we have to use API v2 for that. But apparently, endpoints are not allowed to make HTTP calls to any .lithium.com domains. Is building a mini-app on a different server, going through the authorization process and make the call the only way to update another user's avatar? Am I missing something? Thanks! SolvedRe: Get query parameters from http.client.response Hi, Well, the original process is we redirect the user to the log in page and provide a callback URL, once the user logs in the authentication server redirects the user back to the callback URL including an authorization code that we should exchange for an access token. In this case the callback URL is a dummy page, we need to pick up that access code and make another call to the User profile service so they can exchange it for the access token and grant us access to their data. I guess I'll have to find a different way to authenticate. Thanks anyway. Get query parameters from http.client.response Hi everyone, I'm trying to integrate data from an internal user profile application and I need to get an authentication code from our share SSO environment. I'm using http.client to make the request on an endpoint. So I make the request, the SSO environment validates that there's an active session and redirects me to a non-lithium URL (the application URL) with the authorization code embeded as a query parameter. The problem is that I can't find a way to retrieve that query parameter or the redirect URL from http.client.response. I can only get the page content (is a blank page) and the response headers. Do you know if there's a way to get the redirect URL from the context object? Has anyone tried to authenticate via OAuth 2.0 (and OpenID) to a "third party" application? Thanks! Re: Can't get notes creator id when on single note view I see, I'll have to pull the note id from the URL, then. Thanks Jake_N! Re: Can't get notes creator id when on single note view Hi Jake, Were you able to pull the private message (or note) details from a context object. Like your original question, I want to be able to get the username from the sender when reading a private message, but I can't find any context information from page or env. Thanks! Re: Triggering a survey when a user accepts a solution That's an interesting approach. I didn't want anything too elaborated because this will be a pilot test, so checking for the message sounds like a good idea. Thanks peterlu! Triggering a survey when a user accepts a solution Hi, We're looking for a way to survey our customers once they accepted a solution on our community. The goal is to survey only the user that accepted the solution, right after clicking the button. I'm considering two options here: - Our survey service can trigger a survey when a certain keyword is on the URL. I noticed that when a user accepts a solution, the form is submitted and the page is refreshed. I'm looking for a way to add that extra parameter to the URL when the page is refreshed. Unfortunately, that's a part of the community I don't have access as a user. - Add a pop up with a button to launch the survey when the user clicks 'Accept as solution', but again, the page is refreshed and I'm not sure how the whole process work on the back end. Do you have any tips or ideas? Thanks! Solved