Typically, you only get a fast-track security screening if you are a premium cabin passenger or you have premium airline status (e.g., Star Alliance Gold). However, several airports allow premium passengers to clear immigration by using dedicated immigration lanes.
Star Alliance Gold Track Immigration
All Star Alliance Gold Customers (including those travelling in Economy Class) and customers in First or Business Class on a flight operated by a Star Alliance member airline are eligible for Star Alliance Gold Track access (link). See the image below for some of these airports around the world.

Our business class booking from Casablanca International Airport (CMN) to Lisbon
I used my Aeroplan miles to book a business class TAP Portugal stopover in Lisbon on our way to Milan (see image below).


Casablanca International Airport Fast-track

I did not expect the CMN airport to enable the Fast-track immigration and it was a pleasant surprise. There were long lines at the regular immigration counters and we were able to breeze through the Fast-track security and cleared the immigration line in under a minute.
Conclusion
Casablanca Fast Track service gives you priority access to security, baggage and immigration clearance without having to go through the traditional queue. Customers flying in premium cabins and holding airline status are eligible for this service.