> ## Documentation Index
> Fetch the complete documentation index at: https://hc.saas-manager.biz.nuro.jp/llms.txt
> Use this file to discover all available pages before exploring further.

# Deactivate or delete an identity-provider directory user

> Deprovisions the identity-provider (Entra ID) directory user itself — 'deactivate' blocks sign-in while retaining app assignments, 'delete' removes the directory user and every app assignment it grants. Distinct from unassigning a single app. Targets the parent identity-provider workspace (resolved from a managed app workspace when supplied).



## OpenAPI

````yaml https://api.saas-manager.biz.nuro.jp/public-api/docs/v1-json post /api/v1/organizations/{organizationId}/workspaces/{workspaceId}/idp-app-assignments/deprovision-user
openapi: 3.0.0
info:
  title: Assist SaaS Manager Public API
  description: >-
    Assist SaaS Manager API is a RESTful API providing programmatic access to
    much of the data in the system. It provides predictable URLs for accessing
    resources, and uses built-in HTTP features to receive commands and return
    responses. This makes it easy to communicate with from a wide variety of
    environments, from command-line utilities to gadgets to the browser URL bar
    itself.
  version: '1.0'
  contact: {}
servers:
  - url: https://api.saas-manager.biz.nuro.jp
security: []
tags:
  - name: Organizations
    description: ''
  - name: Users
    description: ''
  - name: Directory
    description: ''
  - name: Departments
    description: ''
  - name: Locations
    description: ''
  - name: Companies
    description: ''
  - name: Structures
    description: ''
  - name: People
    description: ''
  - name: People Stats
    description: ''
  - name: Employee Masters
    description: ''
  - name: Workspaces
    description: ''
  - name: Custom Service and Workspace
    description: ''
  - name: Custom Services
    description: ''
  - name: Workspace Accounts
    description: ''
  - name: Workspace Licenses
    description: ''
  - name: Accounts
    description: ''
  - name: Contracts
    description: ''
  - name: Devices
    description: ''
  - name: Devices (alpha)
    description: ''
  - name: Alerts
    description: ''
  - name: Spends
    description: ''
  - name: Usage Optimization
    description: ''
  - name: Services
    description: ''
  - name: Service Roles
    description: ''
  - name: Service Licenses
    description: ''
  - name: Recommended Services
    description: ''
  - name: Requests
    description: ''
  - name: AuditLogs
    description: ''
  - name: EventLogs
    description: ''
paths:
  /api/v1/organizations/{organizationId}/workspaces/{workspaceId}/idp-app-assignments/deprovision-user:
    post:
      tags:
        - Services
      summary: Deactivate or delete an identity-provider directory user
      description: >-
        Deprovisions the identity-provider (Entra ID) directory user itself —
        'deactivate' blocks sign-in while retaining app assignments, 'delete'
        removes the directory user and every app assignment it grants. Distinct
        from unassigning a single app. Targets the parent identity-provider
        workspace (resolved from a managed app workspace when supplied).
      operationId: publicDeprovisionIdpUser
      parameters:
        - name: organizationId
          required: true
          in: path
          schema:
            type: number
        - name: workspaceId
          required: true
          in: path
          schema:
            type: number
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicDeprovisionIdpUserRequestDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicIdpRequestResponseDto'
        '400':
          description: Workspace is not an identity provider or one of its managed apps
        '401':
          description: Invalid or missing API key
      security:
        - API-Key: []
components:
  schemas:
    PublicDeprovisionIdpUserRequestDto:
      type: object
      properties:
        uniqueKey:
          type: string
          description: >-
            Unique key of the aggregated identity-provider directory account to
            deprovision.
          example: user@example.com
        mode:
          type: string
          enum:
            - deactivate
            - delete
          description: >-
            Deprovision mode. 'deactivate' blocks sign-in but retains the
            account and its app assignments; 'delete' removes the directory user
            and every app assignment it grants.
          example: deactivate
        unassignApps:
          type: boolean
          default: false
          description: >-
            Only meaningful with mode 'deactivate': when true, also unassigns
            the user from every IdP-managed app they are assigned to (one
            unassignment per app). Ignored for 'delete', which already removes
            all assignments by deleting the directory user.
        workflowRunId:
          type: string
          description: Optional workflow run id for automation correlation.
      required:
        - uniqueKey
        - mode
    PublicIdpRequestResponseDto:
      type: object
      properties:
        requestId:
          type: string
          readOnly: true
          example: '1'
      required:
        - requestId
  securitySchemes:
    API-Key:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: >-
        For authenticated requests, set the `Authorization: Bearer your_api_key`
        parameter in the header. <br/>You can create and manage your API Keys by
        visiting the **API Keys** tab in the **Settings** page of your
        organization in <a target='_blank' rel='noopener noreferrer'
        href='https://www.saas-manager.biz.nuro.jp/'>Assist SaaS Manager</a>

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.