<?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>question Re: Nifi UI forbidden in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109651#M42516</link>
    <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/8208-c2.png"&gt;c2.png&lt;/A&gt;  second immage&lt;/P&gt;</description>
    <pubDate>Tue, 04 Oct 2016 01:17:48 GMT</pubDate>
    <dc:creator>vnandigam</dc:creator>
    <dc:date>2016-10-04T01:17:48Z</dc:date>
    <item>
      <title>Nifi UI forbidden</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109642#M42507</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Recently i enabled SSL for my nifi cluster, genearted certificates and then trying to access from browser. but am getting fallowing exception.&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/8184-capture.png"&gt;capture.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 10:12:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109642#M42507</guid>
      <dc:creator>vnandigam</dc:creator>
      <dc:date>2016-10-03T10:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi UI forbidden</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109643#M42508</link>
      <description>&lt;P&gt;The user that corresponds to the cert you are using doesn't have access to the UI. An admin has to add the user to the "view the UI" policy first.&lt;/P&gt;&lt;P&gt;You can read more about the Multi-tenant authorization in the NiFi docs: &lt;A href="https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#UI-with-multi-tenant-authorization" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#UI-with-multi-tenant-authorization&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 10:31:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109643#M42508</guid>
      <dc:creator>jpercivall</dc:creator>
      <dc:date>2016-10-03T10:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi UI forbidden</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109644#M42509</link>
      <description>&lt;P&gt;Hi@jpercivall&lt;/P&gt;&lt;P&gt;i already address intial admin in my authorizations.xml file as specified in document.&lt;/P&gt;&lt;P&gt;&amp;lt;authorizer&amp;gt;
        &amp;lt;identifier&amp;gt;file-provider&amp;lt;/identifier&amp;gt;
        &amp;lt;class&amp;gt;org.apache.nifi.authorization.FileAuthorizer&amp;lt;/class&amp;gt; &lt;/P&gt;&lt;P&gt;        &amp;lt;property name="Authorizations File"&amp;gt;/var/lib/nifi/conf/authorizations.xml&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;
        &amp;lt;property name="Users File"&amp;gt;/var/lib/nifi/conf/users.xml&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;
      &amp;lt;property name="Initial Admin Identity"&amp;gt;CN=nifiadmin,OU=hortonworks&amp;lt;/property&amp;gt; &lt;/P&gt;&lt;P&gt;        &amp;lt;property name="Legacy Authorized Users File"&amp;gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;but still facing same issue&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 10:50:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109644#M42509</guid>
      <dc:creator>vnandigam</dc:creator>
      <dc:date>2016-10-03T10:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi UI forbidden</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109645#M42510</link>
      <description>&lt;P&gt;any thoughts in this issue?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 19:02:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109645#M42510</guid>
      <dc:creator>vnandigam</dc:creator>
      <dc:date>2016-10-03T19:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi UI forbidden</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109646#M42511</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13176/vnandigam.html" nodeid="13176"&gt;@vnandigam&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There are two parts to successfully accessing the NiFi UI, Authentication and Authorization. Since you are getting the insufficient permissions screen, you have successfully authenticated.&lt;/P&gt;&lt;P&gt;First you should confirm the DN pattern of this user that has successfully authenticated. If you tail the nifi-user.log while you access your NiFi's UI, you will see a line similar to the following:&lt;/P&gt;&lt;PRE&gt;2016-10-03 11:47:15,134 INFO [NiFi Web Server-65795] o.a.n.w.s.NiFiAuthenticationFilter Authentication success for CN=nifiadmin,OU=hortonworks&lt;/PRE&gt;&lt;P&gt;Examine the DN  presented.  Does it match exactly what you had in your "Initial Admin Identity" property you set?&lt;/P&gt;&lt;P&gt;Next you will want to confirm that this user was properly added to the users.xml file:&lt;/P&gt;&lt;PRE&gt;&amp;lt;user identifier="9d7b4fe2-8e8b-30a5-8e2a-f6a6a18addfa" identity="CN=nifiadmin,OU=hortonworks"/&amp;gt;&lt;/PRE&gt;&lt;P&gt;The user if it exists will be assigned a UUID (The above UUID is just an example and yours will be different.)&lt;/P&gt;&lt;P&gt;Next, verify this user was given the ability to "view the user interface" by examining the authorizations.xml file.&lt;/P&gt;&lt;P&gt;Within this file you would expect to see the user's UUID above assigned to one or more policies.&lt;/P&gt;&lt;P&gt;In order to even see the UI, users must have the "R" to the "/flow" policy:&lt;/P&gt;&lt;PRE&gt;&amp;lt;policy identifier="6a57bf03-2a93-39d0-87dd-e3aa30f0cd4d" resource="/flow" action="R"&amp;gt;
            &amp;lt;user identifier="9d7b4fe2-8e8b-30a5-8e2a-f6a6a18addfa"/&amp;gt;
&amp;lt;/policy&amp;gt;
&lt;/PRE&gt;&lt;P&gt;In order to be able to add users to additional access policies, the user would also need "R" and "W"  to the "/policies" policy (You can think of this as the Global Admin policy):&lt;/P&gt;&lt;PRE&gt;&amp;lt;policy identifier="9a3a1c92-fa10-3f9d-b2f7-5cd56cd2ca00" resource="/policies" action="R"&amp;gt;
            &amp;lt;user identifier="9d7b4fe2-8e8b-30a5-8e2a-f6a6a18addfa"/&amp;gt;
&amp;lt;/policy&amp;gt;
&amp;lt;policy identifier="1ff611dd-1536-31f5-a610-64e192e4c43c" resource="/policies" action="W"&amp;gt;
            &amp;lt;user identifier="9d7b4fe2-8e8b-30a5-8e2a-f6a6a18addfa"/&amp;gt;
&amp;lt;/policy&amp;gt;
&lt;/PRE&gt;&lt;P&gt;If you user has both of the above, you should be able to access the UI and use the interface to grant additional users access and add additional levels of access for yourself and/or any user you added.&lt;/P&gt;&lt;P&gt;The following policies are what gives a user the ability to create, modify, and delete new users and/or groups:&lt;/P&gt;&lt;PRE&gt;&amp;lt;policy identifier="dee16f9e-1f09-37ee-806b-e372f1051816" resource="/tenants" action="R"&amp;gt;
            &amp;lt;user identifier="9d7b4fe2-8e8b-30a5-8e2a-f6a6a18addfa"/&amp;gt;
&amp;lt;/policy&amp;gt;
&amp;lt;policy identifier="69839728-eaf3-345d-849f-e2790cf236ab" resource="/tenants" action="W"&amp;gt;
            &amp;lt;user identifier="9d7b4fe2-8e8b-30a5-8e2a-f6a6a18addfa"/&amp;gt;
&amp;lt;/policy&amp;gt;
&lt;/PRE&gt;&lt;P&gt;If you find that your authorizations.xml file was empty (Had no policies set in it), it is likely your NiFi had been started previous to you setting the "Initial Admin Identity" property.  This Property &lt;STRONG&gt;ONLY&lt;/STRONG&gt; works the first time NiFi is started.  If the authorizations.xml file was already generated, it will not be re-generated or updated on later starts of NiFi.  To correct this, you can delete the authorizations.xml file and restart your NiFi.  Since it does not exist this time, the "Initial Admin Identity" user will be created this time.&lt;/P&gt;&lt;P&gt;***Note, if other users already have granted authorizations in this file, those will be lost and will need to be re-created.  Only delete the authorizations.xml file if wishing to start over from scratch.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 19:18:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109646#M42511</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2016-10-03T19:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi UI forbidden</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109647#M42512</link>
      <description>&lt;P&gt;thanks @&lt;A href="https://community.hortonworks.com/users/525/mclark.html"&gt;mclark&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As per i remember i already checked authorization,xml, that contains polices for UUID. but am not sure weather it has access R access to /polices ... will check that by tomorrow let u guys know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 20:35:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109647#M42512</guid>
      <dc:creator>vnandigam</dc:creator>
      <dc:date>2016-10-03T20:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi UI forbidden</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109648#M42513</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/525/mclark.html"&gt;mclark&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hi, I have check all things you mentioned in the above, it has policies, users too.. but still facing authorization issue.&lt;/P&gt;&lt;P&gt;any thoughts on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 22:18:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109648#M42513</guid>
      <dc:creator>vnandigam</dc:creator>
      <dc:date>2016-10-03T22:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi UI forbidden</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109649#M42514</link>
      <description>&lt;P&gt;There should probably be a space between the comma and OU of your initial admin identity.&lt;/P&gt;&lt;P&gt;E.g. CN=nifiadmin, OU=hortonworks&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 00:38:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109649#M42514</guid>
      <dc:creator>brosander</dc:creator>
      <dc:date>2016-10-04T00:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi UI forbidden</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109650#M42515</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/11287/brosander.html"&gt;brosander&lt;/A&gt;&lt;/P&gt;&lt;P&gt;. pleaswplease check fallowing immages am fallowing exactly same way including spaces too.&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/8207-c1.png"&gt;c1.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 01:17:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109650#M42515</guid>
      <dc:creator>vnandigam</dc:creator>
      <dc:date>2016-10-04T01:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi UI forbidden</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109651#M42516</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/8208-c2.png"&gt;c2.png&lt;/A&gt;  second immage&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 01:17:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109651#M42516</guid>
      <dc:creator>vnandigam</dc:creator>
      <dc:date>2016-10-04T01:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi UI forbidden</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109652#M42517</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/11287/brosander.html"&gt;brosander&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;thanks or your help brosander. its working now, isssue with white space as like u mentioned. thanks for help&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 01:33:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-UI-forbidden/m-p/109652#M42517</guid>
      <dc:creator>vnandigam</dc:creator>
      <dc:date>2016-10-04T01:33:14Z</dc:date>
    </item>
  </channel>
</rss>

