Hi, we are using the Golang Supertokens SDK. Is th...
# support-questions-legacy
m
Hi, we are using the Golang Supertokens SDK. Is there currently a way to get roles for multiple users using the SDK? I can't seem to find anything similar in the documentation. The users pagination endpoint (https://app.swaggerhub.com/apis/supertokens/CDI/2.8.0#/Core/getUsers) doesn't return roles in the response.
r
hey @majak_94518 there is a function in the user roles recipe: https://pkg.go.dev/github.com/supertokens/supertokens-golang@v0.17.5/recipe/userroles#GetRolesForUser Other than that, we dont have any other API to fetch roles
m
We are using this, but for multiple users we have to send a separate request for each user
Are there any plans to add something that would work for multiple userIDs?
r
Not at the moment. But if you create an issue, and it gets traction, we can add it.
You can also create PRs for this if you like.
m
Thanks!
2 Views