# Column level permission

**URL:** <https://community.holistics.io/t/column-level-permission/1383>\
**Category:** Ask the Community\
**Created:** [January 17, 2023, 11:56am UTC](https://community.holistics.io/t/column-level-permission/1383 "2023-01-17T11:56:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hari](https://community.holistics.io/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hari](https://community.holistics.io/u/hari)\
**Post date:** [January 17, 2023, 11:56am UTC](https://community.holistics.io/t/column-level-permission/1383/1 "2023-01-17T11:56:48Z")

</div>

I am trying to enable column level permission by referring to the official docs.

1. I cant see aml and sql tabs in the create custom dimension tab as referred in the docs.
2. would be helpful if anyone could help with the right command.  
this is the command i am referring now from the docs  
 ![column](https://community.holistics.io/uploads/default/original/2X/b/b2c322f41017ea1018f083485c6efec3b3751b27.png)

I am using holistics 4.0  
i have defined user attribute pii\_access  
custom dimension code I am using:  
case(  
when:H.current\_user.pii\_access=1,  
then: {{ solar\_id }},  
else: “redacted”  
)  
and the error I am getting:  
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'when:H.current\_user.pii\_access=1, then: `dealer_visit`.`solarId`, else: ’ at line 5

---

<div class="post-metadata">

**Author:** ![Khai\_To](https://community.holistics.io/user_avatar/community.holistics.io/khai_to/32/128_2.png) [@Khai\_To](https://community.holistics.io/u/Khai_To)\
**Post date:** [January 18, 2023, 8:35am UTC](https://community.holistics.io/t/column-level-permission/1383/2 "2023-01-18T08:35:05Z")

</div>

Hi @hari,

At the moment, we don’t officially support creating AML field in the UI Mode of the Model. It’s still currently our experimental solution.  
However, since you’re in the version 4.0, you can just switch to Code view of the Model and write the aml expression from there

 ![image](https://community.holistics.io/uploads/default/original/2X/6/68cb9b0b897ad7b45a6cd8b08b1e3c78dad3a81d.png)

 ![image](https://community.holistics.io/uploads/default/original/2X/f/f3ee3bb18ed9cce53ff2ca8bc4addd0809abc7e1.png)

Hope this helps. 😁

---

<div class="post-metadata">

**Author:** ![hari](https://community.holistics.io/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hari](https://community.holistics.io/u/hari)\
**Post date:** [January 18, 2023, 9:05am UTC](https://community.holistics.io/t/column-level-permission/1383/3 "2023-01-18T09:05:27Z")

</div>

Thanks alot @Khai_To, this is working fine now
