Jr. DBA in my company only have access to the database which they need to use. Often they try to access database and if they do not have permission they face error. Jr. DBAs always check which database they have access using following system stored procedure. It is very reliable and provides accurate information.
ResultSet: ( I have listed only one column)
Reference : Pinal Dave (https://blog.sqlauthority.com)