summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-06-09 11:11:35 -0400
committerNejc Habjan <nejc.habjan@siemens.com>2022-06-25 17:50:43 +0200
commitf57139d8f1dafa6eb19d0d954b3634c19de6413c (patch)
tree4cca8c42dffae9028b2d91390aed3a60a2e27b36 /docs
parent8f8611a1263b8c19fd19ce4a904a310b0173b6bf (diff)
downloadgitlab-f57139d8f1dafa6eb19d0d954b3634c19de6413c.tar.gz
feat(users): add approve and reject methods to User
As requested in #1604. Co-authored-by: John Villalovos <john@sodarock.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/gl_objects/users.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/gl_objects/users.rst b/docs/gl_objects/users.rst
index 53b00e2..996459d 100644
--- a/docs/gl_objects/users.rst
+++ b/docs/gl_objects/users.rst
@@ -111,6 +111,13 @@ List a user's starred projects
user.starred_projects.list()
+If the GitLab instance has new user account approval enabled some users may
+have ``user.state == 'blocked_pending_approval'``. Administrators can approve
+and reject such users::
+
+ user.approve()
+ user.reject()
+
User custom attributes
======================