Add only the users of a group that are active to an issue as watchers. In this use case, the group will be jira-administrators.
Choose Current issue
Choose the New watchers field.
Choose Set field value manually
Use the following expression with the expression editor in Advanced text mode.
toString(filterByPredicate(usersInGroup("jira-administrators"), isActive(^%)))
This expression will return all of the active users in the jira-administrators group.
Update or copy field values