# Feed_Permissions::viewer_group_ids()

Groups the user belongs to and may still read (the sources of their home feed's group posts).

```php
viewer_group_ids( int $user_id ): array
```

## Parameters

- `$user_id` (int) User ID.

## Return

`int[]` Group post IDs (at most 200).
