Skip to content

What is the best way to access all users from the auth.users table? #18780

Closed Answered by GaryAustin1
RafaelCENG asked this question in Questions
Discussion options

You must be logged in to vote

The API has no access to the auth schema. You might be able to use a view. A security definer function called with rpc would work. The issue with both approaches is you will need to protect the view or rpc call so a normal user can’t call it.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@GaryAustin1
Comment options

@TangSirOnGit
Comment options

@GaryAustin1
Comment options

@TangSirOnGit
Comment options

@Donald646
Comment options

Answer selected by RafaelCENG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants