# Fetch specific data from the database for a model

**URL:** <https://community.forestadmin.com/t/fetch-specific-data-from-the-database-for-a-model/986>\
**Category:** Help me!\
**Created:** [September 18, 2020, 7:44am UTC](https://community.forestadmin.com/t/fetch-specific-data-from-the-database-for-a-model/986 "2020-09-18T07:44:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![antoh](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/antoh/32/466_2.png) [@antoh](https://community.forestadmin.com/u/antoh)\
**Post date:** [September 18, 2020, 7:44am UTC](https://community.forestadmin.com/t/fetch-specific-data-from-the-database-for-a-model/986/1 "2020-09-18T07:44:43Z")

</div>

Hey!  
I have a case where I need to fetch all active users only. I have a field called deleted, I need to return only the users that have deleted equal false. What is the best way to do that? and is there a way to do it without using scopes?

Thank you for your help

---

<div class="post-metadata">

**Author:** ![anon39848301](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@anon39848301](https://community.forestadmin.com/u/anon39848301)\
**Post date:** [September 18, 2020, 8:50am UTC](https://community.forestadmin.com/t/fetch-specific-data-from-the-database-for-a-model/986/2 "2020-09-18T08:50:58Z")

</div>

Hi @antoh, and welcome to our community,

I guess the `scope` feature is your best choice here (If you want your user to **only** access user with `deleted=false`)

If you want your users to simply have a view with all users with `deleted=false`, a segment would do the trick (See [https://docs.forestadmin.com/documentation/reference-guide/segments](https://docs.forestadmin.com/documentation/reference-guide/segments))

Let me know if that helps.
