Getting username in cloud function

I have an user id in the cloud function. The important thing to note is that it’s not id of the user who’s making a query - it’s a different user. I’m trying to get his username by providing object id:

const userID = <user_id_here>;
const User = Moralis.Object.extend("User");
const userQuery = new Moralis.Query(User);
            
userQuery.get(userID).then(
              (activeRow) => {
                logger.info('username: ' + activeRow.get('username'));
              },
              (error) => {
                logger.info(error);
              }
);   

The above code returns an error ParseError: 101 Object not found. What am I missing?

I think that you need to use master key to be able to read all the data from User table in order to find a specific user