---
title: "Gets a list of all group roles for groups the specified user is in."
method: GET
path: "/v2/users/{userId}/groups/roles"
tags: ["Groups", "Users"]
---

# Gets a list of all group roles for groups the specified user is in.

`GET /v2/users/{userId}/groups/roles`

## Path parameters

- `userId` integer, required

## Query parameters

- `includeLocked` boolean, required
- `includeNotificationPreferences` boolean, required
- `discoveryType` 0 | 1 | 2, required

## Response `200`

OK

- RobloxWebWebAPIModelsApiArrayResponseRobloxGroupsApiGroupMembershipResponse
  - `data` RobloxGroupsApiGroupMembershipResponse[]
    - `group` RobloxWebResponsesGroupsGroupBasicResponse
      - `id` integer
      - `name` string
      - `memberCount` integer
      - `hasVerifiedBadge` boolean
    - `role` RobloxWebResponsesGroupsGroupRoleBasicResponse
      - `id` integer
      - `name` string
      - `rank` integer
    - `isNotificationsEnabled` boolean — Whether the group notification preferences are enabled for the user TODO: Deprecate this field - it only returns if announcement notifications are enabled and that information is already returned in the NotificationPreferences list below
    - `notificationPreferences` RobloxGroupsApiGroupNotificationPreferenceData[]
      - `type` 0 | 1 | 2 | 3 | 4 — ['AnnouncementCreatedNotification' = 0, 'ForumPostCreatedNotification' = 1, 'ForumCommentCreatedNotification' = 2, 'ForumCommentReplyCreatedNotification' = 3, 'ForumSubscriberNotification' = 4]
      - `enabled` boolean
      - `name` string
      - `description` string

## Other responses

- `400` — 3: The user is invalid or does not exist.

---

[API](https://skmtc.net/roblox/apis/roblox-api.md) · [All operations](https://skmtc.net/roblox/apis/roblox-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/roblox/roblox-api/versions/756260310407/schema)
