Set user file attribute fails

Permalink
I am logged in into my site as a user, which is inside a custom group.

I have tried several different ways of setting the file attribute of a user but none of these work

$ui->setAttribute("college_logo_fid", File::getByID(1));


$ui->setAttribute("college_logo_fid",1);


Using a file object or an fID does not work.

This might be a permissions issue as setting it via the Dashboard works as an admin. What permissions does the user need in order to set his own user attributes?

Any other suggests welcome.

Thanks

yolk