use query to find enum keys for users in factories