I got this message at first but then I realised I had forgotten to set moodle/user:viewdetails in the course context to allow as well. Does that work for you?
Roles and permissions
Parents Roles and Premission
This discussion has been locked so you can no longer reply to it.