fix OPENUCB-152: get admin role programmatically
Add some error handling and an understandable error message