docs: function groupMembershipMiddleware(groups) {
  		if (typeof groups === 'string') {
  			groups = [groups];
  		}
  		return function hasGroupMembership(req, res, next) {
  			if (req.locals.user) {
  				const userGroups = req.locals.user.groups || [];
  				for (let group of groups) {
  					if (userGroups.indexOf(group) !== -1) {
  						debug(`User has the '${group}' Group.`);
  						return next();
  					}
  				}
  			}
  			debug(`User is not a member of one of [${groups.join(',')}] Group(s).`);
  			next(new restifyErrors.ForbiddenError('No execute permissions on endpoint'));
  		}
  	}