Get position of group member

I want to tell the user what position they are in a group from their ID. By position I don’t mean rank or rank id, but rather a number representing the moment they joined the group (eg. “Nth Group Member”)

How would I do that?

you can get role rank but not position of group member what you can do is use some external source for that other than that no chance.

I suggest to check out this post:

I will see what I can do in a minute and try to make a script myself.

You can use the Groups v1 API. They provide a swagger documentation for each endpoint: Swagger UI (roblox.com)

You would first have to get each RoleSet ID from the specified group ID

https://groups.roblox.com/v1/groups/6477402/roles

Once you have the specific RoleSet ID you can fill out the rest of the query parameters. Typically you can only query up to 100 objects per request but you can further extend the query with a nextpagecursor value to move up a page in the pagination.

So your first query would end up looking like so:

https://groups.roblox.com/v1/groups/6477402/roles/41684486/users?limit=100&sortOrder=Desc

Parse the nextpagecursor value from the JSON and make a new request with the cursor query parameter if there is a next page with more users (I made my object limit 10 for demonstration purposes):

https://groups.roblox.com/v1/groups/6477402/roles/41684486/users?limit=10&cursor=3334001986_1_50e727171077f3854593d4e326ca483c&sortOrder=Desc

Apply the new cursor value per request if such a value exists.

You can now simply loop through your data and get which index the specific player is found at.

You’re welcome, hope this helps! - Someone who works with APIs for a living.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.