- URL:
- https://[root]/portal/[portalID]/users/search
- Methods:
GET
Example usage
The following is a sample ArcGIS Online request for the search
operation:
https://www.arcgis.com/sharing/rest/portal/0123456789ABCDEF/users/search?q=john
The following is a sample ArcGIS Enterprise request for the search
operation:
https://machine.domain.com/webadaptor/sharing/rest/portal/0123456789ABCDEF/users/search?q=john
Description
The search
operation searches for users within an organization.
Request parameters
Parameter | Details |
---|---|
| See Common parameters for a complete list. |
| The query string used to search for users. See Search reference for advanced options. Example
|
| The filter used when searching for users. It is structured filtering using a specifying field name followed by a colon and the keyword you are searching for with double quotation marks. It is designed to allow passing in application level filters based on its context. The specified field value should be an exact keyword match of the specified value; partially matching the filter keyword will fail and no meaningful results will be returned. See Search reference for advanced options. Example
|
| The number of the first entry in the result set response. The index number is 1-based. The default value of Example
|
| The maximum number of results to be included in the result set response. The default value is 10, and the maximum allowed value is 100. The Example
|
| Specify the fields that will be used to the sort search results. Values: |
| Specify whether the returned results will be in ascending or descending order. The default value is Values: |
| Filter users by categories. Example
|
| The response format. The default format is Values: |
Response properties
Property | Details |
---|---|
| The total number of results that matches the query. It is counted accurately up to 10,000; if the total number is greater than this value, 10,000 will be returned. The top 10,000 query results are available to retrieve through pagination. |
| The number of the first entry in the result set for this response. The index number is 1-based. |
| The number of results included in the result set for this response. |
| The next entry index if the current result set doesn't contain all the results. |
| A JSON array of user objects. See the response properties for User. |
JSON Response syntax
{
"total": <total number of results>
"start": <results in first set>,
"num": <number of results per page>,
"nextStart": <result number of next page>,
"results": [
{
"username": "<username>",
"id": "<id>",
"fullName": "<first name> <last name>",
"firstName": "<first name>",
"lastName": "<last name>",
"description": "<description>",
"tags": [
"<tag1>",
"tag2>"
],
"culture": <culture code>,
"cultureFormat": <culture format>,
"region": <region>,
"units": "<unit>",
"thumbnail": "<file name>",
"created": date created shown in UNIX time,
"modified": date modified shown in UNIX time,
"provider": "<provider>",
"groups": []
}
]
}
JSON Response example
{
"total": 182,
"start": 1,
"num": 2,
"nextStart": 3,
"results": [
{
"username": "jsmith",
"id": "f0e41e451b7167f3eb0ec9d28d447d15",
"fullName": "John Smith",
"firstName": "John",
"lastName": "Smith",
"description": "I work for the city of Redlands as a senior planner.",
"tags": [
"urban planner",
"GIS"
],
"culture": "en-GB",
"cultureFormat": null,
"region": "WO",
"units": "english",
"thumbnail": "mySelf.jpg",
"created": 1429650697000,
"modified": 1538593838000,
"provider": null,
"groups": []
},
{
"username": "jhenry",
"id": "47d37aa11e7b0de343274e3ad54d09ab",
"fullName": "John Henry",
"firstName": "John",
"lastName": "Henry",
"description": "I'm a full time student at UCSB.",
"tags": [
"Department of Geography",
"GIS"
],
"culture": "en-US",
"cultureFormat": null,
"region": "US",
"units": "english",
"thumbnail": "john_at_the_beach.jpg",
"created": 1530814493000,
"modified": 1530814536000,
"provider": null,
"groups": []
}
]
}