Hi!
I am working in a model driven app. When we are assigning a task from the task-table to someone i want to only get a list over the people who are active in the current environment.
I've set a security group for the environment to limit access to only people within that security group. But when i want to choose an owner of a task i can choose between everyone in the organisation.
When i check the users who are in the environment i see that everyone is there, but the only difference is that those who are in the security group is "Active" and the ones who are not is "Disabled".
Problem is i cant filter on that in the User table.
Any suggestions?
Hi @PrebenF ,
There's another method,
Open the Form and click on the Lookup Field
You will see the View that is used on that Lookup, you can set to 'Active Users' or any custom views as per your choice.
Hope this helps
So, if I understand correctly, you would filter the lookup showing only active (not disabled) Users, right?
If so, you can use a custom javascript code
addCustomFilter (Client API reference) in model-driven apps - Power Apps | Microsoft Learn
There you can see an example. With that, you can write something like
<filter>
<condition attribute='isdisabled' operator='eq' value='0' />
</filter>
But remember that you have to use this method passing before the addPreSearch on onLoad method of your javascript
addPreSearch (Client API reference) in model-driven apps - Power Apps | Microsoft Learn
stampcoin
17
ankit_singhal
11
Super User 2025 Season 1
mmbr1606
9
Super User 2025 Season 1