<?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: Calling nifi Api  using Postman in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344176#M234093</link>
    <description>&lt;P&gt;Hi Andre,&lt;/P&gt;&lt;P&gt;Not sure what do you mean by "enabled Ranger for authorization"? Can you please elaborate? Also the user Im getting the access token for is the same user that can log in to nifi and have all kind of permissions added to view\modify any workflow. Not sure what else I could be missing.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 19 May 2022 20:11:11 GMT</pubDate>
    <dc:creator>SAMSAL</dc:creator>
    <dc:date>2022-05-19T20:11:11Z</dc:date>
    <item>
      <title>Calling nifi Api  using Postman</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/343993#M234070</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a secured Nifi cluster. Im trying to call a nifi api to start\stop processor using postman. I followed the instruction for the api "PUT /processors/{id}/run-status". Provided the Bearer token and the Json Body. However I keep getting 403 Forbidden message. Does anybody know why? I'm able to run other APIs successfully such as getting processor info "GET /processors/{id}"! Im guessing its because Im using SSL secured nifi with jks keystore and truststore, but not sure how to provide this information to postman. Can anyone help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 16:04:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/343993#M234070</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2022-05-18T16:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calling nifi Api  using Postman</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344075#M234075</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your NiFi cluster was secured only with TLS (no Kerberos and/or LDAP external providers for authentication), you must have generate a client TLS certificate that you can use to authenticate with NiFi and register that certificate in your browser before you can make any calls to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have an external authentication provider configured, you can make a call to POST&amp;nbsp;/nifi-api/access/token, passing username and password as form parameters to perform the authentication. If you're using Postman, this call will save the returned token in a cookie and you'll be able to perform the next calls as usual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Otherwise, is you're using an external script, you can get the returned token and pass that as a bearer token for the subsequent calls. For example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;token=$(curl \
  -X POST \
  -H 'Content-Type: application/x-www-form-urlencoded') \
  -d 'username=admin&amp;amp;password=supersecret1' \
  "https://nifi.example.com:8443/nifi-api/access/token"

curl \
  -X GET \
  -H "Authorization: Bearer $token" \
  "https://nifi.example.com:8443/nifi-api/processors/d95f5430-0180-1000-ffff-ffff96c5d76f"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 23:13:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344075#M234075</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-05-18T23:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calling nifi Api  using Postman</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344077#M234077</link>
      <description>&lt;P&gt;Thanks Andre,&lt;/P&gt;&lt;P&gt;I did manage to get the token using access/token api. however when I provided the token in postman as Bearer authentication I still get the 403 Forbidden response. Here is my request and response info as captured by Fiddler, let me know if you see anything wrong:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;PUT https://[server name]:9443/nifi-api/processors/385fcdc0-0180-1000-0000-000030a768e3/run-status HTTP/1.1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Content-Type: application/json&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Accept: application/json, text/javascript, */*; q=0.01&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Keep-Alive: timeout=100, max=50000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Authorization: Bearer [access token]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;User-Agent: PostmanRuntime/7.29.0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Postman-Token: 5900c41a-f704-43f3-a2e4-a425eeb22569&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Host: [host name]:9443&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Accept-Encoding: gzip, deflate, br&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Connection: keep-alive&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Content-Length: 215&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;"revision": {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;"clientId": "8F3BD748-DBCC-4703-8743-1D98A24B95C2",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;"version": 1.16,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;"lastModifier": "user.name"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;},&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;"state": "RUNNING",&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;"disconnectedNodeAcknowledged": true&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Response:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;HTTP/1.1 403 Forbidden&lt;BR /&gt;X-Frame-Options: SAMEORIGIN&lt;BR /&gt;Content-Security-Policy: frame-ancestors 'self'&lt;BR /&gt;X-XSS-Protection: 1; mode=block&lt;BR /&gt;X-Content-Type-Options: nosniff&lt;BR /&gt;Strict-Transport-Security: max-age=31540000&lt;BR /&gt;Content-Length: 0&lt;BR /&gt;Server: Jetty(9.4.45.v20220203)&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 23:31:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344077#M234077</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2022-05-18T23:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calling nifi Api  using Postman</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344078#M234078</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you enabled Ranger for authorization or are you managing policies in the NiFi UI?&lt;/P&gt;&lt;P&gt;You are probably authenticated correctly, but your user may be lacking the necessary permissions to perform the API call.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 01:06:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344078#M234078</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-05-19T01:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calling nifi Api  using Postman</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344176#M234093</link>
      <description>&lt;P&gt;Hi Andre,&lt;/P&gt;&lt;P&gt;Not sure what do you mean by "enabled Ranger for authorization"? Can you please elaborate? Also the user Im getting the access token for is the same user that can log in to nifi and have all kind of permissions added to view\modify any workflow. Not sure what else I could be missing.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 20:11:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344176#M234093</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2022-05-19T20:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calling nifi Api  using Postman</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344183#M234098</link>
      <description>&lt;P&gt;Could you please share your authorizers.xml file?&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 21:48:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344183#M234098</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-05-19T21:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calling nifi Api  using Postman</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344187#M234102</link>
      <description>&lt;P&gt;Hi Andre,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I sent you the authorizers content in private message. thanks for your help&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 21:58:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344187#M234102</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2022-05-19T21:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calling nifi Api  using Postman</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344194#M234107</link>
      <description>&lt;P&gt;Could you please also send me your authorizations.xml and users.xml files?&lt;/P&gt;&lt;P&gt;What's the user you're using for authentication in Postman?&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 23:26:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344194#M234107</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-05-19T23:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calling nifi Api  using Postman</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344198#M234111</link>
      <description>&lt;P&gt;I sent you both the users and authorizations xml content in private message. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 01:40:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344198#M234111</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2022-05-20T01:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calling nifi Api  using Postman</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344207#M234114</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what I think is happening:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Your user, who has id "168b019c-0180-1000-ffff-fffffbf36c3a" (from users.xml) only has access to the processor group with id "155cec02-0180-1000-6d4b-ac96d2372f41". For authorizations.xml:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;policy identifier="168b74d6-0180-1000-ffff-ffffd79ba94d" resource="/process-groups/155cec02-0180-1000-6d4b-ac96d2372f41" action="R"&amp;gt;
  &amp;lt;group identifier="1966f436-0180-1000-ffff-ffffd1d17786"/&amp;gt;
  &amp;lt;user identifier="168b019c-0180-1000-ffff-fffffbf36c3a"/&amp;gt;
&amp;lt;/policy&amp;gt;
&amp;lt;policy identifier="168bae4a-0180-1000-ffff-ffff98c1495b" resource="/process-groups/155cec02-0180-1000-6d4b-ac96d2372f41" action="W"&amp;gt;
  &amp;lt;group identifier="1966f436-0180-1000-ffff-ffffd1d17786"/&amp;gt;
  &amp;lt;user identifier="168b019c-0180-1000-ffff-fffffbf36c3a"/&amp;gt;
&amp;lt;/policy&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Your PUT command is referencing a processor with id "&lt;SPAN&gt;385fcdc0-0180-1000-0000-000030a768e3&lt;/SPAN&gt;". I don't know how your canvas is organized, but my guess is that this processor does not belong inside the processor group "155cec02-0180-1000-6d4b-ac96d2372f41" and because of that the user is being denied access (403 Forbidden).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;To solve that you can login to the UI using an admin user, right-click on the Process Group that contains the processor that you're trying to manipulate and click on "Manage access policies".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Access Policies page, add your user to the "view the component" and "&lt;SPAN&gt;modify the component" policies.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After that, try again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;André&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 03:15:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344207#M234114</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-05-20T03:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calling nifi Api  using Postman</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344239#M234121</link>
      <description>&lt;P&gt;Hi Andre,&lt;/P&gt;&lt;P&gt;Thanks again for taking the time and look into my access policy files. If you have noticed in the users.xml I have created an admin group with id "1966f436-0180-1000-ffff-ffffd1d17786" that the user "168b019c-0180-1000-ffff-fffffbf36c3a" is part of, this user group should have access to everything on the nifi canvas so Im assuming my user id implicitly will have access to everything as well, is that correct? even with that I went and give access to my user id explicitly to the target processor group with permission to view, modify and operate component, but still getting the 403 error! Keep in mind when I call the same API using nifi InovkeHttp providing the same access token it only works when I provide SSL Context Service that points to the same truststore &amp;amp; keystore files used to secure the nifi instance, could that be the problem in postman since I did not provide the SSL context there even though Im using https in the url? Im not sure how this can be configured in postman. Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 13:46:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/344239#M234121</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2022-05-20T13:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calling nifi Api  using Postman</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/356114#M237192</link>
      <description>&lt;P&gt;Hello bro&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;, were you successfully control the nifi component using postman? If yes, would it be okay to share your countermeasure. Currently encountering the same issue that you had. Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 10:28:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/356114#M237192</guid>
      <dc:creator>MaarufB</dc:creator>
      <dc:date>2022-10-25T10:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calling nifi Api  using Postman</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/400475#M250835</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/101343"&gt;@MaarufB&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I had the same problem but solved it. The root cause was the CSRF security filter, which resulted in a 403 error. You can resolve this by setting the Request-Token header with the cookie value obtained during the access token issuance.&lt;/P&gt;&lt;P&gt;For more details, please refer to the following link:&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#csrf-protection" target="_self"&gt;&lt;SPAN&gt;NiFi&lt;/SPAN&gt;&lt;SPAN&gt; Administration&lt;/SPAN&gt;&lt;SPAN&gt; Guide&lt;/SPAN&gt;&lt;SPAN&gt; - CSRF&lt;/SPAN&gt;&lt;SPAN&gt; Protection&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 13:31:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Calling-nifi-Api-using-Postman/m-p/400475#M250835</guid>
      <dc:creator>stainblue</dc:creator>
      <dc:date>2025-01-16T13:31:33Z</dc:date>
    </item>
  </channel>
</rss>

