summaryrefslogtreecommitdiff
path: root/docs/gl_objects/users.rst
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2018-01-01 16:18:58 +0100
committerGauvain Pocentek <gauvain@pocentek.net>2018-01-01 16:18:58 +0100
commit2e2a78da9e3910bceb30bd9ac9e574b8b1425d05 (patch)
treefaf1347bb1e021380b60e552bb50c7d0a6211bbd /docs/gl_objects/users.rst
parent65c64ebc08d75092151e828fab0fa73f5fd22e45 (diff)
downloadgitlab-2e2a78da9e3910bceb30bd9ac9e574b8b1425d05.tar.gz
Add doc for search by custom attribute
Diffstat (limited to 'docs/gl_objects/users.rst')
-rw-r--r--docs/gl_objects/users.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/gl_objects/users.rst b/docs/gl_objects/users.rst
index e57daf6..63609db 100644
--- a/docs/gl_objects/users.rst
+++ b/docs/gl_objects/users.rst
@@ -107,6 +107,11 @@ Delete a custom attribute for a user::
# or
user.customattributes.delete(attr_key)
+Search users by custom attribute::
+
+ user.customattributes.set('role': 'QA')
+ gl.users.list(custom_attributes={'role': 'QA'})
+
User impersonation tokens
=========================