> For the complete documentation index, see [llms.txt](https://ryan-44.gitbook.io/portrait/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ryan-44.gitbook.io/portrait/portrait-sdk/collective-portraits/read/getshareholders.md).

# getShareholders()

```typescript
/**
   * Get all shareholders of the Collective Portrait.
   * @param {CollectivePortraitName | number} identity - The name of the Collective Portrait that the user would like to get the shareholders for.
   * @returns {string[]} - An array of addresses of the shareholders of the Collective Portrait.
   * @beta
   * @async
   */
  getShareholders(identity: CollectivePortraitName | number): string[] {
    const id =
      typeof identity === 'number' ? identity : this.getTokenIdByName(identity);

    return this.portrait.portraitCollectiveContract.getShareholdersByTokenId(
      id,
    );
  }
```
