The requested article is not available. Either it doesn't apply to this version of the product or the relevant information is organized differently in this version of the docs. You can search, browse, or go back to the other version.
A newer release of this product is available.
List the users

Collection of separate PDF docs
Creating your file...
This may take a few minutes. Thanks for your patience.
Your file is ready
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 |
/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 --location -i --request GET 'https://astra.netapp.io/accounts/<ACCOUNT_ID>/core/v1/users' --header 'Accept: */*' --header 'Authorization: Bearer <API_TOKEN>'
Curl
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>'
Curl
JSON output example
{
"items": [
[
"David",
"Anderson",
"844ec6234-11e0-49ea-8434-a992a6270ec1"
],
[
"Jane",
"Cohen",
"2a3e227c-fda7-4145-a86c-ed9aa0183a6c"
]
],
"metadata": {}
}
Curl