• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
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
511
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 29 Dec 2020, 11:06

    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
    • D
      dan
      last edited by 5 Jan 2021, 03:59

      @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 5 Jan 2021, 14:51

        @dan

        Thanks for the reply. It works

        1 Reply Last reply Reply Quote 1
        • P
          peterwilson9117 Banned
          last edited by 6 Jan 2021, 17:17

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          1 out of 4
          • First post
            1/4
            Last post