With the Member Privacy Settings API you can override the default privacy status of site members' 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 the profiles public. Use this API to quickly switch the privacy settings for all site members at once.
With the Member Privacy Settings API, you can:
If you call the Member Privacy Settings API, new settings are applied for the current members of the site, overriding the default status. For newly signed up members, only the default status is applied.
Example for using the Default Privacy Status API together with the Member Privacy Settings API when the site's default privacy status is PRIVATE
:
PUBLIC
. Current members can now choose to make their profiles PUBLIC
. Newly signed-up members will have private profiles by default but can change their profiles to PUBLIC
individually.Example for using the Default Privacy Status together with the Member Privacy Settings API when the site's default privacy status is PUBLIC
:
PRIVATE
. All current and newly signed-up members can't make the profile PUBLIC
.It’s important to note the following points before starting to code:
This article shares a possible use case you could support, as well as a sample flow that could support this use case. This can be a helpful jumping-off point.
In this scenario, a platform hosts virtual events, and during these events, participants should temporarily make their profiles public to encourage networking and interaction. However, once the event is over, participants’ profiles should revert to their original privacy settings.
To change privacy settings for an event:
publicMemberVisibility
field to VISIBLE_TO_ALL
.