Author List Annotations

there is some method that loads all the authors of the annotations an array with all the authors that commented on the file

Hello, I’m an automated tech support bot.

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Hey there,

We do not have an API for this, but you can just get all the annotations and loop over them to get the authors:

    const annots = instance.annotManager.getAnnotationsList();
    
    const authorMap = annots.reduce((acc, annot) => {
      acc[annot.Author] = true;
      return acc;
    }, {})

    const authorList = Object.keys(authorMap);

I use a map+reduce to prevent any duplicates in the array.

Thanks!
Logan