Skip to Main Content
Spotfire Ideas Portal

Get username and default domain via the API

I'd like to be able to retrieve the current user name, who is logged into Spotfire, and request the default domain for the current Spotfire connection, all using calls to API.

  • Attach files
      Drop here to upload
    • Guest
      Reply
      |
      May 16, 2019

      Hi Magnus,

      At the moment just C# Analyst and Web, exactly as you mention (but could later extend to python).

      Best Regards,
      Anton.

    • Admin
      Magnus Rylander
      Reply
      |
      May 16, 2019

      Hi Anton, how do you expect to access the API, i.e. a C# API (avaiable from Analyst and Web client) or someting else?

    • Guest
      Reply
      |
      Mar 26, 2019

      Hi Jens,

       

      I would like to use the username in different circumstances, but one immediate example is that I would like to be able to execute the 'configtool' (batch file) to export and import parts of the library.
      Since I do not know beforehand who's going to be logged in, I would like to query Spotfire about the user.
      I also need to be able to separate the user and the domain, and if possible retrieve the default domain; this is so since in the help file of the configtool I find the following instructions:

      -u value
      --user=value
      The user performing the export, should be a Library Administrator.
      The name of the user needs to include the user's domain name, e.g.
      'DOMAIN\user' or 'user@domain', unless the user is part of the
      configured default domain. This argument is mandatory.

      Kind regards, Anton.

    • Guest
      Reply
      |
      Mar 22, 2019

      Would you please be able to describe the use case a bit (especially for the default domain)?