<?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: Cloudera NiFi - Automatic policy creation in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Cloudera-NiFi-Automatic-policy-creation/m-p/400764#M250962</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/121770"&gt;@jirungaray&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/38301"&gt;@mburgess&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jan 2025 22:24:38 GMT</pubDate>
    <dc:creator>DianaTorres</dc:creator>
    <dc:date>2025-01-20T22:24:38Z</dc:date>
    <item>
      <title>Cloudera NiFi - Automatic policy creation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cloudera-NiFi-Automatic-policy-creation/m-p/400761#M250959</link>
      <description>&lt;DIV class="flex-1 overflow-hidden @container/thread"&gt;&lt;DIV class="h-full"&gt;&lt;DIV class="react-scroll-to-bottom--css-zpvoo-79elbk h-full"&gt;&lt;DIV class="react-scroll-to-bottom--css-zpvoo-1n7m0yu"&gt;&lt;DIV class="flex flex-col text-sm"&gt;&lt;DIV class="m-auto text-base py-[18px] px-3 md:px-4 w-full md:px-5 lg:px-4 xl:px-5"&gt;&lt;DIV class="mx-auto flex flex-1 gap-4 text-base md:gap-5 lg:gap-6 md:max-w-3xl"&gt;&lt;DIV class="group/conversation-turn relative flex w-full min-w-0 flex-col agent-turn"&gt;&lt;DIV class="flex-col gap-1 md:gap-3"&gt;&lt;DIV class="flex max-w-full flex-col flex-grow"&gt;&lt;DIV class="min-h-8 text-message flex w-full flex-col items-end gap-2 whitespace-normal break-words text-start [.text-message+&amp;amp;]:mt-5"&gt;&lt;DIV class="flex w-full flex-col gap-1 empty:hidden first:pt-[3px]"&gt;&lt;DIV class="markdown prose w-full break-words dark:prose-invert dark"&gt;&lt;DIV class="flex-1 overflow-hidden @container/thread"&gt;&lt;DIV class="h-full"&gt;&lt;DIV class="react-scroll-to-bottom--css-zpvoo-79elbk h-full"&gt;&lt;DIV class="react-scroll-to-bottom--css-zpvoo-1n7m0yu"&gt;&lt;DIV class="flex flex-col text-sm"&gt;&lt;DIV class="m-auto text-base py-[18px] px-3 md:px-4 w-full md:px-5 lg:px-4 xl:px-5"&gt;&lt;DIV class="mx-auto flex flex-1 gap-4 text-base md:gap-5 lg:gap-6 md:max-w-3xl"&gt;&lt;DIV class="group/conversation-turn relative flex w-full min-w-0 flex-col agent-turn"&gt;&lt;DIV class="flex-col gap-1 md:gap-3"&gt;&lt;DIV class="flex max-w-full flex-col flex-grow"&gt;&lt;DIV class="min-h-8 text-message flex w-full flex-col items-end gap-2 whitespace-normal break-words text-start [.text-message+&amp;amp;]:mt-5"&gt;&lt;DIV class="flex w-full flex-col gap-1 empty:hidden first:pt-[3px]"&gt;&lt;DIV class="markdown prose w-full break-words dark:prose-invert dark"&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;Is there a way to automate the creation of users, groups, and/or policies in NiFi? For example, I have configured LDAP authentication in NiFi -- is there a way to manage not only authentication but also authorization? It is not necessary for this to be LDAP-based.&lt;/P&gt;&lt;P&gt;I was considering the possibility of using a script with the API, but I wanted to know if there is an "out-of-the-box" solution available.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Jan 2025 21:14:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cloudera-NiFi-Automatic-policy-creation/m-p/400761#M250959</guid>
      <dc:creator>jirungaray</dc:creator>
      <dc:date>2025-01-20T21:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Cloudera NiFi - Automatic policy creation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cloudera-NiFi-Automatic-policy-creation/m-p/400764#M250962</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/121770"&gt;@jirungaray&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/38301"&gt;@mburgess&lt;/a&gt;&amp;nbsp; who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 22:24:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cloudera-NiFi-Automatic-policy-creation/m-p/400764#M250962</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2025-01-20T22:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cloudera NiFi - Automatic policy creation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cloudera-NiFi-Automatic-policy-creation/m-p/400792#M250964</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/121770"&gt;@jirungaray&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Cloudera Flow Management (Based on Apache NiFi) provides multiple methods for managing user authorization.&amp;nbsp; This includes NiFi internally via the File-Access-Policy-Provider and externally via Apache Ranger.&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;There is no built in mechanism for auto setting up authorization policies for users or groups with the exception of the Initial Admin and Initial NiFi Node authorizations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Many of the Authorization policies are directly related to the components added to the canvas.&amp;nbsp; Those components are assigned unique IDs making it impossible to&amp;nbsp; create policies before the components exist.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;File-Access-Policy-Porvider:&amp;nbsp;&lt;BR /&gt;This provider utilizes a file on disk (authorizations.xml) to persists authorization policies.&amp;nbsp; This file is loaded when NiFi starts.&amp;nbsp; This means it is possible to manually generate this file and have NiFi load it on startup.&amp;nbsp; &amp;nbsp;Also as you mentioned, you could script out the authorization creating through NiFi Rest-API calls.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Ranger provider:&lt;BR /&gt;This moves authorization responsibility over to Apache Ranger.&amp;nbsp; Policies setup within Ranger are download by the NiFi nodes where they are locally enforced.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;No matter which authorizer you choose to use, authorizations are easiest to manage via groups.&amp;nbsp; Typical users setup ldap groups for various NiFi roles (admins, team 1, team2, etc..) and makes specific users members of these groups.&amp;nbsp; This simplifies authorization since you can authorizer these groups instead of the individual users. Simply adding or removing a user as member of one of these authorized groups gives or removes authorized access to the NiFi resource identifier (NiFi policy).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The ldap-user-group-provider can be added to the NiFi authorizers.xml to auto manage syncing of user and group identities from your AD/LDAP further simplifying management over the file-user-group-provider method which requires the manual adding of user and group identifiers to the NiFi.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please help our community thrive. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 14:16:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cloudera-NiFi-Automatic-policy-creation/m-p/400792#M250964</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-01-21T14:16:01Z</dc:date>
    </item>
  </channel>
</rss>

