Customer Portal: Different accesses for registered users.

Customer Portal: Different accesses for registered users.

We are looking for a functionality such that we can provide selective access to registered users. For example, for a group of users we can show them only ticketing when they log in but for another group we only show knowledge base and for a third group we show both knowledge base and ticketing. 

How can we accomplish this?