makeProfilePrivate( )


Removes the currently logged-in member from the site community and sets their profile to private.

makeProfilePrivate() returns a Promise that resolves to a member object when the member's profile privacy is updated.

When a member's profile is private, they don't have access to the site's Members Area features, and their profile is hidden from other members and site visitors.

Notes:

  • The member data in the resolved promise will only include custom fields from a site's contacts if those fields are added to a site's members in a dashboard.
  • The frontend Members APIs aren't fully functional when previewing a site. View a published version of a site to see their complete functionality.
  • If a public member profile changes to private, their public content (such as forum posts and blog comments) remain publicly visible.
Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<Member>
Did this help?