# Object Roles

**URL:** <https://forum.inductiveautomation.com/t/object-roles/6934>\
**Category:** Ignition\
**Created:** [July 25, 2013, 4:41pm UTC](https://forum.inductiveautomation.com/t/object-roles/6934 "2013-07-25T16:41:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![allenr8](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@allenr8](https://forum.inductiveautomation.com/u/allenr8)\
**Post date:** [July 25, 2013, 4:41pm UTC](https://forum.inductiveautomation.com/t/object-roles/6934/1 "2013-07-25T16:41:14Z")

</div>

I am wondering if there is a way to check and see what security roles an object has? For example if I have a button with three roles selected is there a way to see those roles except for the security tab in the designer?

I am trying to pass some security roles to other objects depending on what button is pressed.

---

<div class="post-metadata">

**Author:** ![Ron.Lor](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@Ron.Lor](https://forum.inductiveautomation.com/u/Ron.Lor)\
**Post date:** [August 13, 2013, 4:25pm UTC](https://forum.inductiveautomation.com/t/object-roles/6934/2 "2013-08-13T16:25:51Z")

</div>

The only scripting functions we have that might have what you’re looking for can be found in system.security. system.security.getRoles() is the closest thing we have, which gets all the roles of the current user that’s logged in.
