# Inline editing restricted to certain user roles only

**URL:** <https://forums.knack.com/t/inline-editing-restricted-to-certain-user-roles-only/15556>\
**Category:** Ask the Community\
**Created:** [January 18, 2024, 10:30am UTC](https://forums.knack.com/t/inline-editing-restricted-to-certain-user-roles-only/15556 "2024-01-18T10:30:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marketing1](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@marketing1](https://forums.knack.com/u/marketing1)\
**Post date:** [January 18, 2024, 10:30am UTC](https://forums.knack.com/t/inline-editing-restricted-to-certain-user-roles-only/15556/1 "2024-01-18T10:30:41Z")

</div>

Hello,

Is it possible to restrict inline editing to only users within a specific user role?

Thanks!

---

<div class="post-metadata">

**Author:** ![KnackPros](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/knackpros/32/807_2.png) [@KnackPros](https://forums.knack.com/u/KnackPros)\
**Post date:** [January 18, 2024, 3:35pm UTC](https://forums.knack.com/t/inline-editing-restricted-to-certain-user-roles-only/15556/2 "2024-01-18T15:35:33Z")

</div>

Hi,

The way this is normally done is two views are created, one with inline editing enabled and one without. Then the views are shown/hidden with Page Rules, depending on the logged in user’s role.

---

<div class="post-metadata">

**Author:** ![CarlHolmes](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/carlholmes/32/2814_2.png) [@CarlHolmes](https://forums.knack.com/u/CarlHolmes)\
**Post date:** [January 18, 2024, 7:46pm UTC](https://forums.knack.com/t/inline-editing-restricted-to-certain-user-roles-only/15556/3 "2024-01-18T19:46:41Z")

</div>

Agreed 👍 that’s how I do it too 🚀

---

<div class="post-metadata">

**Author:** ![CSWinnall](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/cswinnall/32/3631_2.png) [@CSWinnall](https://forums.knack.com/u/CSWinnall)\
**Post date:** [January 18, 2024, 8:56pm UTC](https://forums.knack.com/t/inline-editing-restricted-to-certain-user-roles-only/15556/4 "2024-01-18T20:56:07Z")

</div>

Hi @marketing1

This is also possible using the KTL

> **[Keywords](https://github.com/cortexrd/Knack-Toolkit-Library/wiki/Keywords#_nicolheader1-colheader2)**
>
> Knack Toolkit Library. Contribute to cortexrd/Knack-Toolkit-Library development by creating an account on GitHub.

and using ktlRoles options

> **[Keywords](https://github.com/cortexrd/Knack-Toolkit-Library/wiki/Keywords#ktlroles)**
>
> Knack Toolkit Library. Contribute to cortexrd/Knack-Toolkit-Library development by creating an account on GitHub.

It provides so many no code (apart from 5 lines initially) solutions

What you are asking could be done like this in the view description.

```auto
_ni=[], [ktlRoles, !Developer, !Other Role]

```

This would disable online editing for every role except Developer and Other Role.

The empty brackets could contain column headers if you want to disable specific columns.

I use it on nearly every view and it’s indispensable.

Craig
