Added an isActive flag to the sys admin query.

Fixed #905