Issues with user profile picture update

Hi! We have 2 apps within the same solution in which a user should be able to update their profile picture. We’re using the Set user account image action node in both with the default settings.

The profile image update works as expected in one app, but in the other, it works only for Owners, while the regular app users are getting the following error:

I have 2 questions:

  1. According to the docs, you don’t need any special permissions for this to work. Is there anything we might be missing?

  2. Is there any way to control the look of this dialog? The default styling coming from the theme is not optimal, as you can see in the screenshot.

Hi Joanna!

Yes you are correct - this does not work as intended with regards to permissions. Docs states how it should work (not special permissions required), but currently you need to adjust the Perimssions: The current user´s role need permissions to update users of that role. A challenge exists for this issue, planned to be released later this year. With that challenge, you should be able to update your own user image regardsless of those permissions.

There is no possibility to adjust the look of this dialog unfortunately. Might be something to look into at some point.

Thanks @kristian, perhaps it’s worth to update the docs in the meantime.
Is the challenge intended also for other changes to your own user (like name, phone, etc.)?

And any tips on styling the dialog?

Hi!

I´ve added a comment on the same challenge with regards to updating your own name through the “Update user account”. Currently, the same issue applies here as with updating profile picture - the permissions to update users are required.

The docs have now been updated.

With regards to the tips on styling, I guess there might be some ways to “hack around it” with run code (not recommended), or you may try to adjust the theme a bit (primary / secondary colour) to give better contrast.

Unfortunately, we can’t change the theme colors since they’re shared across several apps.

Is there a way to add an ID to this specific dialog without using JavaScript? I’m a bit concerned about accidentally affecting other dialogs.

We could potentially change the default button type, but that would require updates across multiple apps and still wouldn’t fix the missing gap between buttons. We might just wait until this challenge is resolved.

–—–

On a side note: it’s probably unrelated, but I’ve noticed that if a user closes the photo selection dialog, it won’t reopen if they click again immediately afterwards. I’ve tested this both on mobile and in the browser.