> 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 # GetStaffMemberSettings # Package: staffMembers # Namespace: StaffMemberSettingsService # Method link: https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-member-settings/get-staff-member-settings.md ## Permission Scopes: Manage Bookings: SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS ## Introduction Retrieves the current privacy settings for staff member contact information. Use this method to check whether the `email` and `phone` fields in [staff member objects](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/staff-member-object.md) are accessible in API responses and on the live site. --- ## REST API ### Schema ``` Method: getStaffMemberSettings Description: Retrieves the current privacy settings for staff member contact information. Use this method to check whether the `email` and `phone` fields in [staff member objects](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/staff-member-object.md) are accessible in API responses and on the live site. URL: https://www.wixapis.com/bookings/v1/staff-member-settings Method: GET Return type: GetStaffMemberSettingsResponse - name: staffMemberSettings | type: StaffMemberSettings | description: Retrieved staff member settings. - name: id | type: string | description: GUID of the staff member settings object. There is one settings object per site. - name: revision | type: string | description: Revision number, which increments by 1 each time the `staffMemberSettings` object is updated. To prevent conflicting changes, the current revision must be specified when updating the `staffMemberSettings` object. - name: createdDate | type: string | description: Date and time the `staffMemberSettings` object was created in `YYYY-MM-DDThh:mm:ss.sssZ` format. - name: updatedDate | type: string | description: Date and time the `staffMemberSettings` object was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format. - name: contactInformation | type: ContactInformation | description: Privacy settings for controlling staff member contact information visibility in API responses and on the live site. - name: publiclyAccessible | type: boolean | description: Whether staff members' email addresses and phone numbers are accessible in API responses and on the live site. - `true`: The `email` and `phone` fields in [staff member objects](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/staff-member-object.md) contain actual contact information, and this information is displayed on the live site. - `false`: These fields are empty in API responses if the calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities.md) doesn't have sufficient permissions, and contact information isn't displayed on the live site. Identities with appropriate permissions can still access this information in API responses regardless of this setting. Default: `false` - name: extendedFields | type: ExtendedFields | description: Custom field data for the staff member settings. Extended fields must be configured in the app dashboard before they can be accessed with API calls. Learn more about extended fields at https://dev.wix.com/docs/rest/articles/getting-started/extended-fields..md - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured. You can only access fields for which you have the appropriate permissions. Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md). ``` ### Examples ### Get Staff Member Settings Retrieves the privacy settings for staff member contact information. ```curl curl -X GET \ 'https://www.wixapis.com/bookings/v1/staff-member-settings' \ -H 'Authorization: ' \ -H 'Content-Type: application/json' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.staffMembers.StaffMemberSettingsService.getStaffMemberSettings() Description: Retrieves the current privacy settings for staff member contact information. Use this method to check whether the `email` and `phone` fields in [staff member objects](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/staff-member-object.md) are accessible in API responses and on the live site. Return type: PROMISE - name: _id | type: string | description: GUID of the staff member settings object. There is one settings object per site. - name: revision | type: string | description: Revision number, which increments by 1 each time the `staffMemberSettings` object is updated. To prevent conflicting changes, the current revision must be specified when updating the `staffMemberSettings` object. - name: _createdDate | type: Date | description: Date and time the `staffMemberSettings` object was created in `YYYY-MM-DDThh:mm:ss.sssZ` format. - name: _updatedDate | type: Date | description: Date and time the `staffMemberSettings` object was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format. - name: contactInformation | type: ContactInformation | description: Privacy settings for controlling staff member contact information visibility in API responses and on the live site. - name: publiclyAccessible | type: boolean | description: Whether staff members' email addresses and phone numbers are accessible in API responses and on the live site. - `true`: The `email` and `phone` fields in [staff member objects](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/staff-member-object.md) contain actual contact information, and this information is displayed on the live site. - `false`: These fields are empty in API responses if the calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities.md) doesn't have sufficient permissions, and contact information isn't displayed on the live site. Identities with appropriate permissions can still access this information in API responses regardless of this setting. Default: `false` - name: extendedFields | type: ExtendedFields | description: Custom field data for the staff member settings. Extended fields must be configured in the app dashboard before they can be accessed with API calls. Learn more about extended fields at https://dev.wix.com/docs/rest/articles/getting-started/extended-fields..md - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured. You can only access fields for which you have the appropriate permissions. Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md). ``` ### Examples ### getStaffMemberSettings ```javascript import { staffMemberSettings } from '@wix/bookings'; async function getStaffMemberSettings() { const response = await staffMemberSettings.getStaffMemberSettings(); }; ``` ### getStaffMemberSettings (with elevated permissions) ```javascript import { staffMemberSettings } from '@wix/bookings'; import { auth } from '@wix/essentials'; async function myGetStaffMemberSettingsMethod() { const elevatedGetStaffMemberSettings = auth.elevate(staffMemberSettings.getStaffMemberSettings); const response = await elevatedGetStaffMemberSettings(); } ``` ### getStaffMemberSettings (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 { staffMemberSettings } from '@wix/bookings'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { staffMemberSettings }, // Include the auth strategy and host as relevant }); async function getStaffMemberSettings() { const response = await myWixClient.staffMemberSettings.getStaffMemberSettings(); }; ``` ---