Updated on 2024-12-30 GMT+08:00

Deleting a User Event

This API is used to synchronize deleted users to the application system.

URL

POST https://{app_domain}/callback

Request Header

Authorization: Bearer {access_token}

Request Parameters

Table 1 Request parameter

Parameter

Type

Description

id

String

  • User ID of a downstream enterprise application.
  • After a user is successfully synchronized by referring to Adding a User Event, a user is created for a downstream enterprise application. At the same time, a user ID is generated and sent back to OneAccess as the unique identifier of the user.

Response Parameters

Table 2 Request parameters

Parameter

Type

Description

code

String

Return code. 200 indicates success.

message

Integer

Description of the error cause.

Example Request

  • Example request with message signature and encryption enabled:
    {
    	"nonce": "AmgjjEAJbrMzWmUw",
    	"timestamp": "15093849585",
    	"eventType": "DELETE_USER",
    	"data": "6IXEWxQhUa3UqsXHWsDZ5LTAo/xU3zhjq9H3syCuFYDYKg==",
    	"signature": "K08yDiTEc094KoccOY+VYLQFxxQ="
    }
  • The decrypted JSON string in the request body follows this format:
    {
    	"id": "c3a26dd3-27a0-4dec-a2ac-ce211e10...."
    }

Example Response

Status code: 200

Request successful.
{
	"code": "200",
	"message": "success"
}