| `scope` | string | yes | The scope to search in |
| `scope` | string | yes | The scope to search in |
| `search` | string | yes | The search query |
| `search` | string | yes | The search query |
Search the expression within the specified scope. Currently these scopes are supported: projects, issues, merge_requests, milestones, snippet_titles, snippet_blobs.
Search the expression within the specified scope. Currently these scopes are supported: projects, issues, merge_requests, milestones, snippet_titles, snippet_blobs, users.
If Elasticsearch is enabled additional scopes available are blobs, wiki_blobs and commits. Find more about [the feature](../integration/elasticsearch.md).
If Elasticsearch is enabled additional scopes available are blobs, wiki_blobs and commits. Find more about [the feature](../integration/elasticsearch.md).
...
@@ -255,7 +255,7 @@ Example response:
...
@@ -255,7 +255,7 @@ Example response:
### Scope: snippet_blobs
### Scope: snippet_blobs
```bash
```bash
curl --request GET --header"PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/search?scope=snippet_blobs&search=test
curl --request GET --header"PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/search?scope=snippet_blos&search=test
```
```
Example response:
Example response:
...
@@ -375,6 +375,27 @@ Example response:
...
@@ -375,6 +375,27 @@ Example response:
]
]
```
```
### Scope: users
```bash
curl --request GET --header"PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/search?scope=users&search=doe
| `scope` | string | yes | The scope to search in |
| `scope` | string | yes | The scope to search in |
| `search` | string | yes | The search query |
| `search` | string | yes | The search query |
Search the expression within the specified scope. Currently these scopes are supported: projects, issues, merge_requests, milestones.
Search the expression within the specified scope. Currently these scopes are supported: projects, issues, merge_requests, milestones, users.
If Elasticsearch is enabled additional scopes available are blobs, wiki_blobs and commits. Find more about [the feature](../integration/elasticsearch.md).
If Elasticsearch is enabled additional scopes available are blobs, wiki_blobs and commits. Find more about [the feature](../integration/elasticsearch.md).
...
@@ -687,6 +708,27 @@ Example response:
...
@@ -687,6 +708,27 @@ Example response:
]
]
```
```
### Scope: users
```bash
curl --request GET --header"PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/groups/3/search?scope=users&search=doe
| `scope` | string | yes | The scope to search in |
| `scope` | string | yes | The scope to search in |
| `search` | string | yes | The search query |
| `search` | string | yes | The search query |
Search the expression within the specified scope. Currently these scopes are supported: issues, merge_requests, milestones, notes, wiki_blobs, commits, blobs.
Search the expression within the specified scope. Currently these scopes are supported: issues, merge_requests, milestones, notes, wiki_blobs, commits, blobs, users.
The response depends on the requested scope.
The response depends on the requested scope.
...
@@ -1016,4 +1058,25 @@ Example response:
...
@@ -1016,4 +1058,25 @@ Example response:
]
]
```
```
### Scope: users
```bash
curl --request GET --header"PRIVATE-TOKEN: <your_access_token>" https://gitlab.example.com/api/v4/projects/6/search?scope=users&search=doe