List the users
You can list the users that are defined for a specific Astra account.
HTTP method and endpoint
This REST API call uses the following method and endpoint.
| HTTP method | Path |
|---|---|
GET |
/accounts/{account_id}/core/v1/users |
Additional input parameters
In addition to the parameters common with all REST API calls, the following parameters are also used in the curl examples for this step.
| Parameter | Type | Required | Description |
|---|---|---|---|
include |
Query |
No |
Optionally select the values you want returned in the response. |
Curl example: Return all data for all users
curl --request GET \
--location "https://astra.netapp.io/accounts/$ACCOUNT_ID/core/v1/users" \
--include \
--header "Accept: */*" \
--header "Authorization: Bearer $API_TOKEN"
Curl example: Return the first name, last name, and id for all user
curl --request GET \
--location "https://astra.netapp.io/accounts/$ACCOUNT_ID/core/v1/users?include=firstName,lastName,id" \
--include \
--header "Accept: */*" \
--header "Authorization: Bearer $API_TOKEN"
JSON output example
{
"items": [
[
"David",
"Anderson",
"844ec6234-11e0-49ea-8434-a992a6270ec1"
],
[
"Jane",
"Cohen",
"2a3e227c-fda7-4145-a86c-ed9aa0183a6c"
]
],
"metadata": {}
}