# Generate CSV based on User Roles

**URL:** <https://community.glideapps.com/t/generate-csv-based-on-user-roles/68447>\
**Category:** Ask for Help\
**Created:** [December 7, 2023, 6:42am UTC](https://community.glideapps.com/t/generate-csv-based-on-user-roles/68447 "2023-12-07T06:42:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattGlides](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@MattGlides](https://community.glideapps.com/u/MattGlides)\
**Post date:** [December 7, 2023, 6:42am UTC](https://community.glideapps.com/t/generate-csv-based-on-user-roles/68447/1 "2023-12-07T06:42:43Z")

</div>

I am wanting to pull all the drivers out of the User’s table with their relevant info via a CSV file. Currently we know they’re a driver from a boolean being checked in the User’s table, how would I go about only pulling only the drivers info into a CSV file?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 7, 2023, 7:51am UTC](https://community.glideapps.com/t/generate-csv-based-on-user-roles/68447/2 "2023-12-07T07:51:07Z")

</div>

Create a Query column that targets your Users table, and use that boolean column as a filter. Then use the Query column as the source of the CSV.
