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 232 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 Offline
      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 Online
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Question for @mathieuRA I suppose 🤔

        1 Reply Last reply Reply Quote 0
        • MathieuRAM Offline
          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 Offline
            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 on
            • olivierlambertO olivierlambert has marked this topic as solved on

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post