Change profile picture remotelly.

Change profile picture remotelly.

by Gerard Forcada -
Number of replies: 0

Hello


We have 2+ moodle installations spread, and i need to update profile pictures remotely, so i turned to web services. The core_files_upload to upload picture, and core_user_update_picture to set it.


But all file operations need the user's ContextId, and it looks like no webservice is providing this data. T'ho is kinda easy to get it if full access to server is granted.


I better do not put custom code to the moodle's, because of updates may cause serious problems.


I have no remote access to the individual DDBB of the individual moodle installations.


Can anyone point me the web service providing the contextId to get access to file operations. Please.


Thanks in advance.

Average of ratings: -