---
title: "Aspose::Email::Clients::Google::IGmailClient::GetContactsFromGroup method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.google/igmailclient/getcontactsfromgroup/"
product: "Aspose.Email for C++"
description: "Fetches contacts belonging to the group specified."
---


## GetContactsFromGroup {#getcontactsfromgroup}

Fetches contacts belonging to the group specified.

**Returns:** Contacts array

```cpp
GetContactsFromGroup(System::String groupId)
```

| Parameter | Description |
| --- | --- |
| groupId | string that represents group id for a contact |

