# Is it possible to make profile fields uneditable?

**URL:** https://meta.discourse.org/t/is-it-possible-to-make-profile-fields-uneditable/55170
**Category:** Support
**Created:** [4 Gennaio 2017, 7:00pm UTC](https://meta.discourse.org/t/is-it-possible-to-make-profile-fields-uneditable/55170 "2017-01-04T19:00:37Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![tsilva](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tsilva/32/65899_2.png) [@tsilva](https://meta.discourse.org/u/tsilva)
#### Post date: [4 Gennaio 2017, 7:00pm UTC](https://meta.discourse.org/t/is-it-possible-to-make-profile-fields-uneditable/55170/1 "2017-01-04T19:00:37Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [4 Gennaio 2017, 8:22pm UTC](https://meta.discourse.org/t/is-it-possible-to-make-profile-fields-uneditable/55170/2 "2017-01-04T20:22:32Z")

</div>

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

---

<div class="post-metadata">

### Author: ![tsilva](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tsilva/32/65899_2.png) [@tsilva](https://meta.discourse.org/u/tsilva)
#### Post date: [5 Gennaio 2017, 11:09am UTC](https://meta.discourse.org/t/is-it-possible-to-make-profile-fields-uneditable/55170/3 "2017-01-05T11:09:23Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [17 Aprile 2019, 9:44am UTC](https://meta.discourse.org/t/is-it-possible-to-make-profile-fields-uneditable/55170/4 "2019-04-17T09:44:31Z")

</div>



---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [24 Aprile 2019, 5:49pm UTC](https://meta.discourse.org/t/is-it-possible-to-make-profile-fields-uneditable/55170/5 "2019-04-24T17:49:24Z")

</div>

> [@tsilva](#):
>
> 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.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2 Agosto 2022, 2:00am UTC](https://meta.discourse.org/t/is-it-possible-to-make-profile-fields-uneditable/55170/6 "2022-08-02T02:00:59Z")

</div>


