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

    List the registered users. Getting response code as 401 Unauthorised

    Scheduled Pinned Locked Moved
    General Discussion
    0
    4
    510
    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.
    • R
      ramkumarrammohan
      last edited by

      Hi, Im using fusionauth for a small setup. So using this with default db search.

      I tried to fetch the list of users with the following info.

      HttpMethod = GET
      Url: http://localhost:9011/api/user/search?queryString="*"
      Above request made with Authorization in the request header part.

      I am getting 401 Unauthorised error from fusionauth API response.

      Is there any other fields that need to be passed?

      But if i use the same authorization token with GET: http://localhost:9011/api/user/ its getting success response.

      1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by

        @ramkumarrammohan

        I think you want:

        http://localhost:9011/api/user/search?queryString=*
        

        No double quotes around it.

        Does that work?

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        1 Reply Last reply Reply Quote 0
        • R
          ramkumarrammohan
          last edited by

          @dan

          Thanks for the reply. It works

          1 Reply Last reply Reply Quote 1
          • P
            peterwilson9117 Banned
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • First post
              Last post