UserRepository to block or unblock another user. Blocking hides the blocked user’s content from all feeds and prevents them from posting on the blocker’s feed or initiating a follow.
Only users can be blocked. Console Admins and communities cannot be blocked. Community moderators or custom roles can be blocked regardless of their roles.
Product Behavior
- When User is Blocked
- When User is Unblocked
Content Visibility
- Global feed content hidden
- Community feed content hidden
- User feed content hidden
- Search functionality remains active
Interaction Restrictions
- Blocked user’s connection status as
blocked. - Cannot create posts on blocker’s feed
- Cannot follow the blocker
*Some limitations apply - If Alice blocks Bob, and either of them knows the other’s post ID, they can still comment on or react to each other’s posts.
Parameters
userId
userId
Type:
Required: Yes
The unique identifier of the user to block or unblock.
StringRequired: Yes
The unique identifier of the user to block or unblock.
Block User
Unblock User
Best Practices
User Experience
User Experience
- Always provide confirmation dialogs for blocking/unblocking actions.
- Clearly indicate blocked status in the UI.
- Allow users to manage their blocked list easily.
Privacy & Safety
Privacy & Safety
- Never notify users when they are blocked.
- Ensure all blocked user content and interactions are hidden.
- Respect privacy and content visibility settings.