Chilkat Online Tools

unicodeC / Salesforce Platform APIs / List of Groups - POST

Back to Collection Items

#include <C_CkHttpW.h>
#include <C_CkHttpResponseW.h>
#include <C_CkStringBuilderW.h>
#include <C_CkJsonObjectW.h>

void ChilkatSample(void)
    {
    HCkHttpW http;
    BOOL success;
    HCkHttpResponseW resp;
    HCkStringBuilderW sbResponseBody;
    HCkJsonObjectW jResp;
    int respStatusCode;
    const wchar_t *additionalLabel;
    const wchar_t *announcement;
    const wchar_t *BannerPhotoUrl;
    const wchar_t *BannerPhotoVersionId;
    const wchar_t *v_Url;
    BOOL canHaveChatterGuests;
    const wchar_t *community;
    const wchar_t *description;
    const wchar_t *emailToChatterAddress;
    int fileCount;
    const wchar_t *id;
    const wchar_t *Text;
    const wchar_t *Title;
    BOOL isArchived;
    BOOL isAutoArchiveDisabled;
    BOOL isBroadcast;
    const wchar_t *lastFeedElementPostDate;
    int memberCount;
    const wchar_t *Color;
    const wchar_t *LargeIconUrl;
    const wchar_t *MediumIconUrl;
    const wchar_t *SmallIconUrl;
    const wchar_t *SvgIconUrl;
    const wchar_t *myRole;
    const wchar_t *Id;
    const wchar_t *mySubscriptionUrl;
    const wchar_t *name;
    const wchar_t *AdditionalLabel;
    const wchar_t *CommunityNickname;
    const wchar_t *CompanyName;
    const wchar_t *DisplayName;
    const wchar_t *FirstName;
    const wchar_t *ownerId;
    BOOL IsActive;
    BOOL IsInThisCommunity;
    const wchar_t *LastName;
    const wchar_t *MotifColor;
    const wchar_t *MotifLargeIconUrl;
    const wchar_t *MotifMediumIconUrl;
    const wchar_t *MotifSmallIconUrl;
    const wchar_t *MotifSvgIconUrl;
    const wchar_t *MySubscription;
    const wchar_t *Name;
    const wchar_t *Message;
    const wchar_t *FullEmailPhotoUrl;
    const wchar_t *LargePhotoUrl;
    const wchar_t *MediumPhotoUrl;
    const wchar_t *PhotoVersionId;
    const wchar_t *SmallPhotoUrl;
    const wchar_t *StandardEmailPhotoUrl;
    const wchar_t *PhotoUrl;
    const wchar_t *Reputation;
    const wchar_t *ownerTitle;
    const wchar_t *v_Type;
    const wchar_t *ownerUrl;
    const wchar_t *UserType;
    int pendingRequests;
    const wchar_t *photoFullEmailPhotoUrl;
    const wchar_t *photoLargePhotoUrl;
    const wchar_t *photoMediumPhotoUrl;
    const wchar_t *photoPhotoVersionId;
    const wchar_t *photoSmallPhotoUrl;
    const wchar_t *photoStandardEmailPhotoUrl;
    const wchar_t *photoUrl;
    const wchar_t *v_type;
    const wchar_t *url;
    const wchar_t *visibility;

    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    http = CkHttpW_Create();

    // Adds the "Authorization: Bearer <access_token>" header.
    CkHttpW_putAuthToken(http,L"<access_token>");

    resp = CkHttpW_QuickRequest(http,L"POST",L"=true");
    if (CkHttpW_getLastMethodSuccess(http) == FALSE) {
        wprintf(L"%s\n",CkHttpW_lastErrorText(http));
        CkHttpW_Dispose(http);
        return;
    }

    sbResponseBody = CkStringBuilderW_Create();
    CkHttpResponseW_GetBodySb(resp,sbResponseBody);

    jResp = CkJsonObjectW_Create();
    CkJsonObjectW_LoadSb(jResp,sbResponseBody);
    CkJsonObjectW_putEmitCompact(jResp,FALSE);

    wprintf(L"Response Body:\n");
    wprintf(L"%s\n",CkJsonObjectW_emit(jResp));

    respStatusCode = CkHttpResponseW_getStatusCode(resp);
    wprintf(L"Response Status Code = %d\n",respStatusCode);
    if (respStatusCode >= 400) {
        wprintf(L"Response Header:\n");
        wprintf(L"%s\n",CkHttpResponseW_header(resp));
        wprintf(L"Failed.\n");
        CkHttpResponseW_Dispose(resp);
        CkHttpW_Dispose(http);
        CkStringBuilderW_Dispose(sbResponseBody);
        CkJsonObjectW_Dispose(jResp);
        return;
    }

    CkHttpResponseW_Dispose(resp);

    // Sample JSON response:
    // (Sample code for parsing the JSON response is shown below)

    // {
    //   "additionalLabel": "Private With Customers",
    //   "announcement": null,
    //   "bannerPhoto": {
    //     "bannerPhotoUrl": "https://<my_domain>/profilephoto/0F9/B",
    //     "bannerPhotoVersionId": null,
    //     "url": "/services/data/v58.0/chatter/groups/0F9.../banner-photo"
    //   },
    //   "canHaveChatterGuests": true,
    //   "community": null,
    //   "description": "Created via API",
    //   "emailToChatterAddress": "0F9...@post.2o-i6mbeaq.eu25.chatter.salesforce.com",
    //   "fileCount": 0,
    //   "id": "0F9...",
    //   "information": {
    //     "text": null,
    //     "title": null
    //   },
    //   "isArchived": false,
    //   "isAutoArchiveDisabled": false,
    //   "isBroadcast": false,
    //   "lastFeedElementPostDate": "2023-11-22T11:29:05.000Z",
    //   "memberCount": 1,
    //   "motif": {
    //     "color": "1B96FF",
    //     "largeIconUrl": "/img/icon/groups64.png",
    //     "mediumIconUrl": "/img/icon/groups32.png",
    //     "smallIconUrl": "/img/icon/groups16.png",
    //     "svgIconUrl": null
    //   },
    //   "myRole": "GroupOwner",
    //   "mySubscription": {
    //     "id": "0FB...",
    //     "url": "/services/data/v58.0/chatter/group-memberships/0FB..."
    //   },
    //   "name": "New Chatter Group  (Private Access)",
    //   "owner": {
    //     "additionalLabel": null,
    //     "communityNickname": "User1696423780773910041",
    //     "companyName": "Salesforce",
    //     "displayName": "Name",
    //     "firstName": "Firstname",
    //     "id": "005...",
    //     "isActive": true,
    //     "isInThisCommunity": true,
    //     "lastName": "Name",
    //     "motif": {
    //       "color": "1B96FF",
    //       "largeIconUrl": "/img/icon/profile64.png",
    //       "mediumIconUrl": "/img/icon/profile32.png",
    //       "smallIconUrl": "/img/icon/profile16.png",
    //       "svgIconUrl": null
    //     },
    //     "mySubscription": null,
    //     "name": "Name",
    //     "outOfOffice": {
    //       "message": ""
    //     },
    //     "photo": {
    //       "fullEmailPhotoUrl": "https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0IogXzXAXaYKJnuWCNQmXymRq?fromEmail=1",
    //       "largePhotoUrl": "https://<my_domain>/profilephoto/729.../F",
    //       "mediumPhotoUrl": "https://<my_domain>/profilephoto/729.../M",
    //       "photoVersionId": "729...",
    //       "smallPhotoUrl": "https://<my_domain>/profilephoto/729.../T",
    //       "standardEmailPhotoUrl": "https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0Ioi-dtynkoFWsl46as__TDFU?fromEmail=1",
    //       "url": "/services/data/v58.0/connect/user-profiles/005.../photo"
    //     },
    //     "reputation": null,
    //     "title": null,
    //     "type": "User",
    //     "url": "/services/data/v58.0/chatter/users/005...",
    //     "userType": "Internal"
    //   },
    //   "pendingRequests": 0,
    //   "photo": {
    //     "fullEmailPhotoUrl": "https://<my_domain>/img/userprofile/default_group_profile_200_v2.png?fromEmail=1",
    //     "largePhotoUrl": "https://<my_domain>/profilephoto/0F9/F",
    //     "mediumPhotoUrl": "https://<my_domain>/profilephoto/0F9/M",
    //     "photoVersionId": null,
    //     "smallPhotoUrl": "https://<my_domain>/profilephoto/0F9/T",
    //     "standardEmailPhotoUrl": "https://<my_domain>/img/userprofile/default_group_profile_45_v2.png?fromEmail=1",
    //     "url": "/services/data/v58.0/chatter/groups/0F9.../photo"
    //   },
    //   "type": "CollaborationGroup",
    //   "url": "/services/data/v58.0/chatter/groups/0F9...",
    //   "visibility": "PrivateAccess"
    // }

    // Sample code for parsing the JSON response...
    // Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

    // Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.

    additionalLabel = CkJsonObjectW_stringOf(jResp,L"additionalLabel");
    announcement = CkJsonObjectW_stringOf(jResp,L"announcement");
    BannerPhotoUrl = CkJsonObjectW_stringOf(jResp,L"bannerPhoto.bannerPhotoUrl");
    BannerPhotoVersionId = CkJsonObjectW_stringOf(jResp,L"bannerPhoto.bannerPhotoVersionId");
    v_Url = CkJsonObjectW_stringOf(jResp,L"bannerPhoto.url");
    canHaveChatterGuests = CkJsonObjectW_BoolOf(jResp,L"canHaveChatterGuests");
    community = CkJsonObjectW_stringOf(jResp,L"community");
    description = CkJsonObjectW_stringOf(jResp,L"description");
    emailToChatterAddress = CkJsonObjectW_stringOf(jResp,L"emailToChatterAddress");
    fileCount = CkJsonObjectW_IntOf(jResp,L"fileCount");
    id = CkJsonObjectW_stringOf(jResp,L"id");
    Text = CkJsonObjectW_stringOf(jResp,L"information.text");
    Title = CkJsonObjectW_stringOf(jResp,L"information.title");
    isArchived = CkJsonObjectW_BoolOf(jResp,L"isArchived");
    isAutoArchiveDisabled = CkJsonObjectW_BoolOf(jResp,L"isAutoArchiveDisabled");
    isBroadcast = CkJsonObjectW_BoolOf(jResp,L"isBroadcast");
    lastFeedElementPostDate = CkJsonObjectW_stringOf(jResp,L"lastFeedElementPostDate");
    memberCount = CkJsonObjectW_IntOf(jResp,L"memberCount");
    Color = CkJsonObjectW_stringOf(jResp,L"motif.color");
    LargeIconUrl = CkJsonObjectW_stringOf(jResp,L"motif.largeIconUrl");
    MediumIconUrl = CkJsonObjectW_stringOf(jResp,L"motif.mediumIconUrl");
    SmallIconUrl = CkJsonObjectW_stringOf(jResp,L"motif.smallIconUrl");
    SvgIconUrl = CkJsonObjectW_stringOf(jResp,L"motif.svgIconUrl");
    myRole = CkJsonObjectW_stringOf(jResp,L"myRole");
    Id = CkJsonObjectW_stringOf(jResp,L"mySubscription.id");
    mySubscriptionUrl = CkJsonObjectW_stringOf(jResp,L"mySubscription.url");
    name = CkJsonObjectW_stringOf(jResp,L"name");
    AdditionalLabel = CkJsonObjectW_stringOf(jResp,L"owner.additionalLabel");
    CommunityNickname = CkJsonObjectW_stringOf(jResp,L"owner.communityNickname");
    CompanyName = CkJsonObjectW_stringOf(jResp,L"owner.companyName");
    DisplayName = CkJsonObjectW_stringOf(jResp,L"owner.displayName");
    FirstName = CkJsonObjectW_stringOf(jResp,L"owner.firstName");
    ownerId = CkJsonObjectW_stringOf(jResp,L"owner.id");
    IsActive = CkJsonObjectW_BoolOf(jResp,L"owner.isActive");
    IsInThisCommunity = CkJsonObjectW_BoolOf(jResp,L"owner.isInThisCommunity");
    LastName = CkJsonObjectW_stringOf(jResp,L"owner.lastName");
    MotifColor = CkJsonObjectW_stringOf(jResp,L"owner.motif.color");
    MotifLargeIconUrl = CkJsonObjectW_stringOf(jResp,L"owner.motif.largeIconUrl");
    MotifMediumIconUrl = CkJsonObjectW_stringOf(jResp,L"owner.motif.mediumIconUrl");
    MotifSmallIconUrl = CkJsonObjectW_stringOf(jResp,L"owner.motif.smallIconUrl");
    MotifSvgIconUrl = CkJsonObjectW_stringOf(jResp,L"owner.motif.svgIconUrl");
    MySubscription = CkJsonObjectW_stringOf(jResp,L"owner.mySubscription");
    Name = CkJsonObjectW_stringOf(jResp,L"owner.name");
    Message = CkJsonObjectW_stringOf(jResp,L"owner.outOfOffice.message");
    FullEmailPhotoUrl = CkJsonObjectW_stringOf(jResp,L"owner.photo.fullEmailPhotoUrl");
    LargePhotoUrl = CkJsonObjectW_stringOf(jResp,L"owner.photo.largePhotoUrl");
    MediumPhotoUrl = CkJsonObjectW_stringOf(jResp,L"owner.photo.mediumPhotoUrl");
    PhotoVersionId = CkJsonObjectW_stringOf(jResp,L"owner.photo.photoVersionId");
    SmallPhotoUrl = CkJsonObjectW_stringOf(jResp,L"owner.photo.smallPhotoUrl");
    StandardEmailPhotoUrl = CkJsonObjectW_stringOf(jResp,L"owner.photo.standardEmailPhotoUrl");
    PhotoUrl = CkJsonObjectW_stringOf(jResp,L"owner.photo.url");
    Reputation = CkJsonObjectW_stringOf(jResp,L"owner.reputation");
    ownerTitle = CkJsonObjectW_stringOf(jResp,L"owner.title");
    v_Type = CkJsonObjectW_stringOf(jResp,L"owner.type");
    ownerUrl = CkJsonObjectW_stringOf(jResp,L"owner.url");
    UserType = CkJsonObjectW_stringOf(jResp,L"owner.userType");
    pendingRequests = CkJsonObjectW_IntOf(jResp,L"pendingRequests");
    photoFullEmailPhotoUrl = CkJsonObjectW_stringOf(jResp,L"photo.fullEmailPhotoUrl");
    photoLargePhotoUrl = CkJsonObjectW_stringOf(jResp,L"photo.largePhotoUrl");
    photoMediumPhotoUrl = CkJsonObjectW_stringOf(jResp,L"photo.mediumPhotoUrl");
    photoPhotoVersionId = CkJsonObjectW_stringOf(jResp,L"photo.photoVersionId");
    photoSmallPhotoUrl = CkJsonObjectW_stringOf(jResp,L"photo.smallPhotoUrl");
    photoStandardEmailPhotoUrl = CkJsonObjectW_stringOf(jResp,L"photo.standardEmailPhotoUrl");
    photoUrl = CkJsonObjectW_stringOf(jResp,L"photo.url");
    v_type = CkJsonObjectW_stringOf(jResp,L"type");
    url = CkJsonObjectW_stringOf(jResp,L"url");
    visibility = CkJsonObjectW_stringOf(jResp,L"visibility");


    CkHttpW_Dispose(http);
    CkStringBuilderW_Dispose(sbResponseBody);
    CkJsonObjectW_Dispose(jResp);

    }

Curl Command

curl -X POST
	-H "Authorization: Bearer <access_token>"
https://domain.com/services/data/v{{version}}/chatter/groups?name=New Chatter Group  (Private Access)&visibility=PrivateAccess&description=Created via API&information=Private Information&isArchived=false&isAutoArchiveDisabled=false&isBroadcast=false&canHaveChatterGuests	=true

Postman Collection Item JSON

{
  "name": "List of Groups - POST",
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "exec": [
          ""
        ],
        "type": "text/javascript"
      }
    },
    {
      "listen": "test",
      "script": {
        "exec": [
          ""
        ],
        "type": "text/javascript"
      }
    }
  ],
  "protocolProfileBehavior": {
    "disabledSystemHeaders": {}
  },
  "request": {
    "method": "POST",
    "header": [
    ],
    "url": {
      "raw": "{{_endpoint}}/services/data/v{{version}}/chatter/groups?name=New Chatter Group  (Private Access)&visibility=PrivateAccess&description=Created via API&information=Private Information&isArchived=false&isAutoArchiveDisabled=false&isBroadcast=false&canHaveChatterGuests\t=true",
      "host": [
        "{{_endpoint}}"
      ],
      "path": [
        "services",
        "data",
        "v{{version}}",
        "chatter",
        "groups"
      ],
      "query": [
        {
          "key": "name",
          "value": "New Chatter Group  (Private Access)"
        },
        {
          "key": "visibility",
          "value": "PrivateAccess",
          "description": "PrivateAccess—Only members of the group can see posts to this group.\nPublicAccess—All users within the community can see posts to this group.\nUnlisted—Reserved for future use."
        },
        {
          "key": "description",
          "value": "Created via API"
        },
        {
          "key": "information",
          "value": "Private Information",
          "description": "If the group is private, the “Information” section is visible only to members."
        },
        {
          "key": "isArchived",
          "value": "false"
        },
        {
          "key": "isAutoArchiveDisabled",
          "value": "false",
          "description": "true if automatic archiving is turned off for the group, false otherwise. Defaults to false. If true, if there are no posts or comments for 90 days the group is archived."
        },
        {
          "key": "isBroadcast",
          "value": "false",
          "description": "true if only group owners and managers can create posts in the group, false otherwise."
        },
        {
          "key": "canHaveChatterGuests\t",
          "value": "true",
          "description": "true if this group allows Chatter customers, false otherwise. After this property is set to true, it cannot be set to false."
        }
      ]
    },
    "description": "A list of all the groups in the organization. Get information about groups or create a group.\n\nhttps://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/connect_resources_groups_ListOfGroups.htm"
  },
  "response": [
    {
      "name": "Successful List of Groups - POST",
      "originalRequest": {
        "method": "POST",
        "header": [
        ],
        "url": {
          "raw": "{{_endpoint}}/services/data/v{{version}}/chatter/groups?name=New Chatter Group  (Private Access)&visibility=PrivateAccess&description=Created via API&information=Private Information&isArchived=false&isAutoArchiveDisabled=false&isBroadcast=false&canHaveChatterGuests\t=true",
          "host": [
            "{{_endpoint}}"
          ],
          "path": [
            "services",
            "data",
            "v{{version}}",
            "chatter",
            "groups"
          ],
          "query": [
            {
              "key": "name",
              "value": "New Chatter Group  (Private Access)"
            },
            {
              "key": "visibility",
              "value": "PrivateAccess",
              "description": "PrivateAccess—Only members of the group can see posts to this group.\nPublicAccess—All users within the community can see posts to this group.\nUnlisted—Reserved for future use."
            },
            {
              "key": "description",
              "value": "Created via API"
            },
            {
              "key": "information",
              "value": "Private Information",
              "description": "If the group is private, the “Information” section is visible only to members."
            },
            {
              "key": "isArchived",
              "value": "false"
            },
            {
              "key": "isAutoArchiveDisabled",
              "value": "false",
              "description": "true if automatic archiving is turned off for the group, false otherwise. Defaults to false. If true, if there are no posts or comments for 90 days the group is archived."
            },
            {
              "key": "isBroadcast",
              "value": "false",
              "description": "true if only group owners and managers can create posts in the group, false otherwise."
            },
            {
              "key": "canHaveChatterGuests\t",
              "value": "true",
              "description": "true if this group allows Chatter customers, false otherwise. After this property is set to true, it cannot be set to false."
            }
          ]
        }
      },
      "status": "Created",
      "code": 201,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Date",
          "value": "Wed, 22 Nov 2023 11:29:04 GMT"
        },
        {
          "key": "Strict-Transport-Security",
          "value": "max-age=63072000; includeSubDomains"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "X-Robots-Tag",
          "value": "none"
        },
        {
          "key": "Cache-Control",
          "value": "no-cache,must-revalidate,max-age=0,no-store,private"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=UTF-8"
        },
        {
          "key": "Vary",
          "value": "Accept-Encoding"
        },
        {
          "key": "Content-Encoding",
          "value": "gzip"
        },
        {
          "key": "Transfer-Encoding",
          "value": "chunked"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"additionalLabel\": \"Private With Customers\",\n    \"announcement\": null,\n    \"bannerPhoto\": {\n        \"bannerPhotoUrl\": \"https://<my_domain>/profilephoto/0F9/B\",\n        \"bannerPhotoVersionId\": null,\n        \"url\": \"/services/data/v58.0/chatter/groups/0F9.../banner-photo\"\n    },\n    \"canHaveChatterGuests\": true,\n    \"community\": null,\n    \"description\": \"Created via API\",\n    \"emailToChatterAddress\": \"0F9...@post.2o-i6mbeaq.eu25.chatter.salesforce.com\",\n    \"fileCount\": 0,\n    \"id\": \"0F9...\",\n    \"information\": {\n        \"text\": null,\n        \"title\": null\n    },\n    \"isArchived\": false,\n    \"isAutoArchiveDisabled\": false,\n    \"isBroadcast\": false,\n    \"lastFeedElementPostDate\": \"2023-11-22T11:29:05.000Z\",\n    \"memberCount\": 1,\n    \"motif\": {\n        \"color\": \"1B96FF\",\n        \"largeIconUrl\": \"/img/icon/groups64.png\",\n        \"mediumIconUrl\": \"/img/icon/groups32.png\",\n        \"smallIconUrl\": \"/img/icon/groups16.png\",\n        \"svgIconUrl\": null\n    },\n    \"myRole\": \"GroupOwner\",\n    \"mySubscription\": {\n        \"id\": \"0FB...\",\n        \"url\": \"/services/data/v58.0/chatter/group-memberships/0FB...\"\n    },\n    \"name\": \"New Chatter Group  (Private Access)\",\n    \"owner\": {\n        \"additionalLabel\": null,\n        \"communityNickname\": \"User1696423780773910041\",\n        \"companyName\": \"Salesforce\",\n        \"displayName\": \"Name\",\n        \"firstName\": \"Firstname\",\n        \"id\": \"005...\",\n        \"isActive\": true,\n        \"isInThisCommunity\": true,\n        \"lastName\": \"Name\",\n        \"motif\": {\n            \"color\": \"1B96FF\",\n            \"largeIconUrl\": \"/img/icon/profile64.png\",\n            \"mediumIconUrl\": \"/img/icon/profile32.png\",\n            \"smallIconUrl\": \"/img/icon/profile16.png\",\n            \"svgIconUrl\": null\n        },\n        \"mySubscription\": null,\n        \"name\": \"Name\",\n        \"outOfOffice\": {\n            \"message\": \"\"\n        },\n        \"photo\": {\n            \"fullEmailPhotoUrl\": \"https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0IogXzXAXaYKJnuWCNQmXymRq?fromEmail=1\",\n            \"largePhotoUrl\": \"https://<my_domain>/profilephoto/729.../F\",\n            \"mediumPhotoUrl\": \"https://<my_domain>/profilephoto/729.../M\",\n            \"photoVersionId\": \"729...\",\n            \"smallPhotoUrl\": \"https://<my_domain>/profilephoto/729.../T\",\n            \"standardEmailPhotoUrl\": \"https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0Ioi-dtynkoFWsl46as__TDFU?fromEmail=1\",\n            \"url\": \"/services/data/v58.0/connect/user-profiles/005.../photo\"\n        },\n        \"reputation\": null,\n        \"title\": null,\n        \"type\": \"User\",\n        \"url\": \"/services/data/v58.0/chatter/users/005...\",\n        \"userType\": \"Internal\"\n    },\n    \"pendingRequests\": 0,\n    \"photo\": {\n        \"fullEmailPhotoUrl\": \"https://<my_domain>/img/userprofile/default_group_profile_200_v2.png?fromEmail=1\",\n        \"largePhotoUrl\": \"https://<my_domain>/profilephoto/0F9/F\",\n        \"mediumPhotoUrl\": \"https://<my_domain>/profilephoto/0F9/M\",\n        \"photoVersionId\": null,\n        \"smallPhotoUrl\": \"https://<my_domain>/profilephoto/0F9/T\",\n        \"standardEmailPhotoUrl\": \"https://<my_domain>/img/userprofile/default_group_profile_45_v2.png?fromEmail=1\",\n        \"url\": \"/services/data/v58.0/chatter/groups/0F9.../photo\"\n    },\n    \"type\": \"CollaborationGroup\",\n    \"url\": \"/services/data/v58.0/chatter/groups/0F9...\",\n    \"visibility\": \"PrivateAccess\"\n}"
    }
  ]
}