How To Delete a User in ALM using v2 API

DELETE /users/{id}

Deletes the user with the given user Id.

Implementation Notes

Delete the user with the given user id

Parameters

Parameter
Value
Description
Parameter Type
Data Type

The id of the user for whose account is being requested to delete, which is subject to necessary permissions
path
string

Response Messages

HTTP Status Code
Reason
Response Model
Headers

204
Operation successful

400
A generic http bad request error

{
“meta”: {
“error”: “string”,
“detail”: “string”
}
}

401
A generic http unauthorized access error. Access is denied due to invalid credentials

{
“meta”: {
“error”: “string”,
“detail”: “string”
}
}

Curl 

curl -X DELETE –header ‘Accept: application/vnd.api+json;charset=UTF-8’ –header ‘Authorization: oauth b302c0bf277b29b74aefa77599’ ‘https://learningmanager.adobe.com/primeapi/v2/users/15490248’

Request URL 

https://learningmanager.adobe.com/primeapi/v2/users/15490248

Response Body 

no content

Response Code

204

Response Headers

{
“access-control-allow-credentials”: “true”,
“access-control-allow-headers”: “X-acap-all-roles, X-acap-account,X-acap-user,X-acap-caller-role,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type, x-experience-api-version, Authorization, X-CSRF-TOKEN, X-HTTP-Method-Override, X-acap-ug-manager-scope, X-acap-extension-token”,
“access-control-allow-methods”: “GET, POST, OPTIONS, PUT, HEAD, DELETE, PATCH”,
“access-control-allow-origin”: “https://learningmanager.adobe.com”,
“access-control-expose-headers”: “x-rate-limit, x-burst, x-excess-requests-per-second, Retry-After”,
“age”: “-1”,
“cache-control”: “no-cache, no-store, max-age=0, must-revalidate”,
“date”: “Sun, 26 May 2024 18:47:34 GMT”,
“expires”: “-1”,
“pragma”: “no-cache”,
“server”: “openresty”,
“server-timing”: “server_resp;dur=164”,
“strict-transport-security”: “max-age=31536000; includeSubDomains”,
“x-content-type-options”: “nosniff”,
“x-frame-options”: “SAMEORIGIN”,
“x-request-id”: “gwb59d7eebd637d10ee16a826abcb”,
“x-xss-protection”: “1”,
“content-type”: null
}

The post How To Delete a User in ALM using v2 API appeared first on eLearning.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *