Is it possible to make profile fields uneditable?

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

1 Like

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

6 Likes

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?

We’ve recently added the groups of the current user as classes to the <body> element.

4 Likes