# Perspective issue after making the necessary changes in start up script

**URL:** <https://forum.inductiveautomation.com/t/perspective-issue-after-making-the-necessary-changes-in-start-up-script/76859>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [July 25, 2023, 12:41pm UTC](https://forum.inductiveautomation.com/t/perspective-issue-after-making-the-necessary-changes-in-start-up-script/76859 "2023-07-25T12:41:09Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Felipe\_CRM](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Felipe\_CRM](https://forum.inductiveautomation.com/u/Felipe_CRM)\
**Post date:** [July 25, 2023, 1:28pm UTC](https://forum.inductiveautomation.com/t/perspective-issue-after-making-the-necessary-changes-in-start-up-script/76859/8 "2023-07-25T13:28:42Z")

</div>

In expressions, `hasRole(role, username, usersource)` will also work (the second and third argument are required for Perspective):

> [@Perspective: Error using hasRole(...) with only 1 argument](https://forum.inductiveautomation.com/t/perspective-error-using-hasrole-with-only-1-argument/26628/13):
>
> Why are you forcing the double quotes? The example only has double quotes to display that the value is a String.

You'll need to get username and user source from the session props, here's a more specific example. I just included the other one because of the nice screenshot:

> [@Perspective: Error using hasRole(...) with only 1 argument](https://forum.inductiveautomation.com/t/perspective-error-using-hasrole-with-only-1-argument/26628/15):
>
> 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-issue-after-making-the-necessary-changes-in-start-up-script/76859)._
