XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    API Fetching a list of users with OTP activated

    Scheduled Pinned Locked Moved Solved REST API
    4 Posts 3 Posters 20 Views 3 Watching
    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.
    • F Online
      fcgo
      last edited by

      Hello I'm trying to fetch the users with "otp" activated for reporting purpose, but there is no "OTP" field in the output of the "get /users/id"

      238a090a-25e5-423d-8ac6-ef0ce78b2d43-image.png

      Will this feature be impletmeneted on next release ? it woulld be very useful for our company.

      Br,

      MathieuRAM 1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Question for @mathieuRA I suppose 🤔

        1 Reply Last reply Reply Quote 0
        • MathieuRAM Online
          MathieuRA Vates 🪐 XO Team @fcgo
          last edited by

          @fcgo Hi.
          The OTP field is in the preferences property

          E.g.

            {
              "email": "foo",
              "permission": "none",
              "pw_hash": "***obfuscated***",
              "preferences": {
                "otp": "<value>"
              },
              "groups": [],
              "id": "694e8856-04c9-448b-90ef-2beb96d119cb",
              "name": "foo",
              "href": "/rest/v0/users/694e8856-04c9-448b-90ef-2beb96d119cb"
            }
          
          F 1 Reply Last reply Reply Quote 1
          • F Online
            fcgo @MathieuRA
            last edited by

            @MathieuRA Thank you, perfect

            Br,

            1 Reply Last reply Reply Quote 0
            • olivierlambertO olivierlambert marked this topic as a question
            • olivierlambertO olivierlambert has marked this topic as solved
            • First post
              Last post