Currently you can only provide one allowed group in the allowed_group environment variable. Let's add a variable, allowed_groups which accepts a delimited list of group names that we then use to compare the intersection of that list with the usergrp list of groups which the user is a member of.
Currently you can only provide one allowed group in the
allowed_group
environment variable. Let's add a variable,allowed_groups
which accepts a delimited list of group names that we then use to compare the intersection of that list with theusergrp
list of groups which the user is a member of.