Group API gives misleading error

The following group API:

https://groups.roblox.com/v1/users/{userId}/friends/groups/roles

which is supposed to return the groups of a user friends list, only works if the user id matches that of the authenticated user. If the user isn’t authenticated, or the authenticated user isn’t the one passed in the parameter, the API gives a “The user is invalid or does not exist.” error, which doesn’t make sense because the passed id does exist.

Expected behavior

What should happen is that instead of a user not found error, I should get an authentication error, or an error informing me that the user id must match that of the authenticated user. It also doesn’t make sense that the user id is a parameter at all, since this is basically an API that requires authentication.

2 Likes

Thank you for your feedback, we will investigate.