Is there any way to check a user’s primary group?
This API endpoint will fetch a user’s primary group given his/her user ID:
https://groups.roblox.com/docs#!/PrimaryGroup/get_v1_users_userId_groups_primary_role
Here’s a sample request:
https://groups.roblox.com/v1/users/261/groups/primary/role
1 Like
This works, but now I’m getting a trust check failed when I use it with GetAsync().
You can’t make requests to Roblox API endpoints directly using the HttpService service. You’ll need to proxy the request.
https://developer.roblox.com/en-us/api-reference/class/HttpService
Check the section under the header “Considerations” for more info.
1 Like
Here’s a way of doing what I described above.
Yea I cloned that repo and made my own. It’s working, thank you.
No problem, glad to see you got everything working.