adds formatted security group string to mq environment