# Search user in user management

**URL:** <https://forum.inductiveautomation.com/t/search-user-in-user-management/83179>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [December 15, 2023, 6:51am UTC](https://forum.inductiveautomation.com/t/search-user-in-user-management/83179 "2023-12-15T06:51:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dharani\_T](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@Dharani\_T](https://forum.inductiveautomation.com/u/Dharani_T)\
**Post date:** [December 15, 2023, 6:51am UTC](https://forum.inductiveautomation.com/t/search-user-in-user-management/83179/1 "2023-12-15T06:51:29Z")

</div>

Hi team,

In vision usermanagement, i would like to have a filter or search user by user's input in a text field, i aware that there is a function called filterUser(). But confused on how to use this for the above requirement.  
Your help would be appreciated.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [December 16, 2023, 2:34pm UTC](https://forum.inductiveautomation.com/t/search-user-in-user-management/83179/2 "2023-12-16T14:34:24Z")

</div>

I was able to get this to work by using this script on the userManagement tool's `filterUser` extension function:

```auto
#def filterUser(self, user):
	if self.parent.getComponent('Text Field').text in user.get('username'):
		return True
	else:
		return False

```

Then, to filter the table automatically as the user types, I put this script on the `keyReleased` event handler of the text field:

```auto
userManagement = event.source.parent.getComponent('User Management')
userManagement.updateTables()

```

**Result:**  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/3/a3d06c7756a88a425ecd3459e35a2f6b284def61.png)
