Verwenden Sie diesen Endpunkt, um alle Kontobenutzer aufzulisten. Die Ergebnisse können mithilfe der container_id
-URL-Abfragezeichenfolge so gefiltert werden, dass sie einen bestimmten Container betreffen.
Ändern Sie den ACCEPT
-Header in text/csv
um eine CSV-Ausgabe der Ergebnisse zurückzugeben.
curl -X GET \
'https://www.digicert.com/services/v2/user' \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/user"
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("GET", url, headers=headers)
print(response.text)
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/user"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-DC-DEVKEY", "{{api_key}}")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
var request = require("request");
var options = { method: 'GET',
url: 'https://www.digicert.com/services/v2/user',
headers:
{ 'Content-Type': 'application/json',
'X-DC-DEVKEY': '{{api_key}}' } };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
{
"users": [
{
"id": 125038,
"username": "jane.doe@digicert.com",
"account_id": <account_id>,
"first_name": "Jane",
"last_name": "Doe",
"email": "jane.doe@digicert.com",
"job_title": "Boss",
"telephone": "555-555-5555",
"status": "active",
"container": {
"id": 5,
"public_id": "<public_id>",
"name": "Company",
"parent_id": 0,
"template_id": 4,
"ekey": "<ekey>",
"has_logo": false,
"is_active": true
},
"access_roles": [
{
"id": 1,
"name": "Administrator"
}
],
"type": "standard",
"has_container_assignments": false
},
{
"id": 125039,
"username": "john.smith@digicert.com",
"account_id": <account_id>,
"first_name": "John",
"last_name": "Smith",
"email": "john.smith@digicert.com",
"job_title": "Employee",
"telephone": "555-555-5555",
"status": "active",
"container": {
"id": 5,
"public_id": "<public_id>",
"name": "Company",
"parent_id": 0,
"template_id": 4,
"ekey": "<ekey>",
"has_logo": false,
"is_active": true
},
"access_roles": [
{
"id": 5,
"name": "Standard User"
}
],
"type": "standard",
"has_container_assignments": true,
"container_assignments": [
{
"id": <container_id>,
"parent_id": <parent_container_id>,
"name": <container_name>,
"is_active": true
]
}
],
"page": {
"total": 2,
"limit": 1000,
"offset": 0
}
}
Name | Antr./Opt. | Typ | Beschreibung |
---|---|---|---|
container_id | optional | int | Ergebnisse für den angegebenen Container filtern. |
offset | optional | int | Liste bei der angegebenen Seitenzahl beginnen |
limit | optional | int | Liste an der angegebenen Seitenzahl abschneiden |
Name | Typ | Beschreibung |
---|---|---|
users | array | Liste aller von der Anfrage zurückgegebenen Benutzer. |
.. id | int | Benutzer-ID. |
.. username | string | Zur Anmeldung verwendete Zeichenfolge. |
.. account_id | int | CertCentral-Konto-ID: |
.. first_name | string | Vorname des Benutzers. |
.. last_name | string | Nachname des Benutzers. |
string | E-Mail-Adresse des Benutzers. | |
.. job_title | string | Funktion des Benutzers. |
.. telephone | string | Telefonnummer des Benutzers. |
.. status | string |
Kontostatus des Benutzers. Siehe Glossar – Benutzerstatus |
.. container | object | Details über den primären Konto-Container. |
.. .. id | int | ID des primären Konto-Containers. |
.. .. public_id | string | Die öffentliche ID für den primären Konto-Container. |
.. .. name | string | Name des primären Konto-Containers. |
.. .. parent_id | int | Übergeordnete ID des primären Konto-Containers. |
.. .. template_id | int | ID der Vorlage, die der Container verwenden. |
.. .. ekey | string | Eindeutiger Schlüssel für benutzerdefiniertes Branding. |
.. .. has_logo | bool | Status des benutzerdefinierten Logos für den Container. |
.. .. is_active | bool | Aktiver Status des Containers |
.. access_roles | array | Details der dem Benutzer zugewiesene Zugriffsrolle. |
.. .. id | int |
ID der Zugriffsrolle. Siehe Glossar – Zugriffsrollen |
.. .. name | string |
Name der Zugriffsrolle. Siehe Glossar – Zugriffsrollen |
.. type | string | Definiert den Typ des Benutzerkontos. |
.. has_container_assignments | bool |
Container-Zuweisungsstatus. Falls true , wird ein container_assignments -Array zurückgegeben.
|
.. container_assignments | array | Details über Container-Zuweisungen des Benutzers. |
.. .. id | int | ID des zugewiesenen Containers. |
.. .. parent_id | int | ID des übergeordneten Containers. |
.. .. name | string | Name des zugewiesenen Containers. |
.. .. is_active | bool | Status des zugewiesenen Containers. |
Seite | object |
Details über die Ergebnisse Modifiziert mithilfe der URL-Abfragezeichenfolge |