How is membership in a political party determined?

Membership in a political party usually depends on the individual holding viewpoints that are aligned with the view of the party. Some parties will provide registration options but all support is usually welcome.