---
updatedAt: 2026-03-13T12:07:14.000Z
agentTools:
  projectIndex: https://developer.druva.com/llms.txt
---

# Preserve a user

Preserves a user in Druva inSync.
When you preserve a user:
    1) Backups from the user's device are stopped and the user status changes to Preserved.
    2) inSync retains the user's data backups as long as the user is Preserved.
    3) If not activated again, the preserved user is later deleted from inSync after the duration specified in the  Auto-Delete Preserved User settings of the user's profile. 

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "3.0",
    "title": "inSync GovCloud"
  },
  "tags": [
    {
      "name": "User Management",
      "description": "Lists the APIs to get information and perform operations on users managed in Druva inSync."
    }
  ],
  "paths": {
    "/usermanagement/v1/users/{userID}/preserve": {
      "post": {
        "tags": [
          "User Management"
        ],
        "summary": "Preserve a user",
        "description": "Preserves a user in Druva inSync.\nWhen you preserve a user:\n    1) Backups from the user's device are stopped and the user status changes to Preserved.\n    2) inSync retains the user's data backups as long as the user is Preserved.\n    3) If not activated again, the preserved user is later deleted from inSync after the duration specified in the  Auto-Delete Preserved User settings of the user's profile. ",
        "security": [
          {
            "Bearer": []
          }
        ],
        "parameters": [
          {
            "name": "userID",
            "in": "path",
            "description": "The unique ID of a user in inSync. Get the ID of a user using the 'List all users' API.",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "The request did not include an authentication token or an expired authentication token was supplied."
          },
          "404": {
            "description": "The requested resource was not found."
          },
          "422": {
            "description": "The request was well-formed but was not processed due to semantic errors."
          },
          "500": {
            "description": "The request was not processed due to an internal error in inSync GovCloud.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "501": {
            "description": "Requested HTTP method is not implemented.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://govcloudapis.druva.com/insync"
    }
  ],
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "InsyncEndpoints-1006",
            "description": "Application specific error code"
          },
          "message": {
            "type": "string",
            "example": "Internal server error",
            "description": "Application specific error message"
          },
          "retryable": {
            "type": "boolean",
            "default": false,
            "description": "If true, retry using exponential backoff"
          },
          "data": {
            "type": "object",
            "description": "Dictionary of values present in the error message for localization. Currently, no values are available."
          }
        }
      }
    }
  }
}
```