summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-07-07 09:56:47 +0200
committerJames Lopez <james@jameslopez.es>2017-07-07 10:38:57 +0200
commit037ad5a5a30471dfbdf7164b3928cd8dd03c3eae (patch)
treedf21393b0d2a402119f54c7f1d42fbb1cb32f840
parent1a7d2aba3b06a1e4fcc3861eeb70af30fc3330f6 (diff)
downloadgitlab-ce-037ad5a5a30471dfbdf7164b3928cd8dd03c3eae.tar.gz
add created at filter logic to users finder and API
-rw-r--r--changelogs/unreleased/feature-user-datetime-search-api-mysql.yml4
-rw-r--r--doc/api/users.md6
2 files changed, 10 insertions, 0 deletions
diff --git a/changelogs/unreleased/feature-user-datetime-search-api-mysql.yml b/changelogs/unreleased/feature-user-datetime-search-api-mysql.yml
new file mode 100644
index 00000000000..27ac50c6cc2
--- /dev/null
+++ b/changelogs/unreleased/feature-user-datetime-search-api-mysql.yml
@@ -0,0 +1,4 @@
+---
+title: Add creation time filters to user search API for admins
+merge_request: 12682
+author:
diff --git a/doc/api/users.md b/doc/api/users.md
index cf09b8f44aa..91170e79645 100644
--- a/doc/api/users.md
+++ b/doc/api/users.md
@@ -146,6 +146,12 @@ GET /users?extern_uid=1234567&provider=github
You can search for users who are external with: `/users?external=true`
+You can search users by creation date time range with:
+
+```
+GET /users?created_before=2001-01-02T00:00:00.060Z&created_after=1999-01-02T00:00:00.060
+```
+
## Single user
Get a single user.