This repository was archived by the owner on Mar 29, 2026. It is now read-only.
BREAKING CHANGE: Groups methods overhaul#876
Merged
Merged
Conversation
and other typing updates
Neztore
approved these changes
Mar 27, 2026
Neztore
suggested changes
Mar 27, 2026
| * @category User | ||
| * @alias getPrimaryGroup | ||
| * @param {number} userId - The ID of the user. | ||
| * @returns {Promise<Group>} |
Member
There was a problem hiding this comment.
Does it? Or does it return a GroupMemberInfo
Member
Author
There was a problem hiding this comment.
Primary group endpoint returns whole group object.
Member
There was a problem hiding this comment.
https://groups.roblox.com/v1/users/66592931/groups/primary/role
{"group":{"id":3812352,"name":"Polaris Incorporated","description":"Polaris incorporated. The Polaris bot will shut down on the First of March 2022. Thank you all for coming along for the ride. We're proud of what we achieved: From a Project that didn't set out to achieve much at all, except be a hobby of mine.","owner":{"hasVerifiedBadge":false,"userId":66592931,"username":"Neztore","displayName":"Neztore"},"shout":null,"isBuildersClubOnly":false,"publicEntryAllowed":false,"hasVerifiedBadge":false,"hasSocialModules":true},"role":{"id":26008925,"name":"Dev","rank":255,"color":0}}Isn't that a GroupMemberInfo?
Member
Author
There was a problem hiding this comment.
I ended up making a new type using the existing Group and Role types, since the primary group returns the full group object (which is not present in the GroupMemberInfo type)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
getGroupsis nowgetUserGroupsgetUserGroupsno longer polyfills, now returns what Roblox doesgetPrimaryGroupmultigetPartialGroupsnow exists for retrieving partial information of up to 100 groupsgetLogonow supports multiple group ids (and is backwards compatible)