# User Object addRoles vs setRoles

**URL:** <https://forum.inductiveautomation.com/t/user-object-addroles-vs-setroles/114625>\
**Category:** Ignition\
**Created:** [March 23, 2026, 5:32pm UTC](https://forum.inductiveautomation.com/t/user-object-addroles-vs-setroles/114625 "2026-03-23T17:32:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [March 23, 2026, 5:51pm UTC](https://forum.inductiveautomation.com/t/user-object-addroles-vs-setroles/114625/2 "2026-03-23T17:51:04Z")

</div>

I believe the difference is `addRoles()` _appends_ to the current roles list, and `setRoles()` _overrides_ the current list with the one provided to the method.

[System user functions - Ignition - Inductive Automation Forum](https://forum.inductiveautomation.com/t/system-user-functions/94045/29)

---

_[View the full topic](https://forum.inductiveautomation.com/t/user-object-addroles-vs-setroles/114625)._
