Thank you for your replies, especially to Rbwoonton for giving a perspective on what happens on the otherside of the scanner. It answers what I thought was the case in regards to needing consent to open a person's bag.
I just want ensure though Rbwoonton that the information you have provided is applicable to Australia as I noticed your profile lists your location as Auckland.