<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Permissions required to authenticate to REST API in Horizon Desktops and Apps</title>
    <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Permissions-required-to-authenticate-to-REST-API/m-p/2314073#M91313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of our teams is requesting access to the Horizon 7.10 REST API to gather user session information and statistics.&amp;nbsp; I granted them Administrators(Read-only) role, but when trying to authenticate they get&amp;nbsp; &lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "status": "UNAUTHORIZED",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "timestamp": 1604401593260,&lt;/P&gt;&lt;P&gt; "error_message": "Only Administrator on Root are allowed to access the REST APIs."&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Granting full Administrator access resolves this issue but I don't want them to have full Administrator permissions.&amp;nbsp; Does anyone know the minimum necessary permissions to authenticate to the REST API and gather user session data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Nov 2020 19:35:25 GMT</pubDate>
    <dc:creator>JustinRSiess</dc:creator>
    <dc:date>2020-11-03T19:35:25Z</dc:date>
    <item>
      <title>Permissions required to authenticate to REST API</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Permissions-required-to-authenticate-to-REST-API/m-p/2314073#M91313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of our teams is requesting access to the Horizon 7.10 REST API to gather user session information and statistics.&amp;nbsp; I granted them Administrators(Read-only) role, but when trying to authenticate they get&amp;nbsp; &lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; "status": "UNAUTHORIZED",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "timestamp": 1604401593260,&lt;/P&gt;&lt;P&gt; "error_message": "Only Administrator on Root are allowed to access the REST APIs."&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Granting full Administrator access resolves this issue but I don't want them to have full Administrator permissions.&amp;nbsp; Does anyone know the minimum necessary permissions to authenticate to the REST API and gather user session data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2020 19:35:25 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Permissions-required-to-authenticate-to-REST-API/m-p/2314073#M91313</guid>
      <dc:creator>JustinRSiess</dc:creator>
      <dc:date>2020-11-03T19:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions required to authenticate to REST API</title>
      <link>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Permissions-required-to-authenticate-to-REST-API/m-p/2807504#M91314</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Accordig to this documentation: &lt;A href="https://techzone.vmware.com/resource/using-vmware-horizon-server-rest-api#_Toc47441708" target="_blank" rel="noopener"&gt;https://techzone.vmware.com/resource/using-vmware-horizon-server-rest-api#_Toc47441708&lt;/A&gt;&amp;nbsp;the user must be an administrator at /Root.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="text"&gt;Logging In to the Horizon Server REST API&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The Horizon Server REST API uses a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://en.wikipedia.org/wiki/JSON_Web_Token" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;JSON Web Token&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(JWT) for securing access to the API endpoints. This JWT is initially obtained by authenticating to the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;/login&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;endpoint. The access token, along with a refresh token used to acquire a new access token, is returned as a JSON string. The access token is added to each API call as an Authentication header. (This will be covered later in this document.) In order to access the REST API, the user must be an administrator at&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;/Root.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 07:47:36 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/Horizon-Desktops-and-Apps/Permissions-required-to-authenticate-to-REST-API/m-p/2807504#M91314</guid>
      <dc:creator>RoderikdeBlock</dc:creator>
      <dc:date>2020-11-09T07:47:36Z</dc:date>
    </item>
  </channel>
</rss>

