Skip to content

Commit 2e2a78d

Browse files
author
Gauvain Pocentek
committed
Add doc for search by custom attribute
1 parent 65c64eb commit 2e2a78d

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

docs/gl_objects/groups.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ Delete a custom attribute for a group::
126126
# or
127127
group.customattributes.delete(attr_key)
128128

129+
Search groups by custom attribute::
130+
131+
group.customattributes.set('role': 'admin')
132+
gl.groups.list(custom_attributes={'role': 'admin'})
133+
129134
Group members
130135
=============
131136

docs/gl_objects/projects.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,11 @@ Delete a custom attribute for a project::
207207
# or
208208
project.customattributes.delete(attr_key)
209209

210+
Search projects by custom attribute::
211+
212+
project.customattributes.set('type': 'internal')
213+
gl.projects.list(custom_attributes={'type': 'internal'})
214+
210215
Project files
211216
=============
212217

docs/gl_objects/users.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ Delete a custom attribute for a user::
107107
# or
108108
user.customattributes.delete(attr_key)
109109

110+
Search users by custom attribute::
111+
112+
user.customattributes.set('role': 'QA')
113+
gl.users.list(custom_attributes={'role': 'QA'})
114+
110115
User impersonation tokens
111116
=========================
112117

0 commit comments

Comments
 (0)