GET api/v{version}/security/users/{username}/groups

Gets the groups that a user is a member of

Request Information

URI Parameters

NameDescriptionTypeAdditional information
username

The username of the user

string

Required

version

The requested API version

string

Required

Default value is 2.0

Body Parameters

None.

Response Information

Resource Description

The groups that the user is a member of

Collection of string

Response Formats

application/json, text/json, application/problem+json

Sample:
[
  "sample string 1",
  "sample string 2"
]

application/xml, text/xml

Sample:
<ArrayOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <string>sample string 1</string>
  <string>sample string 2</string>
</ArrayOfstring>