Introduce defined_user and defined_group type

Introduce a type that checks if it is a user or group is known by the accounts component.