GET api/usergroups/{userGroupId}/users

Gets the Users of a specific UserGroup.



Request Information

URI Parameters

NameDescriptionTypeAdditional information
userGroupId

The id of the UserGroup.

integer

Required



Body Parameters

None.



Response Information

Resource Description

The requested Users of the UserGroup, represented as a collection of ReadUserContextViewModels.

Collection of ReadUserContextViewModel

NameDescriptionTypeAdditional information
ContextType

UserContextType

None.

Organization

ReadOrganizationViewModel

None.

UserId

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ContextType": 1,
    "Organization": {
      "Id": 1,
      "Name": "sample string 2",
      "Users": null
    },
    "UserId": "66952847-ced1-4d79-99f9-4155701f1324"
  },
  {
    "ContextType": 1,
    "Organization": {
      "Id": 1,
      "Name": "sample string 2",
      "Users": null
    },
    "UserId": "66952847-ced1-4d79-99f9-4155701f1324"
  }
]

application/xml, text/xml

Sample:
<ArrayOfReadUserContextViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VobeSoft.Models.ViewModels">
  <ReadUserContextViewModel>
    <ContextType>Organization</ContextType>
    <Organization>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <Users i:nil="true" />
    </Organization>
    <UserId>66952847-ced1-4d79-99f9-4155701f1324</UserId>
  </ReadUserContextViewModel>
  <ReadUserContextViewModel>
    <ContextType>Organization</ContextType>
    <Organization>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <Users i:nil="true" />
    </Organization>
    <UserId>66952847-ced1-4d79-99f9-4155701f1324</UserId>
  </ReadUserContextViewModel>
</ArrayOfReadUserContextViewModel>