Delete a user

delete

https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/users/{userId}

The API submits a request to delete an existing user and the user deletion happens asynchronously. When a user is deleted, any jobs created by the user are stopped and deleted. Also, any blackouts created by the user are deleted. However, the user can not be deleted if there any blackouts created by the user that are active at the time the call to delete the user is issued. This situation is considered an invalid state from which to delete a user. First, any and all of these active blackouts must be stopped, and a failed delete user call must be reissued.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Information for User deletion
Show Source
  • Name of User to assign the secure objects owned by User who is getting deleted. If delegateUserName is not specified then the secure objects owned by the user getting deleted, will be deleted.
    Example: USER_B
  • Flag to force the deletion of User though User has active logged-in sessions. Default value is false.
    Example: true
Back to Top

Response

Supported Media Types

202 Response

A request to delete the user was accepted
Headers
  • URL to get the status of Delete User action.

401 Response

Unauthorized
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

403 Response

Forbidden
Body ()
Root Schema : MissingPrivErrorResponse
Type: object
Response sent back as an Error in case required privileges are missing
Show Source
Match All
Show Source
Nested Schema : missingPrivileges
Type: array
Privileges which are missing due to that the Error is occurred. This will have privilege internal name and display name only in the Privilege object
Show Source
Nested Schema : ErrorResponse
Type: object
Error response
Show Source
Nested Schema : MissingPrivilegeSummary
Type: object
It represents a Privilege which is missing on a Resource to view or manage it.
Show Source

404 Response

Not Found
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

409 Response

User is currently having active sessions
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

500 Response

Internal Server Error
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

503 Response

Service Unavailable
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source

Default Response

Unexpected Error
Body ()
Root Schema : ErrorResponse
Type: object
Error response
Show Source
Back to Top