summaryrefslogtreecommitdiff
path: root/doc/user/admin_area/blocking_unblocking_users.md
blob: d8dde317d3820f39d8b5326825e90c86b1b3d591 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
stage: Manage
group: Access
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#designated-technical-writers
type: howto
---

# Blocking and unblocking users

GitLab administrators block and unblock users.

## Blocking a user

In order to completely prevent access of a user to the GitLab instance, administrators can choose to
block the user.

Users can be blocked [via an abuse report](abuse_reports.md#blocking-users),
or directly from the Admin Area. To do this:

1. Navigate to  **Admin Area > Overview > Users**.
1. Select a user.
1. Under the **Account** tab, click **Block user**.

A blocked user:

- Will not be able to login.
- Cannot access Git repositories or the API.
- Will not receive any notifications from GitLab.
- Will not be able to use [slash commands](../../integration/slash_commands.md).

Personal projects, and group and user history of the blocked user will be left intact.

Users can also be blocked using the [GitLab API](../../api/users.md#block-user).

NOTE: **Note:**
A blocked user does not consume a [seat](../../subscriptions/self_managed/index.md#choose-the-number-of-users).

## Unblocking a user

A blocked user can be unblocked from the Admin Area. To do this:

1. Navigate to  **Admin Area > Overview > Users**.
1. Click on the **Blocked** tab.
1. Select a user.
1. Under the **Account** tab, click **Unblock user**.

Users can also be unblocked using the [GitLab API](../../api/users.md#unblock-user).

NOTE: **Note:**
Unblocking a user will change the user's state to active and it consumes a
[seat](../../subscriptions/self_managed/index.md#choose-the-number-of-users).