<?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: How to NiFi Registry Users.xml and Authorization.xml migrate to PostgresSQL in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-NiFi-Registry-Users-xml-and-Authorization-xml-migrate/m-p/347764#M235253</link>
    <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Firstly with the below configurations changes in authorizers.xml, I was able to store the users and their related authorization policies&amp;nbsp;in database and I was able to successfully store the users and their permissions in postgresSQL database from registry&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;userGroupProvider&amp;gt;&lt;BR /&gt;&amp;lt;identifier&amp;gt;database-user-group-provider&amp;lt;/identifier&amp;gt;&lt;BR /&gt;&amp;lt;class&amp;gt;org.apache.nifi.registry.security.authorization.database.DatabaseUserGroupProvider&amp;lt;/class&amp;gt;&lt;BR /&gt;&amp;lt;property name="Initial User Identity 1"&amp;gt;DEV-ADMIN&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;/userGroupProvider&amp;gt;&lt;/P&gt;&lt;P&gt;------------------------------&lt;/P&gt;&lt;P&gt;&amp;lt;accessPolicyProvider&amp;gt;&lt;BR /&gt;&amp;lt;identifier&amp;gt;database-access-policy-provider&amp;lt;/identifier&amp;gt;&lt;BR /&gt;&amp;lt;class&amp;gt;org.apache.nifi.registry.security.authorization.database.DatabaseAccessPolicyProvider&amp;lt;/class&amp;gt;&lt;BR /&gt;&amp;lt;property name="User Group Provider"&amp;gt;database-user-group-provider&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property name="Initial Admin Identity"&amp;gt;DEV-ADMIN&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property name="NiFi Identity 1"&amp;gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property name="NiFi Group Name"&amp;gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;/accessPolicyProvider&amp;gt;&lt;/P&gt;&lt;P&gt;--------------------------------------&lt;/P&gt;&lt;P&gt;&amp;lt;authorizer&amp;gt;&lt;BR /&gt;&amp;lt;identifier&amp;gt;managed-authorizer&amp;lt;/identifier&amp;gt;&lt;BR /&gt;&amp;lt;class&amp;gt;org.apache.nifi.registry.security.authorization.StandardManagedAuthorizer&amp;lt;/class&amp;gt;&lt;BR /&gt;&amp;lt;property name="Access Policy Provider"&amp;gt;database-access-policy-provider&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;/authorizer&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything is working perfect. the only need here is to get the existing users.xml and authorizations.xml data migrated to Postgres DB and we can get rid of these files.&lt;BR /&gt;Please help&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jul 2022 13:02:32 GMT</pubDate>
    <dc:creator>Meeran</dc:creator>
    <dc:date>2022-07-15T13:02:32Z</dc:date>
    <item>
      <title>How to NiFi Registry Users.xml and Authorization.xml migrate to PostgresSQL</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-NiFi-Registry-Users-xml-and-Authorization-xml-migrate/m-p/347493#M235187</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have successfully migrated the h2 database of registry to Postgres sql but it did not migrate the users.xml and authorizations.xml to postgres.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help in pointing me in right direction on what setting needs to be changed to get migrate the users and authorizations data aswell to Postgres SQL.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Meeran&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 15:34:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-NiFi-Registry-Users-xml-and-Authorization-xml-migrate/m-p/347493#M235187</guid>
      <dc:creator>Meeran</dc:creator>
      <dc:date>2022-07-13T15:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to NiFi Registry Users.xml and Authorization.xml migrate to PostgresSQL</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-NiFi-Registry-Users-xml-and-Authorization-xml-migrate/m-p/347653#M235230</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/78566"&gt;@Meeran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The users.xml is created/managed by the File-User-Group-Provider in the Authorizers.xml file.&amp;nbsp;&lt;BR /&gt;The authorizations.xml is created/managed by the File-Access-Policy-provider in the Authoirizers.xml file.&lt;BR /&gt;&lt;BR /&gt;Neither of these providers support using a database for persisting the users, groups, and authorizations.&lt;BR /&gt;&lt;BR /&gt;For more information on the authorization providers, follow the below link:&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-registry-docs/html/administration-guide.html#authorization" target="_blank"&gt;https://nifi.apache.org/docs/nifi-registry-docs/html/administration-guide.html#authorization&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;NiFi-Registry supports using an embedded H2 DB (default) or an external DB (Postgres or MySQL) for storing&amp;nbsp;&lt;SPAN&gt;knowledge of which buckets exist, which versioned items belong to which buckets, as well as the version history for each item.&amp;nbsp; The actual version controlled flows are not stored in the DB&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-registry-docs/html/administration-guide.html#metadata-database" target="_blank"&gt;https://nifi.apache.org/docs/nifi-registry-docs/html/administration-guide.html#metadata-database&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The actual Version Controlled dataflow data is stored via the configured Persistence provider. The default provider is&amp;nbsp;&lt;/SPAN&gt;FileSystemFlowPersistenceProvider which writes this data to a directory locally on the NiFi-Registry host.&amp;nbsp; The other available option is the&amp;nbsp;GitFlowPersistenceProvider which commits this data to a remote Git repository when configured correctly.&amp;nbsp; For more detail follow below link:&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-registry-docs/html/administration-guide.html#persistence-providers" target="_blank"&gt;https://nifi.apache.org/docs/nifi-registry-docs/html/administration-guide.html#persistence-providers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you found this response assisted with your query, please take a moment to login and click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 13:59:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-NiFi-Registry-Users-xml-and-Authorization-xml-migrate/m-p/347653#M235230</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2022-07-14T13:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to NiFi Registry Users.xml and Authorization.xml migrate to PostgresSQL</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-NiFi-Registry-Users-xml-and-Authorization-xml-migrate/m-p/347764#M235253</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Firstly with the below configurations changes in authorizers.xml, I was able to store the users and their related authorization policies&amp;nbsp;in database and I was able to successfully store the users and their permissions in postgresSQL database from registry&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;userGroupProvider&amp;gt;&lt;BR /&gt;&amp;lt;identifier&amp;gt;database-user-group-provider&amp;lt;/identifier&amp;gt;&lt;BR /&gt;&amp;lt;class&amp;gt;org.apache.nifi.registry.security.authorization.database.DatabaseUserGroupProvider&amp;lt;/class&amp;gt;&lt;BR /&gt;&amp;lt;property name="Initial User Identity 1"&amp;gt;DEV-ADMIN&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;/userGroupProvider&amp;gt;&lt;/P&gt;&lt;P&gt;------------------------------&lt;/P&gt;&lt;P&gt;&amp;lt;accessPolicyProvider&amp;gt;&lt;BR /&gt;&amp;lt;identifier&amp;gt;database-access-policy-provider&amp;lt;/identifier&amp;gt;&lt;BR /&gt;&amp;lt;class&amp;gt;org.apache.nifi.registry.security.authorization.database.DatabaseAccessPolicyProvider&amp;lt;/class&amp;gt;&lt;BR /&gt;&amp;lt;property name="User Group Provider"&amp;gt;database-user-group-provider&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property name="Initial Admin Identity"&amp;gt;DEV-ADMIN&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property name="NiFi Identity 1"&amp;gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;property name="NiFi Group Name"&amp;gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;/accessPolicyProvider&amp;gt;&lt;/P&gt;&lt;P&gt;--------------------------------------&lt;/P&gt;&lt;P&gt;&amp;lt;authorizer&amp;gt;&lt;BR /&gt;&amp;lt;identifier&amp;gt;managed-authorizer&amp;lt;/identifier&amp;gt;&lt;BR /&gt;&amp;lt;class&amp;gt;org.apache.nifi.registry.security.authorization.StandardManagedAuthorizer&amp;lt;/class&amp;gt;&lt;BR /&gt;&amp;lt;property name="Access Policy Provider"&amp;gt;database-access-policy-provider&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;/authorizer&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything is working perfect. the only need here is to get the existing users.xml and authorizations.xml data migrated to Postgres DB and we can get rid of these files.&lt;BR /&gt;Please help&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 13:02:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-NiFi-Registry-Users-xml-and-Authorization-xml-migrate/m-p/347764#M235253</guid>
      <dc:creator>Meeran</dc:creator>
      <dc:date>2022-07-15T13:02:32Z</dc:date>
    </item>
  </channel>
</rss>

