The Member Privacy Settings API allows you to override the default privacy status of site member profiles. For example, if the default status is private, you can switch the privacy settings to public, so that users could have an ability to make their profiles public. This API switches the privacy settings for all site members at once.
With the Member Privacy Settings API, you can:
You can override the default status for current members with the Member Privacy Settings API. The new settings apply to the current members of the site, overriding the default status. Newly signed-up members continue to have only the default status applied.
PRIVATE
:Call Set Member Privacy Settings to update the privacy settings to PUBLIC
. Current members now have the option to make their profiles PUBLIC
. Newly signed-up members will have private profiles by default but can then change their profiles to PUBLIC
.
PUBLIC
:Call Set Member Privacy Settings to update the privacy settings to PRIVATE
. All current and newly signed-up members can't make their profiles PUBLIC
.
It’s important to note the following before starting to code: