summaryrefslogtreecommitdiff
path: root/docs/gl_objects/users.rst
diff options
context:
space:
mode:
authorMax Wittig <max.wittig@siemens.com>2021-02-25 21:51:13 +0100
committerMax Wittig <max.wittig@siemens.com>2021-02-27 16:33:05 +0100
commite456869d98a1b7d07e6f878a0d6a9719c1b10fd4 (patch)
treea21654e7d05a6c668c0214837ba561e070fbbf5f /docs/gl_objects/users.rst
parente06c51bcf29492dbc7ef838c35f6ef86a79af261 (diff)
downloadgitlab-feat/user-follow-api.tar.gz
feat(users): add follow/unfollow APIfeat/user-follow-api
Diffstat (limited to 'docs/gl_objects/users.rst')
-rw-r--r--docs/gl_objects/users.rst14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/gl_objects/users.rst b/docs/gl_objects/users.rst
index 9f2d42c..dd6db6a 100644
--- a/docs/gl_objects/users.rst
+++ b/docs/gl_objects/users.rst
@@ -67,6 +67,11 @@ Activate/Deactivate a user::
user.activate()
user.deactivate()
+Follow/Unfollow a user::
+
+ user.follow()
+ user.unfollow()
+
Set the avatar image for a user::
# the avatar image can be passed as data (content of the file) or as a file
@@ -84,6 +89,15 @@ Delete an external identity by provider name::
user.identityproviders.delete('oauth2_generic')
+Get the followers of a user
+
+ user.followers_users.list()
+
+Get the followings of a user
+
+ user.following_users.list()
+
+
User custom attributes
======================