Plan assignment based on nas and ugroups