Skip to content

Latest commit

 

History

History
92 lines (70 loc) · 5.82 KB

File metadata and controls

92 lines (70 loc) · 5.82 KB
title Blocking a user from your organization
intro Organization owners and moderators can block anyone who is not a member of the organization from collaborating on the organization's repositories.
redirect_from
/articles/blocking-a-user-from-your-organization
/github/building-a-strong-community/blocking-a-user-from-your-organization
versions
fpt ghec
*
*
shortTitle Block from your org
category
Block users and report abuse

You can block non-members from within your organization's settings or from a specific comment made by a user. When you block a user in a comment, you can choose to send the user a notification explaining that they were blocked and why. Otherwise, the user is not directly notified that you've blocked them. Blocked users can still delete their existing content.

{% data reusables.organizations.blocking-a-user %}

Tip

If you're blocking a user because of a heated conversation, consider locking the conversation so only collaborators can comment. For more information, see AUTOTITLE.

At the time that you block a user from your organization:

  • The user stops watching your organization's repositories
  • The user's stars and issue assignments are removed from your repositories
  • The user's votes on discussions or comments in your organization's repositories are deleted
  • The user is removed as a collaborator on your organization's repositories
  • The user's contributions to your organization's repositories are no longer counted as contributions for them
  • Any pending repository or organization invitations to the blocked user are canceled

After you've blocked a user from your organization, they cannot:

  • Cross-reference your organization's repositories in comments
  • Fork, watch, pin, or star your organization's repositories

In your organization's repositories, blocked users also cannot:

  • Open issues
  • Send, close, or merge pull requests
  • Comment on issues, pull requests, or commits
  • Add or edit wiki pages

Blocking a user in a comment

  1. Navigate to the comment whose author you would like to block.

  2. In the upper-right corner of the comment, click {% octicon "kebab-horizontal" aria-label="Show options" %}, then click Block user.

    Screenshot of a pull request comment by octo-user. Below an icon of three dots, a dropdown menu is expanded, and "Block user" is outlined in orange.

  3. If you'd like to set a time limit for the block, select the Block user dropdown menu, and click the amount of time you'd like to block the user.

  4. If you'd like to hide all of the comments the user has made in the organization, select Hide this user's comments and choose a reason.

  5. If you'd like to notify the user why they're being blocked, select Send a notification to this user.

  6. To block the user, click Block user from organization or Block user from organization and send message.

Blocking a user in the organization settings

{% ifversion ghec %}

Warning

To completely block a user when your enterprise or organization enforces SAML single sign-on (SSO) through an identity provider (IdP), in addition to blocking the user on {% data variables.product.github %}, you should also remove the user's assignment to the {% data variables.product.github %} application in your IdP.

Not revoking access in your IdP configuration means the user could potentially regain access to the enterprise or organization via SSO.

{% endif %}

  1. To block an organization member, first remove the user from the organization.

{% data reusables.profile.access_org %} {% data reusables.profile.org_settings %} {% data reusables.organizations.block_users %}

  1. Under "Block a user", in the text field, type the username of the user you'd like to block.
  2. If you'd like to set a time limit for the block, next to the text field, select the Block options dropdown menu, and click the amount of time you'd like to block the user.
  3. Click Block user.
  4. Optionally, to add a note to describe why a user was blocked, click Add Note. The note will be visible to the owners and moderators of the organization.

Blocking a user on a discussion

  1. Navigate to the discussion whose author you would like to block.

  2. In the upper-right corner of the comment, click {% octicon "kebab-horizontal" aria-label="Show options" %}, then click Block user.

    Screenshot of a pull request comment by octo-user. Below an icon of three dots, a dropdown menu is expanded, and "Block user" is outlined in orange.

  3. If you'd like to set a time limit for the block, select the Block user dropdown menu, and click the amount of time you'd like to block the user.

  4. If you'd like to hide all of the comments the user has made in the organization, select Hide this user's comments and choose a reason.

  5. If you'd like to delete just the discussion you're viewing, select Delete this discussion.

  6. If you'd like to delete all of the discussions the user has made in the organization, select Delete all of USER's discussions in ORGANIZATION.

  7. Click Block user from organization.

Further reading