사용자 업데이트
https://api.datadoghq.com/api/v2/scim/Users/{user_uuid}https://api.us3.datadoghq.com/api/v2/scim/Users/{user_uuid}https://api.us5.datadoghq.com/api/v2/scim/Users/{user_uuid}https://api.datadoghq.eu/api/v2/scim/Users/{user_uuid}https://api.ap1.datadoghq.com/api/v2/scim/Users/{user_uuid}https://api.ap2.datadoghq.com/api/v2/scim/Users/{user_uuid}https://api.uk1.datadoghq.com/api/v2/scim/Users/{user_uuid}https://api.ddog-gov.com/api/v2/scim/Users/{user_uuid}https://api.us2.ddog-gov.com/api/v2/scim/Users/{user_uuid}개요
지정된 user_uuid를 가진 사용자를 업데이트합니다.
Datadog 역할을 업데이트하려면 value 필드에 역할 UUID가 포함된 roles 배열을 포함합니다.
인수
경로 파라미터
user_uuid [required]None
요청
Body Data (required)
active사용자에 대한 정의입니다.
emailsEmail addresses for the user.
primaryBoolean indicating if this email is the primary email address.
typeThe type of email.
workvalueEmail addresses for the user.
idThe identifier of the resource. Not required when creating a user.
metaMetadata associated with a user.
createdThe date and time the user was created.
lastModifiedThe date and time the user was last changed.
locationURL identifying the resource.
resourceTypeType of resource.
nameThe components of user's real name
formattedThe full name, including all middle names, titles, and suffixes as appropriate, formatted for display.
rolesDatadog roles assigned to the user. Provide the role UUID in value when provisioning or updating roles through SCIM.
value [required]Datadog role UUID.
schemasUser JSON Schemas.
titleThe user's title.
userNameUnique identifier for the User.
{
"active": false,
"emails": [
{
"primary": false,
"type": "string",
"value": "string"
}
],
"id": "string",
"meta": {
"created": "2024-10-17 12:53:35.793883+00:00",
"lastModified": "2024-10-19 12:53:35.793883+00:00",
"location": "https://app.datadoghq.com/api/scim/v2/Users/13a95654-b76d-478d-8636-157a7e461d7c",
"resourceType": "User"
},
"name": {
"formatted": "string"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "string",
"userName": "string"
}응답
OK
Definition of a user.
activeA Boolean value indicating the User's administrative status.
emailsEmail addresses for the user.
primaryBoolean indicating if this email is the primary email address.
typeThe type of email.
workvalueEmail addresses for the user.
idThe identifier of the resource. Not required when creating a user.
metaMetadata associated with a user.
createdThe date and time the user was created.
lastModifiedThe date and time the user was last changed.
locationURL identifying the resource.
resourceTypeType of resource.
nameThe components of user's real name
formattedThe full name, including all middle names, titles, and suffixes as appropriate, formatted for display.
rolesDatadog roles assigned to the user. Provide the role UUID in value when provisioning or updating roles through SCIM.
displayHuman-readable Datadog role name returned in responses.
value [required]Datadog role UUID.
schemasUser JSON Schemas.
titleThe user's title.
userNameUnique identifier for the User.
{
"active": false,
"emails": [
{
"primary": false,
"type": "string",
"value": "string"
}
],
"id": "string",
"meta": {
"created": "2024-10-17 12:53:35.793883+00:00",
"lastModified": "2024-10-19 12:53:35.793883+00:00",
"location": "https://app.datadoghq.com/api/scim/v2/Users/13a95654-b76d-478d-8636-157a7e461d7c",
"resourceType": "User"
},
"name": {
"formatted": "string"
},
"roles": [
{
"display": "Datadog Read Only Role",
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "string",
"userName": "string"
}Bad Request
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Not Found
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}Too many requests
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}코드 예시
## default
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PUT "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"active": true,
"emails": [
{
"primary": true,
"type": "work",
"value": "john.doe@datadoghq.com"
}
],
"id": "e43536e9-33fe-43f8-90b8-d3e39a7dd6ad",
"name": {
"formatted": "John Doe"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "Mr.",
"userName": "john.doe@datadoghq.com"
}
EOF
## json-request-body
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PUT "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"active": true,
"emails": [
{
"primary": true,
"type": "work",
"value": "john.doe@datadoghq.com"
}
],
"id": "e43536e9-33fe-43f8-90b8-d3e39a7dd6ad",
"name": {
"formatted": "John Doe"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "Mr.",
"userName": "john.doe@datadoghq.com"
}
EOF## default
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PUT "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"active": true,
"emails": [
{
"primary": true,
"type": "work",
"value": "john.doe@datadoghq.com"
}
],
"id": "e43536e9-33fe-43f8-90b8-d3e39a7dd6ad",
"name": {
"formatted": "John Doe"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "Mr.",
"userName": "john.doe@datadoghq.com"
}
EOF
## json-request-body
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PUT "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"active": true,
"emails": [
{
"primary": true,
"type": "work",
"value": "john.doe@datadoghq.com"
}
],
"id": "e43536e9-33fe-43f8-90b8-d3e39a7dd6ad",
"name": {
"formatted": "John Doe"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "Mr.",
"userName": "john.doe@datadoghq.com"
}
EOF## default
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PUT "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"active": true,
"emails": [
{
"primary": true,
"type": "work",
"value": "john.doe@datadoghq.com"
}
],
"id": "e43536e9-33fe-43f8-90b8-d3e39a7dd6ad",
"name": {
"formatted": "John Doe"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "Mr.",
"userName": "john.doe@datadoghq.com"
}
EOF
## json-request-body
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PUT "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"active": true,
"emails": [
{
"primary": true,
"type": "work",
"value": "john.doe@datadoghq.com"
}
],
"id": "e43536e9-33fe-43f8-90b8-d3e39a7dd6ad",
"name": {
"formatted": "John Doe"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "Mr.",
"userName": "john.doe@datadoghq.com"
}
EOF## default
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PUT "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"active": true,
"emails": [
{
"primary": true,
"type": "work",
"value": "john.doe@datadoghq.com"
}
],
"id": "e43536e9-33fe-43f8-90b8-d3e39a7dd6ad",
"name": {
"formatted": "John Doe"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "Mr.",
"userName": "john.doe@datadoghq.com"
}
EOF
## json-request-body
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PUT "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"active": true,
"emails": [
{
"primary": true,
"type": "work",
"value": "john.doe@datadoghq.com"
}
],
"id": "e43536e9-33fe-43f8-90b8-d3e39a7dd6ad",
"name": {
"formatted": "John Doe"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "Mr.",
"userName": "john.doe@datadoghq.com"
}
EOF## default
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PUT "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"active": true,
"emails": [
{
"primary": true,
"type": "work",
"value": "john.doe@datadoghq.com"
}
],
"id": "e43536e9-33fe-43f8-90b8-d3e39a7dd6ad",
"name": {
"formatted": "John Doe"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "Mr.",
"userName": "john.doe@datadoghq.com"
}
EOF
## json-request-body
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PUT "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"active": true,
"emails": [
{
"primary": true,
"type": "work",
"value": "john.doe@datadoghq.com"
}
],
"id": "e43536e9-33fe-43f8-90b8-d3e39a7dd6ad",
"name": {
"formatted": "John Doe"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "Mr.",
"userName": "john.doe@datadoghq.com"
}
EOF## default
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PUT "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"active": true,
"emails": [
{
"primary": true,
"type": "work",
"value": "john.doe@datadoghq.com"
}
],
"id": "e43536e9-33fe-43f8-90b8-d3e39a7dd6ad",
"name": {
"formatted": "John Doe"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "Mr.",
"userName": "john.doe@datadoghq.com"
}
EOF
## json-request-body
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PUT "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"active": true,
"emails": [
{
"primary": true,
"type": "work",
"value": "john.doe@datadoghq.com"
}
],
"id": "e43536e9-33fe-43f8-90b8-d3e39a7dd6ad",
"name": {
"formatted": "John Doe"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "Mr.",
"userName": "john.doe@datadoghq.com"
}
EOF## default
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PUT "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"active": true,
"emails": [
{
"primary": true,
"type": "work",
"value": "john.doe@datadoghq.com"
}
],
"id": "e43536e9-33fe-43f8-90b8-d3e39a7dd6ad",
"name": {
"formatted": "John Doe"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "Mr.",
"userName": "john.doe@datadoghq.com"
}
EOF
## json-request-body
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PUT "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"active": true,
"emails": [
{
"primary": true,
"type": "work",
"value": "john.doe@datadoghq.com"
}
],
"id": "e43536e9-33fe-43f8-90b8-d3e39a7dd6ad",
"name": {
"formatted": "John Doe"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "Mr.",
"userName": "john.doe@datadoghq.com"
}
EOF## default
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PUT "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"active": true,
"emails": [
{
"primary": true,
"type": "work",
"value": "john.doe@datadoghq.com"
}
],
"id": "e43536e9-33fe-43f8-90b8-d3e39a7dd6ad",
"name": {
"formatted": "John Doe"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "Mr.",
"userName": "john.doe@datadoghq.com"
}
EOF
## json-request-body
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PUT "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"active": true,
"emails": [
{
"primary": true,
"type": "work",
"value": "john.doe@datadoghq.com"
}
],
"id": "e43536e9-33fe-43f8-90b8-d3e39a7dd6ad",
"name": {
"formatted": "John Doe"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "Mr.",
"userName": "john.doe@datadoghq.com"
}
EOF## default
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PUT "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"active": true,
"emails": [
{
"primary": true,
"type": "work",
"value": "john.doe@datadoghq.com"
}
],
"id": "e43536e9-33fe-43f8-90b8-d3e39a7dd6ad",
"name": {
"formatted": "John Doe"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "Mr.",
"userName": "john.doe@datadoghq.com"
}
EOF
## json-request-body
# Path parameters
export user_uuid="CHANGE_ME"
# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
export DD_BEARER_TOKEN="<DD_BEARER_TOKEN>"
curl -X PUT "https://api.${DD_SITE}/api/v2/scim/Users/${user_uuid}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"active": true,
"emails": [
{
"primary": true,
"type": "work",
"value": "john.doe@datadoghq.com"
}
],
"id": "e43536e9-33fe-43f8-90b8-d3e39a7dd6ad",
"name": {
"formatted": "John Doe"
},
"roles": [
{
"value": "00000000-0000-0000-0000-000000000001"
}
],
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User"
],
"title": "Mr.",
"userName": "john.doe@datadoghq.com"
}
EOF