이 엔드포인트를 사용하여 사용자에 대한 상세 정보를 받습니다.
엔드포인트 URL의 {{user_id}}
를 me
로 바꿔서 요청에 사용되는 API 키에 할당된 사용자에 대한 상세 정보를 받을 수 있습니다.
curl -X GET \
https://www.digicert.com/services/v2/user/{{user_id}} \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}'
import requests
url = "https://www.digicert.com/services/v2/user/{{user_id}}"
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/{{user_id}}"
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/{{user_id}}',
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);
});
{
"id": 125039,
"username": "john.smith@digicert.com",
"account_id": 123654,
"first_name": "John",
"last_name": "Smith",
"email": "john.smith@digicert.com",
"job_title": "Sys Admin",
"telephone": "555-555-5555",
"status": "active",
"last_login_date": "2019-06-21 13:37:00",
"container": {
"id": 5,
"public_id": "9bba0f54e97e31abb0f2a7e6e9386f1",
"name": "My Account",
"parent_id": 0,
"template_id": 5,
"ekey": "<ekey>",
"has_logo": true,
"is_active": true
},
"access_roles": [
{
"id": 1,
"name": "Administrator"
}
],
"is_cert_central": true,
"is_enterprise": true,
"is_saml_sso_only": false,
"type": "standard",
"has_container_assignments": false,
"container_visibility": [
{
"id": 5,
"public_id": "9bba0f54e97e31abb0f2a7e6e9386f1",
"name": "My Account",
"parent_id": 0,
"template_id": 5,
"ekey": "<ekey>",
"has_logo": true,
"is_active": true
},
{
"id": 94317,
"public_id": "049991aead2691319b7f8c536af186",
"name": "Support",
"parent_id": 0,
"template_id": 6,
"ekey": "<ekey>",
"has_logo": false,
"is_active": true,
"allowed_domain_names": [
"example.com"
],
"organization_assignments": [
{
"id": 11,
"name": "Organization Name"
}
]
}
]
}
이름 | 유형 | 설명 |
---|---|---|
id | int | 사용자의 ID입니다. |
username | string | 로그인에 사용하는 사용자 이름입니다. |
account_id | int | CertCentral 계정 ID입니다. |
first_name | string | 사용자의 이름입니다. |
last_name | string | 사용자의 성입니다. |
string | 사용자의 이메일 주소입니다. | |
job_title | string | 사용자의 직함입니다. |
telephone | string | 사용자의 전화 번호입니다. |
status | string |
사용자의 현재 상태입니다. 용어집 — 사용자 상태를 참조하십시오. |
last_login_date | string |
사용자가 마지막으로 로그인한 타임스탬프입니다. 형식: yyyy-MM-dd HH:mm:ss
|
container | object | 사용자의 컨테이너 연결에 대한 정보입니다. |
.. id | int | 컨테이너 ID입니다. |
.. public_id | string | 컨테이너의 공개 ID입니다. |
.. name | string | 컨테이너의 이름입니다. |
.. parent_id | int | 부모 컨테이너의 ID입니다. |
.. template_id | int | 컨테이너에 할당된 템플릿의 ID입니다. |
.. ekey | string | 사용자 지정 브랜드에 사용되는 고유한 키입니다. |
.. has_logo | bool | 컨테이너에 대한 사용자 지정 로고 상태입니다. |
.. is_active | bool | 컨테이너의 활성 상태입니다. |
access_roles | array |
사용자에게 할당된 액세스 역할입니다. 용어집 — 액세스 역할을 참조하십시오. |
.. id | int | 액세스 역할 ID입니다. |
.. name | string | 액세스 역할의 이름입니다. |
is_cert_central | bool | |
is_enterprise | bool | |
is_saml_sso_only | bool | 인증할 때 사용자가 SAML SSO을 사용해야 하는지 표시합니다. |
type | string |
사용자 유형입니다. 가능한 값: standard
|
has_container_assignments | bool | 사용자에게 특정 컨테이너 할당이 있는지 여부 |
container_visibility | array | 사용자에게 표시되는 컨테이너의 목록입니다. |
.. id | int | 컨테이너 ID입니다. |
.. public_id | string | 컨테이너의 공개 ID입니다. |
.. name | string | 컨테이너의 이름입니다. |
.. parent_id | int | 부모 컨테이너의 ID입니다. |
.. template_id | int | 컨테이너에 할당된 템플릿의 ID입니다. |
.. ekey | string | 사용자 지정 브랜드에 사용되는 고유한 키입니다. |
.. has_logo | bool | 컨테이너에 대한 사용자 지정 로고 상태입니다. |
.. is_active | bool | 컨테이너의 활성 상태입니다. |
.. allowed_domain_names | array | 컨테이너와 함께 사용할 있는 도메인의 목록입니다. |
.. organization_assignments | array | 컨테이너와 함께 사용할 있는 조직의 목록입니다. |
.. .. id | int | 조직 ID입니다. |
.. .. name | string | 조직의 법인명입니다. |