---
title: groups()
framework: addressbook
role: symbol
role_heading: Instance Method
path: addressbook/abaddressbook/groups()
---

# groups()

Returns an array of all the groups in the Address Book database.

## Declaration

```swift
func groups() -> [Any]!
```

## Return Value

Return Value An array of all the groups in the Address Book database.

## Discussion

Discussion If the database doesn’t contain any groups, this method returns an empty array.

## See Also

### Retrieving Groups and People

- [people()](addressbook/abaddressbook/people().md)
