1 Reply Latest reply on Dec 21, 2018 8:21 AM by daphnissov

    Username in Domain\Username format with the vRA REST API

    jmedd Enthusiast
    vExpert

      Does anybody know if it is possible to authenticate with the vRA REST API using a username in the Domain\Username format?  The format username@domain works fine, but Domain\Username generates this as a response:

       

      {

          "errors": [

              {

                  "code": 90135,

                  "source": null,

                  "message": "Unable to authenticate user Domain\\username in tenant Tenant01.",

                  "systemMessage": "90135-Unable to authenticate user Domain\\username in tenant Tenant01.",

                  "moreInfoUrl": null

              }

          ]

      }

       

      URL: https://vRAServer/identity/api/tokens

      Method: POST

      JSON Body:

       

      {

          "username": "Domain\\username",

          "password": "Password",

          "tenant": "Tenant01"

      }

       

      Note: had to make it a double backslash in the JSON body, to escape the \ character.