Wiktionary
paruresis
n. The inability to urinate in the presence of others
Wikipedia
Paruresis
Paruresis is a type of phobia in which the sufferer is unable to urinate in the real or imaginary presence of others, such as in a public restroom. The analogous condition that affects bowel movement is called parcopresis.