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

    expired user search query

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    3
    876
    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.
    • G
      ganr0307
      last edited by

      I'm trying to query to get expired users in user search api but not getting any results.
      here are the details:
      curl --location 'http://localhost:9011/api/user/search'
      --header 'Authorization: API KEY'
      --header 'Content-Type: application/json'
      --data '{
      "search": {
      "query": "{"range":{"expiry":{"lt":"now"}}}"
      }
      }'

      Response:
      {
      "expandable": [],
      "total": 0,
      "users": []
      }

      I have one expired user supposed to get as response
      can you help me, hoe to query to get expired users?

      mark.robustelliM 1 Reply Last reply Reply Quote 0
      • mark.robustelliM
        mark.robustelli @ganr0307
        last edited by

        @ganr0307 I should have some time next week to check this out. Will let you know if I find anything.

        G 1 Reply Last reply Reply Quote 0
        • G
          ganr0307 @mark.robustelli
          last edited by

          @mark-robustelli Sure,Thanks!
          If you find anything please let me know

          1 Reply Last reply Reply Quote 0
          • First post
            Last post