Palbase Auth API · API
GET
/admin/users/{uid}/rolesList a user's roles
Lists the roles the user holds, sorted by name. A user with no roles answers an empty list; a user ID the project does not have answers 404 user_not_found.
Called by your server, with the project's secret key.
Path
uidstring · requiredThe user's ID.curl
curl -X GET "https://<your-ref>.palbase.studio/admin/users/<uid>/roles" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200The user's roles
400Validation failed or required field missing
401Missing, invalid, or expired credentials
403Authenticated but not permitted (banned, hook denial, role mismatch)
404Resource does not exist or is not visible to the caller
503Downstream dependency unavailable (typically HIBP / breach service)
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation AdminListUserRoles of auth's contract.