Update Avatar URL for a user through Automation

Hello,

We have a requirement to update user's Avatar through automation job. Can anyone suggest how we can achieve this?

Thanks

Parents Reply
  • Former Member
    0 Former Member in reply to Matt

    There is a core_v2_http Script API  widget API that will assist with making a REST Request.  

    If Remote Avatars are allowed for users, you should be able to just directly set the AvatarUrl to the remote Url.

    If remote Avatars are not allowed, or for group Avatars (which don't support setting the Url), you would need to use the Upload options when setting the avatar.  Upload the file to temporary storage and use FileUploadContext or Get the file in Byte[] format and use FileData parameter.

Children