Skip to Content

GetUserDeletionPreview

GET
/auth/v1/users/current/deletion-preview

Authorization

headerX-API-Key<token>

API key for protected endpoints, supplied in the X-API-Key header.

Query Parameters

page_size?page_size
Formatint32
page_token?page_token

Response Body

200application/json

Success

type: unknown

{
  "$ref": "#/components/schemas/auth.v1.GetUserDeletionPreviewResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "entries": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/auth.v1.UserDeletionPlanEntry",
          "$ref-value": {
            "type": "object",
            "properties": {
              "kind": {
                "title": "kind",
                "$ref": "#/components/schemas/auth.v1.UserDeletionPlanEntry.Kind",
                "$ref-value": {
                  "type": "string",
                  "title": "Kind",
                  "enum": [
                    "KIND_UNSPECIFIED",
                    "KIND_DELETE_ORGANIZATION",
                    "KIND_LEAVE_ORGANIZATION",
                    "KIND_SOLE_OWNER_BLOCKER",
                    "KIND_INTERNAL_ORG_BLOCKER",
                    "KIND_PERSONAL_ORG_MEMBER"
                  ]
                }
              },
              "org_id": {
                "type": "string",
                "title": "org_id"
              },
              "org_name": {
                "type": "string",
                "title": "org_name"
              },
              "affected_user_id": {
                "type": "string",
                "title": "affected_user_id",
                "description": "Set when another member will lose access to the personal org."
              },
              "affected_name": {
                "type": "string",
                "title": "affected_name",
                "description": "The affected member's full name."
              }
            },
            "title": "UserDeletionPlanEntry",
            "additionalProperties": false
          }
        },
        "title": "entries"
      },
      "next_page_token": {
        "type": "string",
        "title": "next_page_token"
      }
    },
    "title": "GetUserDeletionPreviewResponse",
    "additionalProperties": false
  }
}
default
curl -X GET 'https://api.rixl.com/auth/v1/users/current/deletion-preview'

Success

application/json

{
  "$ref": "#/components/schemas/auth.v1.GetUserDeletionPreviewResponse",
  "$ref-value": {
    "type": "object",
    "properties": {
      "entries": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/auth.v1.UserDeletionPlanEntry",
          "$ref-value": {
            "type": "object",
            "properties": {
              "kind": {
                "title": "kind",
                "$ref": "#/components/schemas/auth.v1.UserDeletionPlanEntry.Kind",
                "$ref-value": {
                  "type": "string",
                  "title": "Kind",
                  "enum": [
                    "KIND_UNSPECIFIED",
                    "KIND_DELETE_ORGANIZATION",
                    "KIND_LEAVE_ORGANIZATION",
                    "KIND_SOLE_OWNER_BLOCKER",
                    "KIND_INTERNAL_ORG_BLOCKER",
                    "KIND_PERSONAL_ORG_MEMBER"
                  ]
                }
              },
              "org_id": {
                "type": "string",
                "title": "org_id"
              },
              "org_name": {
                "type": "string",
                "title": "org_name"
              },
              "affected_user_id": {
                "type": "string",
                "title": "affected_user_id",
                "description": "Set when another member will lose access to the personal org."
              },
              "affected_name": {
                "type": "string",
                "title": "affected_name",
                "description": "The affected member's full name."
              }
            },
            "title": "UserDeletionPlanEntry",
            "additionalProperties": false
          }
        },
        "title": "entries"
      },
      "next_page_token": {
        "type": "string",
        "title": "next_page_token"
      }
    },
    "title": "GetUserDeletionPreviewResponse",
    "additionalProperties": false
  }
}