Can we have a user based check in rest api query?

  • Goal: we are trying to build a data visualisation tool that fetches data based on the user, so can we have different arguments in rest api on the basis of the user email ? And what are the other ways to apply check on user ?
2 Likes

Hi @Karan_Randhir and welcome to the forum!

From a retool perspective you can definitely use user info and integrate it in your rest apis.

For your case, the current user object will help. You can reference it in your api, e.g. {{ current_user.email}}

Another thing you can do (if you're on the Business subscription level) is adding attributes to your users and use them as a sort of permission sets.

Hope this helps!

3 Likes