Hi Marius
My bad! Youre quite right. I can see why it wont work - namely the user profile is site-wide, if the role is restricted to the course only then it cannot edit settings which are site-wide, such fields in a user's profile.
I can't see any way around this, other than somehow blocking the role's capabilities in users who are not in a particular audience. Its a site-wide capability.
I think the only way to achieve this would be a new feature.
cheers,
George.