Verint | Telligent Community
Verint | Telligent Community
  • Site
  • User
  • Site
  • Search
  • User
Verint Community 11.x
  • Verint Community
Verint Community 11.x
API Documentation List Group REST Endpoint
  • User Documentation
  • Ask the Community
  • API Documentation
  • Manager Training
  • Developer Training
  • Tags
  • More
  • Cancel
  • New
  • API Documentation
  • +In-Process API Documentation
  • +Plugin API Documentation
  • -REST API Documentation
    • +Abuse Appeal REST Endpoints
    • +Abuse Report REST Endpoints
    • +Abusive Content REST Endpoints
    • +Achievement REST Endpoints
    • +Activity Story REST Endpoints
    • +Activity Story Site Preference REST Endpoints
    • +Activity Story Types REST Endpoints
    • +Activity Story User Preference REST Endpoints
    • +Aggregate Tagged Content REST Endpoints
    • +Aggregate Tags REST Endpoints
    • +Application Subscriptions REST Endpoints
    • +Batching REST Endpoints
    • +Blog Contact Request REST Endpoints
    • +Blog Post REST Endpoints
    • +Blog Post Subscription REST Endpoints
    • +Blog Post Summary REST Endpoints
    • +Blog REST Endpoints
    • +Bookmark REST Endpoints
    • +Calendar REST Endpoints
    • +Cfs REST Endpoints
    • +Challenge REST Endpoints
    • +Comment REST Endpoints
    • +Comment Summary REST Endpoints
    • +Comment Vote REST Endpoints
    • +Content Conversion REST Endpoints
    • +Content Presence REST Endpoints
    • +Content Presence Summary REST Endpoints
    • +Content Recommendation REST Endpoints
    • +Content REST Endpoints
    • +Content Subscriptions REST Endpoints
    • +Content Tags REST Endpoints
    • +Content View REST Endpoints
    • +Conversation Message REST Endpoints
    • +Conversation REST Endpoints
    • +Conversion Target Applications REST Endpoints
    • +Conversion Target Content Types REST Endpoints
    • +Endpoint REST Endpoints
    • +Event Log REST Endpoints
    • +Events REST Endpoints
    • +Feature (v3) REST Endpoints
    • +Feature REST Endpoints
    • +Follower REST Endpoints
    • +Following REST Endpoints
    • +Follows REST Endpoints
    • +Forum Reply REST Endpoints
    • +Forum Reply Vote REST Endpoints
    • +Forum Reply Votes REST Endpoints
    • +Forum REST Endpoints
    • +Forum Thread REST Endpoints
    • +Forum Thread Votes REST Endpoints
    • +Friendship REST Endpoints
    • +Gallery REST Endpoints
    • +Generic Content REST Endpoints
    • +Geocoding REST Endpoints
    • +Group Author Quality Score REST Endpoints
    • +Group Avatar REST Endpoints
    • +Group Contact Request REST Endpoints
    • -Group REST Endpoints
      • Create Group REST Endpoint
      • Delete Group REST Endpoint
      • List Group REST Endpoint
      • Show Group REST Endpoint
      • Update Group REST Endpoint
    • +Group User REST Endpoints
    • +Hash Tag REST Endpoints
    • +Html REST Endpoints
    • +Idea Category REST Endpoints
    • +Idea REST Endpoints
    • +Idea Status REST Endpoints
    • +Idea Vote (v3) REST Endpoints
    • +Idea Vote REST Endpoints
    • +Ignore Content Recommendation REST Endpoints
    • +Ignore User Recommendation REST Endpoints
    • +Info Result REST Endpoints
    • +Leaderboard REST Endpoints
    • +Like REST Endpoints
    • +Liked Item REST Endpoints
    • +Media REST Endpoints
    • +Media Subscription REST Endpoints
    • +Mention REST Endpoints
    • +Mentionable REST Endpoints
    • +Node Permission REST Endpoints
    • +Notification Category REST Endpoints
    • +Notification Distribution Types REST Endpoints
    • +Notification Preference REST Endpoints
    • +Notification REST Endpoints
    • +Notification Types REST Endpoints
    • +O Auth REST Endpoints
    • +Permission (v3) REST Endpoints
    • +Permission REST Endpoints
    • +Point Transaction REST Endpoints
    • +Poll Item REST Endpoints
    • +Poll Item Vote REST Endpoints
    • +Poll REST Endpoints
    • +Poll Vote REST Endpoints
    • +Rated Item REST Endpoints
    • +Rating REST Endpoints
    • +Remote Proxy Information REST Endpoints
    • +Remote URL Entity REST Endpoints
    • +Remote URL REST Endpoints
    • +Remote Widget API REST Endpoints
    • +Reply Message REST Endpoints
    • +Reviewable Content REST Endpoints
    • +Role REST Endpoints
    • +Scripting REST Endpoints
    • +Search Result REST Endpoints
    • +Service Presence REST Endpoints
    • +Service Presence Summary REST Endpoints
    • +Status Message REST Endpoints
    • +System Notification REST Endpoints
    • +Text REST Endpoints
    • +Threaded Comment Ancestors for a Comment REST Endpoints
    • +Threaded Comments For a Comment REST Endpoints
    • +Threaded Comments REST Endpoints
    • +Threaded Forum Replies for a Reply REST Endpoints
    • +Threaded Forum Replies REST Endpoints
    • +Threaded Forum Reply Ancestors for a Reply REST Endpoints
    • +Tour Tip REST Endpoints
    • +Ui REST Endpoints
    • +User Achievement REST Endpoints
    • +User Avatar REST Endpoints
    • +User Cover Photo REST Endpoints
    • +User Invitation REST Endpoints
    • +User Presence REST Endpoints
    • +User Profile Field REST Endpoints
    • +User Profile Field Types REST Endpoints
    • +User Recommendation REST Endpoints
    • +User REST Endpoints
    • +User Validation REST Endpoints
    • +User Vote Summary REST Endpoints
    • +Vote Summary REST Endpoints
    • +Webhook Event REST Endpoints
    • +Webhook REST Endpoints
    • +Wiki File REST Endpoints
    • +Wiki Page Comment Subscription REST Endpoints
    • +Wiki Page REST Endpoints
    • +Wiki Page Revision REST Endpoints
    • +Wiki Page Subscription REST Endpoints
    • +Wiki REST Endpoints
    • +Wiki Toc REST Endpoints
  • +Widget, Theme, and Automation APIs

List Group REST Endpoint


URLs

GET api.ashx/v2/groups.xml (or .json)

LIST groups.

GET api.ashx/v2/groups/{parentgroupid}/groups.xml (or .json)

LIST sub-groups for a group.

GET api.ashx/v2/users/{userid}/groups.xml (or .json)

LIST groups for which the user is any type of member by user id.

GET api.ashx/v2/users/{username}/groups.xml (or .json)

LIST groups for which the user is any type of member by username.

Request Parameters

NameTypeDescriptionRequiredDefaultOptions
UserIdint?User IdOptional
UsernamestringUsernameOptional
IncludePendingMembershipsbool?When getting groups for a user, include groups where user has PendingMembershipOptional
ParentGroupIdint?Setting a Parent Group Id returns just the child groups for the group.Optional
IncludeAllSubGroupsbool?Used when getting child groups, will return all subgroups recursively.Optional
GroupTypesstringValues include: Joinless, PublicOpen, PublicClosed, PrivateUnlisted, PrivateListed, or All.Optional
GroupNameFilterstringUsed to filter results by matching group name.Optional
ContainerIdsstringComma separated list of ContainerIds. Used to limit to a specific set of groups as well as sort order if SoryBy is set to ContainerIdsOrderOptional
PermissionstringUsed to only get groups where the specified permission is valid.Optional
SortBystringOptions include Name, SortOrder, LastUpdate, ContainerIdsOrder. Default is Name.Optional
SortOrderstringOptions include Ascending, Descending. Default is Ascending.Optional
PageSizeint?Specify the number of results to return per page. If not set the default is 20. The max is 100.Optional
PageIndexint?Specify the page number of paged results to return. Zero-based index. If not specified the default is 0.Optional

Example Requests

C# REST SDK

This example uses the REST SDK to access the Community REST API within a .Net C# application. In the example, USER_NAME is the user name of the effective user for the request and OAUTH_CLIENT_ID and OAUTH_SECRET are the OAuth client ID and secret, respectively, associated to this application as configured in Administration > Integration > OAuth Clients with the "Client Credentials" grant type enabled. See the documentation for the REST SDK for more details about installation, configuration, and usage options.

var host = new ClientCredentialsRestHost("USER_NAME", "https://mysite.com/", "OAUTH_CLIENT_ID", "OAUTH_SECRET");
var response = host.GetToDynamic(2, "groups.json", false);

Widget Javascript

This example uses the rest JavaScript API to access the Community REST API within the Community web UI. When accessing the REST API through the javascript API, the effective user is the current contextual user of the web interface.

jQuery.telligent.evolution.get({
	url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/groups.json',
	success: function(response) {

	}
});

cURL

This example uses the cURL command-line HTTP utility. ENCODED_TOKEN in the example is the base64-encoded concatenation of the user's API key (created from the user's profile), a colon (:), and the user's user name. Learn more about using the REST API.

curl -H "Rest-User-Token: ENCODED_TOKEN" -X GET https://mysite.com/api.ashx/v2/groups.xml

Example Responses

XML

<?xml version="1.0" encoding="utf-16"?>
<Response>
  <Info>
    <Message>string</Message>
    <Message>string</Message>
  </Info>
  <Warnings>
    <Message>string</Message>
    <Message>string</Message>
  </Warnings>
  <Errors>
    <Message>string</Message>
    <Message>string</Message>
  </Errors>
  <Groups PageSize="2" PageIndex="0" TotalCount="2">
    <Group>
      <Id>4</Id>
      <AvatarUrl>avatarurl</AvatarUrl>
      <DateCreated>2012-01-04T00:00:00</DateCreated>
      <Description>description</Description>
      <Key>key</Key>
      <Name>name</Name>
      <ParentGroupId>6</ParentGroupId>
      <Url>url</Url>
      <TotalMembers>25</TotalMembers>
      <HasGroups>true</HasGroups>
      <GroupCount>8</GroupCount>
      <GroupType>grouptype</GroupType>
      <EnableGroupMessages>true</EnableGroupMessages>
      <EnableContact>true</EnableContact>
      <SearchUniqueId>searchuniqueid</SearchUniqueId>
      <ExtendedAttributes>
        <key>value</key>
        <key>value</key>
      </ExtendedAttributes>
      <ContainerId>49fec544-6df7-4a82-872b-f8be586d5e9e</ContainerId>
      <Container>
        <ContainerId>9f5a6721-639d-4e1d-ab6a-ce63b7750f46</ContainerId>
        <ContainerTypeId>fe65240b-044c-4292-9946-f10e0361ecff</ContainerTypeId>
        <HtmlName>htmlname</HtmlName>
        <Url>url</Url>
        <AvatarUrl>avatarurl</AvatarUrl>
      </Container>
    </Group>
    <Group>
      <Id>52</Id>
      <AvatarUrl>avatarurl</AvatarUrl>
      <DateCreated>2012-05-02T00:00:00</DateCreated>
      <Description>description</Description>
      <Key>key</Key>
      <Name>name</Name>
      <ParentGroupId>7</ParentGroupId>
      <Url>url</Url>
      <TotalMembers>27</TotalMembers>
      <HasGroups>true</HasGroups>
      <GroupCount>32</GroupCount>
      <GroupType>grouptype</GroupType>
      <EnableGroupMessages>true</EnableGroupMessages>
      <EnableContact>true</EnableContact>
      <SearchUniqueId>searchuniqueid</SearchUniqueId>
      <ExtendedAttributes>
        <key>value</key>
        <key>value</key>
      </ExtendedAttributes>
      <ContainerId>2d525bad-c4df-470d-a193-a1c6d66e5c3e</ContainerId>
      <Container>
        <ContainerId>bd519379-b61f-4e2f-b0f9-c0f28c5cceb1</ContainerId>
        <ContainerTypeId>9ba1ec43-dc34-4e27-a579-4a0855144e2f</ContainerTypeId>
        <HtmlName>htmlname</HtmlName>
        <Url>url</Url>
        <AvatarUrl>avatarurl</AvatarUrl>
      </Container>
    </Group>
  </Groups>
</Response>

JSON

{
  "PageSize": 2,
  "PageIndex": 0,
  "TotalCount": 2,
  "Groups": [
    {
      "AvatarUrl": "avatarurl",
      "DateCreated": "2012-01-04T00:00:00",
      "Description": "description",
      "Key": "key",
      "Name": "name",
      "ParentGroupId": 6,
      "Url": "url",
      "TotalMembers": 25,
      "HasGroups": true,
      "GroupCount": 8,
      "GroupType": "grouptype",
      "EnableGroupMessages": true,
      "EnableContact": true,
      "SearchUniqueId": "searchuniqueid",
      "IsEnabled": true,
      "ExtendedAttributes": [
        {
          "Key": "key",
          "Value": "value"
        },
        {
          "Key": "key",
          "Value": "value"
        }
      ],
      "ContainerId": "49fec544-6df7-4a82-872b-f8be586d5e9e",
      "ContainerTypeId": "23b05a61-c3e5-4451-90d9-bfa00453bce4",
      "Container": {
        "ContainerId": "9f5a6721-639d-4e1d-ab6a-ce63b7750f46",
        "ContainerTypeId": "fe65240b-044c-4292-9946-f10e0361ecff",
        "HtmlName": "htmlname",
        "Url": "url",
        "AvatarUrl": "avatarurl"
      },
      "Id": 4
    },
    {
      "AvatarUrl": "avatarurl",
      "DateCreated": "2012-05-02T00:00:00",
      "Description": "description",
      "Key": "key",
      "Name": "name",
      "ParentGroupId": 7,
      "Url": "url",
      "TotalMembers": 27,
      "HasGroups": true,
      "GroupCount": 32,
      "GroupType": "grouptype",
      "EnableGroupMessages": true,
      "EnableContact": true,
      "SearchUniqueId": "searchuniqueid",
      "IsEnabled": true,
      "ExtendedAttributes": [
        {
          "Key": "key",
          "Value": "value"
        },
        {
          "Key": "key",
          "Value": "value"
        }
      ],
      "ContainerId": "2d525bad-c4df-470d-a193-a1c6d66e5c3e",
      "ContainerTypeId": "23b05a61-c3e5-4451-90d9-bfa00453bce4",
      "Container": {
        "ContainerId": "bd519379-b61f-4e2f-b0f9-c0f28c5cceb1",
        "ContainerTypeId": "9ba1ec43-dc34-4e27-a579-4a0855144e2f",
        "HtmlName": "htmlname",
        "Url": "url",
        "AvatarUrl": "avatarurl"
      },
      "Id": 52
    }
  ],
  "Info": [
    "string",
    "string"
  ],
  "Warnings": [
    "string",
    "string"
  ],
  "Errors": [
    "string",
    "string"
  ]
}

  • Share
  • History
  • More
  • Cancel
Related
Recommended
  • Telligent
  • Professional Services
  • Submit a Support Ticket
  • Become a Partner
  • Request a Demo
  • Contact Us

About
Privacy Policy
Terms of use
Copyright 2024 Verint, Inc.
Powered by Verint Community