# Querying Specific User's Authorized Data using Dremio REST API

**URL:** <https://community.dremio.com/t/querying-specific-users-authorized-data-using-dremio-rest-api/10907>\
**Category:** Dremio University\
**Created:** [August 21, 2023, 9:52am UTC](https://community.dremio.com/t/querying-specific-users-authorized-data-using-dremio-rest-api/10907 "2023-08-21T09:52:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssol](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@ssol](https://community.dremio.com/u/ssol)\
**Post date:** [August 21, 2023, 9:52am UTC](https://community.dremio.com/t/querying-specific-users-authorized-data-using-dremio-rest-api/10907/1 "2023-08-21T09:52:00Z")

</div>

I have admin privileges and can access all SPACEs and DATASETs. However, I’m trying to retrieve only the data they are authorized to access using a specific user ID.

To put it simply, I’m seeking a way to preview the return when the specific user executes the same query.

Is there any way to do this? The way to write specific SELECT sql query or use a certain parameter to send API requests is okay.

Any insights, guidance, or examples you could provide would be immensely appreciated.

---

<div class="post-metadata">

**Author:** ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)\
**Post date:** [August 22, 2023, 3:37am UTC](https://community.dremio.com/t/querying-specific-users-authorized-data-using-dremio-rest-api/10907/2 "2023-08-22T03:37:53Z")

</div>

@ssol [Row-Access & Column-Masking | Dremio Documentation](https://docs.dremio.com/current/reference/sql/commands/row-column-policies/)
