use userdefined_roles; fix indentation problems
Refs #20358
avoid getObject; use brains metadata
Refs #20358