> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> 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`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - 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.  | read-only: true | validation: format 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.  | validation: format int64
     - name: updatedDate | type: string | description: Date and time when the member privacy settings were updated.  | read-only: true | validation: format date-time


```

### Examples

### Get Member Privacy Settings
```curl
curl -X GET \ https://wixapis.com/members/v1/privacy-settings \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.members.memberPrivacySettings.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<GetMemberPrivacySettingsResponse>
  - name: memberPrivacySettings | type: MemberPrivacySettings | description: Retrieved member privacy settings.  
     - name: _id | type: string | description: Member privacy settings GUID.  | read-only: true | validation: format 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.  | validation: format int64
     - name: _updatedDate | type: Date | description: Date and time when the member privacy settings were updated.  | read-only: true 


```

### 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-managed)
Self-managed 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();
};
```

---