Is it possible to make profile fields uneditable?

(tsilva) #1

I use SSO and would like to make all profile fields uneditable (eg: location), and only sync them on login. Is that possible?

(Rafael dos Santos Silva) #2

I had the same problem in a community with SSO, and hiding the fields on the edit profile page with CSS was enough there.

(tsilva) #3

Thanks for the pointer, that worked well! Any idea on how to make that role based? I want some users to not be able to see the fields and others not to. I noticed that the body has a “staff” class when I’m logged in with an admin or moderator, however I’d like to just hide these for certain users that are neither “admins” nor “moderators”, but actually belong to a custom group. Any idea?