---
title: "GET /api/users/list-usergroups"
method: GET
path: "/api/users/list-usergroups"
tags: ["groupmanagement"]
---

# GET /api/users/list-usergroups

`GET /api/users/list-usergroups`

## Query parameters

- `userGroupid` string
- `isfromMSSPPage` string
- `masterMSSPID` string

## Response `200`

Success

- ListUserGroupForUserResponse
  - `affiliateGroups` AffiliateGroupDetails[], nullable
    - `id` integer
    - `affiliateGroup` string, nullable
    - `partyGroupIds` AffiliatePartyGroup[], nullable
      - `partyGroupId` string, nullable
  - `userGroups` UserGroups[], nullable
    - `partyGroupId` string, nullable
    - `partyGroupName` string, nullable
    - `adminPartyId` string, nullable
    - `status` string, nullable
    - `isDefaultGroup` string, nullable
    - `totalContacts` string, nullable
    - `productGroupName` string, nullable
    - `associatedPGList` ProductGroupListforUG[], nullable
      - `productGroupId` string, nullable
      - `productGroupName` string, nullable
      - `MSSPId` string, nullable
    - `setAsDefaultGroup` string, nullable
    - `renameLink` string, nullable
    - `usersForUserGroup` UsersForUserGroup[], nullable
      - `name` string, nullable
      - `login` string, nullable
      - `email` string, nullable
      - `partyGroupId` string, nullable
      - `contactId` string, nullable
      - `partyId` string, nullable
      - `adminPartyId` string, nullable
      - `lastAccessDate` string, nullable
      - `dtLastAccessDate` string, nullable
      - `lastAccessTime` string, nullable
      - `isReadOnlyAccess` string, nullable
    - `deleteLink` string, nullable
    - `mgeProdGrpPagelink` string, nullable
    - `isReadOnlyAccess` string, nullable
    - `MSSPID` string, nullable
    - `msspScope` string, nullable
    - `scopedMSSPID` string, nullable
    - `orgID` string, nullable
    - `isAffilated` string, nullable
    - `isAutoAffiliated` string, nullable
  - `showCreateUserGrplink` string, nullable
  - `showAddProductGrplink` string, nullable
  - `operationStatus` string, nullable
  - `msgCode` string, nullable
  - `msgId` string, nullable
  - `msgDesc` string, nullable
  - `usersCount` string, nullable
  - `defaultTenantId` string, nullable
  - `userGroupsCount` string, nullable
  - `isRestrictedMSSPAccess` string, nullable

---

[API](https://skmtc.dev/mysonicwall/apis/restapi-core-v1.md) · [All operations](https://skmtc.dev/mysonicwall/apis/restapi-core-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mysonicwall/restapi-core-v1/revisions/ddffed195eba/schema)
