# Roles not Working

**URL:** <https://forum.inductiveautomation.com/t/roles-not-working/18781>\
**Category:** Ignition\
**Created:** [July 10, 2018, 3:41pm UTC](https://forum.inductiveautomation.com/t/roles-not-working/18781 "2018-07-10T15:41:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![drinaldi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drinaldi/32/32068_2.png) [@drinaldi](https://forum.inductiveautomation.com/u/drinaldi)\
**Post date:** [July 10, 2018, 3:41pm UTC](https://forum.inductiveautomation.com/t/roles-not-working/18781/1 "2018-07-10T15:41:10Z")

</div>

Hello, I keep getting this error below when I run my program even though the user has al the rights to do everything.  
please help!

```
caused by GatewayException: Error executing function 'RunUpdateQuery': The current user does not have the required roles for this operation.
caused by GatewayFunctionException: The current user does not have the required roles for this operation.
```

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 10, 2018, 3:50pm UTC](https://forum.inductiveautomation.com/t/roles-not-working/18781/2 "2018-07-10T15:50:06Z")

</div>

Check this thread: [ERROR(500): Error executing function 'RunQuery': The current user does not have the required roles for this operation](http://forum.inductiveautomation.com/t/error-500-error-executing-function-runquery-the-current-user-does-not-have-the-required-roles-for-this-operation/15252/4?u=pgriffith)

---

<div class="post-metadata">

**Author:** ![drinaldi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drinaldi/32/32068_2.png) [@drinaldi](https://forum.inductiveautomation.com/u/drinaldi)\
**Post date:** [July 10, 2018, 3:59pm UTC](https://forum.inductiveautomation.com/t/roles-not-working/18781/3 "2018-07-10T15:59:10Z")

</div>

I will check it out, thanks

---

<div class="post-metadata">

**Author:** ![drinaldi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drinaldi/32/32068_2.png) [@drinaldi](https://forum.inductiveautomation.com/u/drinaldi)\
**Post date:** [July 10, 2018, 4:00pm UTC](https://forum.inductiveautomation.com/t/roles-not-working/18781/4 "2018-07-10T16:00:58Z")

</div>

so what exactly do i have to do?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 10, 2018, 4:03pm UTC](https://forum.inductiveautomation.com/t/roles-not-working/18781/5 "2018-07-10T16:03:25Z")

</div>

Either enable the legacy permission access (not recommended) _or_ populate the required client roles as appropriate for whatever you need to do.

---

<div class="post-metadata">

**Author:** ![drinaldi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drinaldi/32/32068_2.png) [@drinaldi](https://forum.inductiveautomation.com/u/drinaldi)\
**Post date:** [July 10, 2018, 4:06pm UTC](https://forum.inductiveautomation.com/t/roles-not-working/18781/6 "2018-07-10T16:06:27Z")

</div>

i got it. in properties/permissions I set them ALL to enable and my screens are working.  
Thank You PG!

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [July 11, 2018, 3:43pm UTC](https://forum.inductiveautomation.com/t/roles-not-working/18781/7 "2018-07-11T15:43:56Z")

</div>

Just remember this is the least secure solution. 🙂
