> 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 # GetMemberPrivacySettings # Package: privacy # Namespace: MemberPrivacySettingsService # Method link: https://dev.wix.com/docs/api-reference/crm/members-contacts/members/member-management/privacy/member-privacy-settings/get-member-privacy-settings.md ## Introduction Retrieves the member privacy settings for a site. If no settings were set, the default settings are retrieved. >**Note:** >This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities.md). --- ## REST API ### Schema ``` Method: getMemberPrivacySettings Description: Retrieves the member privacy settings for a site. If no settings were set, the default settings are retrieved. >**Note:** >This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities.md). URL: https://www.wixapis.com/members/v1/privacy-settings Method: GET Return type: GetMemberPrivacySettingsResponse - name: memberPrivacySettings | type: MemberPrivacySettings | description: Retrieved member privacy settings. - name: id | type: string | description: Member privacy settings GUID. - name: publicMemberVisibility | type: Visibility | description: Who can see the public member profiles. - enum: - UNKNOWN: Unknown member visibility. This value isn't used. - VISIBLE_TO_MEMBERS_ONLY: The members' profiles are only visible to logged-in site members. - VISIBLE_TO_ALL: All site visitors can see the members' profiles. - name: publicMemberCandidates | type: Candidates | description: Who can make the member profile public. - enum: - UNKNOWN: Unknown public member candidate. This value isn't used. - NO_ONE: All members have private profiles with no option to make them public. - ANYONE: All members can make the profile public. - name: revision | type: string | description: Revision number, which increments by 1 each time the member privacy settings are updated. To prevent conflicting changes, the existing revision must be used when updating member privacy settings. - name: updatedDate | type: string | description: Date and time when the member privacy settings were updated. ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.privacy.MemberPrivacySettingsService.getMemberPrivacySettings() Description: Retrieves the member privacy settings for a site. If no settings were set, the default settings are retrieved. >**Note:** >This method requires [visitor or member authentication](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities.md). Return type: PROMISE - name: memberPrivacySettings | type: MemberPrivacySettings | description: Retrieved member privacy settings. - name: _id | type: string | description: Member privacy settings GUID. - name: publicMemberVisibility | type: Visibility | description: Who can see the public member profiles. - enum: - UNKNOWN: Unknown member visibility. This value isn't used. - VISIBLE_TO_MEMBERS_ONLY: The members' profiles are only visible to logged-in site members. - VISIBLE_TO_ALL: All site visitors can see the members' profiles. - name: publicMemberCandidates | type: Candidates | description: Who can make the member profile public. - enum: - UNKNOWN: Unknown public member candidate. This value isn't used. - NO_ONE: All members have private profiles with no option to make them public. - ANYONE: All members can make the profile public. - name: revision | type: string | description: Revision number, which increments by 1 each time the member privacy settings are updated. To prevent conflicting changes, the existing revision must be used when updating member privacy settings. - name: _updatedDate | type: Date | description: Date and time when the member privacy settings were updated. ``` ### Examples ### getMemberPrivacySettings ```javascript import { memberPrivacySettings } from '@wix/members'; async function getMemberPrivacySettings() { const response = await memberPrivacySettings.getMemberPrivacySettings(); }; ``` ### getMemberPrivacySettings (with elevated permissions) ```javascript import { memberPrivacySettings } from '@wix/members'; import { auth } from '@wix/essentials'; async function myGetMemberPrivacySettingsMethod() { const elevatedGetMemberPrivacySettings = auth.elevate(memberPrivacySettings.getMemberPrivacySettings); const response = await elevatedGetMemberPrivacySettings(); } ``` ### getMemberPrivacySettings (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { memberPrivacySettings } from '@wix/members'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { memberPrivacySettings }, // Include the auth strategy and host as relevant }); async function getMemberPrivacySettings() { const response = await myWixClient.memberPrivacySettings.getMemberPrivacySettings(); }; ``` ---