The urine PBG test is requested when a patient presents with symptoms suggestive of acute intermittent porphyria, such as abdominal pain, nausea, vomiting, constipation, and mental confusion. The test may also be requested if a patient has a family history of porphyria.