# Perspective: Error using hasRole(...) with only 1 argument

**URL:** <https://forum.inductiveautomation.com/t/perspective-error-using-hasrole-with-only-1-argument/26628>\
**Category:** Ignition Early Access\
**Created:** [July 17, 2019, 3:03pm UTC](https://forum.inductiveautomation.com/t/perspective-error-using-hasrole-with-only-1-argument/26628 "2019-07-17T15:03:25Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [September 21, 2020, 3:28pm UTC](https://forum.inductiveautomation.com/t/perspective-error-using-hasrole-with-only-1-argument/26628/15 "2020-09-21T15:28:04Z")

</div>

I try to avoid double quotes if I can help it, but your original ‘shoulda worked’ works for me:

`hasRole('Operator', {session.props.auth.user.userName}, {session.props.auth.idp})`

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-error-using-hasrole-with-only-1-argument/26628)._
