Tagging is an established technology in Liferay.
Users are segmented by the tags of the organization they belong to:
- Given an organization tagged with "Premium" tag that contains 3 users
- When a segment is added with the criteria Organization Tag = "Premium"
- Then the segment preview shows all 3 users of the organization