> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: listMembers(badgeId: string) # Method package: wixMembersBackend # Method menu location: wixMembersBackend --> Badges --> listMembers # Method Link: https://dev.wix.com/docs/velo/apis/wix-members-backend/badges/list-members.md # Method Description: Lists the IDs of all members assigned to a badge. The `listMembers()` function returns a Promise that resolves to a list of member IDs assigned to the specified badge. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## List members assigned to a badge ```javascript import { Permissions, webMethod } from 'wix-web-module'; import { badges } from 'wix-members-backend'; export const myListMembersFunction = webMethod(Permissions.Anyone, () => { const badgeId = "571495e9-98af-4ec9-b854-16c0293c9312"; return badges.listMembers(badgeId) .then((memberIds) => { const firstMember = memberIds[0]; return memberIds; }) .catch((error) => { console.error(error); }); }); /* * Promise resolves to: * [ * "28d35f86-6694-4455-9dff-aff5d450b482", * "72751428-2743-4bda-acf5-4218a4279cd3", * "8831eed6-928e-4f85-b80a-e1e48fb7c4fd" * ] */ ``` ---