> 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: listMemberBadges(memberIds: Array) # Method package: wixMembersBackend # Method menu location: wixMembersBackend --> Badges --> listMemberBadges # Method Link: https://dev.wix.com/docs/velo/apis/wix-members-backend/badges/list-member-badges.md # Method Description: Lists the badges assigned to each of the specified site members. The `listMemberBadges()` function returns a Promise that resolves to a list of badge IDs associated with each of the specified members. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## List badges assigned to members ```javascript import { Permissions, webMethod } from 'wix-web-module'; import { badges } from 'wix-members-backend'; export const myListMemberBadgesFunction = webMethod(Permissions.Anyone, () => { const memberIds = [ "32cf071a-cc2f-450f-ad74-5a25db0b1b6a", "2cb1846f-0c7a-4c39-8736-349236cfab40", "69nh659a-ic2f-950f-ed74-14a25db9b1b6j" ]; return badges.listMemberBadges(memberIds) .then((memberBadges) => { const firstMemberBadges = memberBadges[0].badgeIds; return memberBadges; }) .catch((error) => { console.error(error); }); }); /* * Promise resolves to: * [ * { * "memberId": "32cf071a-cc2f-450f-ad74-5a25db0b1b6a", * "badgeIds": [ * "0d37ea22-44b0-4a62-9818-ff660178c439", * "c7d1a81d-485a-4eef-872f-4595ab2a15a2" * ] * }, * { * "memberId": "2cb1846f-0c7a-4c39-8736-349236cfab40", * "badgeIds": [ * "0d37ea22-44b0-4a62-9818-ff660178c439", * "41dcda59-8b6d-4deb-bb1f-d283de044b85", * "df9fc0e2-c2ba-40ba-a160-200a016c3507" * ] * }, * { * "memberId": "69nh659a-ic2f-950f-ed74-14a25db9b1b6j", * "badgeIds": [ * "df9fc0e2-c2ba-40ba-a160-200a016c3507" * ] * } * ] */ ``` ---