Unity 4.0(1) and later allow you to do this - you can create as many directory handlers as you want and you can filter the list of subscribers associated with that directory handler against public distribution lists, class of service objects, location objects or dialing domains.
Earlier versions of Unity only have one directory handler you can use that you can set to include local users or all users in the dialing domain but that's as much configuration as you have.