---
title: "UserGroupsByUserId (Nextcloud)"
description: "itgen_ncl_usergroupsbyuserid_plural"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/nextcloud/ProvisioningApi.ProvisioningApi.UserGroupsByUserId
original: https://documentation.invantive.eu/en/datamodels/nextcloud/ProvisioningApi.ProvisioningApi.UserGroupsByUserId
updated: 2026-11-10T15:26:07Z
license: https://documentation.invantive.eu/en/
---

# UserGroupsByUserId: Nextcloud itgen_ncl_usergroupsbyuserid_plural

`read only` `REST`

- Catalog: `ProvisioningApi`
- Schema: `ProvisioningApi`
- Label: itgen_ncl_usergroupsbyuserid_plural

Get a list of groups with details

Can only retrieve data.

## API Source

- Endpoint: `/ocs/v2.php/cloud/users/{userId}/groups/details`
- Operation: `get /ocs/v2.php/cloud/users/{userId}/groups/details`

## Performance Characteristics

| Characteristic | Value |
|---|---:|
| Average access latency (ms) | 310 |
| Full scan rows per minute | 360 |

The result can be cached on the client.

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `userId` | `` | [x] |  | ID of the user |

## Table Columns

The columns of the table `UserGroupsByUserId` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `canAdd` | `char` | itgen_ncl_canadd | [ ] | filters on the platform, writable, `canAdd` |  |
| `canRemove` | `char` | itgen_ncl_canremove | [ ] | filters on the platform, writable, `canRemove` |  |
| `disabled` | `char` | itgen_ncl_disabled | [ ] | filters on the platform, writable, `disabled` |  |
| `displayname` | `varchar2` | itgen_ncl_displayname | [ ] | filters on the platform, writable, `displayname` |  |
| `id` | `varchar2` | itgen_ncl_id | [ ] | filters on the platform, writable, `id` |  |
| `usercount` | `char` | itgen_ncl_usercount | [ ] | filters on the platform, writable, `usercount` |  |

