A newer release of this product is available.
List users
Suggest changes
You can list the users that are defined for a specific Astra account.
1. List the users
Perform the following REST API call.
HTTP method | Path |
---|---|
GET |
/account/{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 --location -i --request GET 'https://astra.netapp.io/accounts/<ACCOUNT_ID>/core/v1/users' --header 'Accept: */*' --header 'Authorization: Bearer <API_TOKEN>'
Curl example: Return the first name, last name, and id for all users
curl --location -i --request GET 'https://astra.netapp.io/accounts/<ACCOUNT_ID>/core/v1/users?include=firstName,lastName,id' --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": {}
}