# Group_Data_Access::ensure_author_is_admin()

Make a group's author its admin when the group has no admin yet.

Groups made through `create_group()` already get their creator as admin; groups created any other way (REST, the post
editor, imports, third-party code) would otherwise have no admin at all. The repair is idempotent: it never demotes
anyone, never overrides an existing admin, and skips banned authors.

```php
ensure_author_is_admin( int $group_id ): bool
```

## Parameters

- `$group_id` (int) Group post ID.

## Return

`bool` True when the author was promoted.
