# User Management Issues

**URL:** <https://forum.inductiveautomation.com/t/user-management-issues/35413>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [June 8, 2020, 3:57pm UTC](https://forum.inductiveautomation.com/t/user-management-issues/35413 "2020-06-08T15:57:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![idioknna](https://avatars.discourse-cdn.com/v4/letter/i/9de053/32.png) [@idioknna](https://forum.inductiveautomation.com/u/idioknna)\
**Post date:** [June 8, 2020, 3:57pm UTC](https://forum.inductiveautomation.com/t/user-management-issues/35413/1 "2020-06-08T15:57:24Z")

</div>

I need help trying to configure user management component to be able to edit every user information by having an administrative role (example: Admin Role) and restricting anyother user without admin roles from editing other user’s information except theirs. The issues I am facing is that if a user has both admin and Maint Roles for instance, the expression binding I did at the Behaviour\>\>Mode under the user management component will break.  
here the expression that I have written:

hasRole(“Admin”)

does anyone have an idea to get the user with both roles to be able to edit every user while limiting other users without admin role from editing every user except their own user

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 10, 2020, 11:37am UTC](https://forum.inductiveautomation.com/t/user-management-issues/35413/2 "2020-06-10T11:37:47Z")

</div>

The expression you’re using will return 0 or 1, depending on if you have the Admin role or not. However the Mode property, firstly is an integer data type, and secondly, setting it to 1 allows editing of the _current_ user only.  
You need to fix your expression, and I suggest explicitly writing the correct integer value for each state, at least for clarity’s sake.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b7e484fa4db76f671d5c8f464b6a2f777caecde9.png)
