[{"label":"Latest (V1)","version":"latest"}]
horizon-cloud-nextgen

Get Groups By User ID

Description

Fetches list of groups user is part of

Request

Request

URL

URL


get
https://cloud.vmwarehorizon.com/auth/v1/admin/user/{userId}/groups
Copy

Path Parameters

Path Parameters

string
userId Required

userId


Query Parameters

Query Parameters

string
org_id Optional

org_id


Authentication

Authentication

This operation uses the following authentication methods.

Response

Response

Response Body

Response Body

200 OK returns GroupsResponse of type */*
{
	"groups": [
		{
			"displayName": "aduser1",
			"id": "id-12345",
			"onPremisesDomainName": "horizonv2.local",
			"onPremisesSecurityIdentifier": "S-1-5-21-2502306595",
			"securityIdentifier": "S-1-12-1-2011878264"
		}
	],
	"nextLink": "string"
}
array of Group
groups Optional

List of user groups


string
nextLink Optional

Link to the next page of user groups when pagination is used

No error details were provided in the OpenAPI specification.

Code Samples

Code Samples

cURL Command

curl https://cloud.vmwarehorizon.com/auth/v1/admin/user/{userId}/groups


Feedback

Was this page helpful?