FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    If I soft delete a user can I still retrieve and/or update it via the API (without first reactivating it)?

    Scheduled Pinned Locked Moved
    Q&A
    0
    2
    945
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • joshuaJ
      joshua
      last edited by

      If I soft delete a user can I still retrieve and/or update it via the API (without first reactivating it)?

      1 Reply Last reply Reply Quote 0
      • joshuaJ
        joshua
        last edited by

        The user can be retrieved but will have a status of {"user" : { "active" : false } }
        The user cannot be updated but will instead have this error return

        {
          "fieldErrors": {
            "userId": [
              {
                "code": "[inactive]userId",
                "message": "The User with Id [00000000-0000-0000-0000-000000000007] is inactive and cannot be updated until it is reactivated."
              }
            ]
          }
        }
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post