You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: src/api-documentation/controller-security/search-profiles.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ title: searchProfiles
22
22
23
23
```js
24
24
{
25
-
//A roles array containing a list of role Ids can be added
25
+
//An array of roles used by the searched profiles
26
26
"roles": [
27
27
"firstRoleId",
28
28
"admin"
@@ -41,7 +41,7 @@ title: searchProfiles
41
41
"controller": "security",
42
42
"action": "searchProfiles",
43
43
"body": {
44
-
"policies": [
44
+
"roles": [
45
45
"myRoleId",
46
46
"admin"
47
47
]
@@ -108,7 +108,7 @@ Retrieves profiles referring to a given set of roles in their policies.
108
108
109
109
Optional arguments:
110
110
111
-
*`body.policies` contains an array of role identifiers used to filters the search results
111
+
*`body.roles` contains an array of role identifiers used to filters the search results
112
112
*`size` controls the maximum number of documents returned in the response
113
113
*`from` is usually used with the `size` argument, and defines the offset from the first result you want to fetch
114
114
*`scroll` allows to fetch large result sets, and it must be set with a [time duration](https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#time-units). If set, a forward-only cursor will be created (and automatically destroyed at the end of the set duration), and its identifier will be returned in the `scrollId` property, along with the first page of results. This cursor can then be moved forward using the [`scrollProfiles` API action]({{ site_base_path }}api-documentation/controller-security/scroll-profiles)
0 commit comments