<?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: First login to nifi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/First-login-to-nifi/m-p/352502#M236525</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/100516"&gt;@double_z&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;NiFi does not allow users to create locally managed user accounts (meaning creating a username and password directly in NiFi.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt; The latest versions of NiFi provide a single user login provider just so that NiFi can by default be launched securely.&amp;nbsp; This single user would have complete access to do everything and you cannot create additional users.&amp;nbsp; Ideally while this provides some security, it is not a proper recommended deployment method.&lt;BR /&gt;&lt;BR /&gt;The good news here is it sounds like you have successfully setup a ldap-provider in your login-identity.providers.xml.&amp;nbsp; &amp;nbsp;This provider provides a method by which a user can be authenticated via LDAP. Authentication via ldap does not control authorization which is handled within NiFi via the authorizers.xml.&lt;BR /&gt;&lt;BR /&gt;When you login to NiFi, the resulting user identity string (case sensitive) resulting from your login is evaluated against any identity mapping patterns you may have configured in your nifi.properties file. After that the resulting identity string (if pattern match was found) or unmodified identity string from login provider is passed to the NiFi authorization process.&lt;BR /&gt;&lt;BR /&gt;While NiFi loads the providers from the authorizers.xml from the top down, it is easer for a user to read it from bottom up.&lt;BR /&gt;- Your are using the "managed-authorizer" which is calling the "file-access-policy-provider"&lt;BR /&gt;- The "File-access-policy-provider" is responsible for authorizations.xml file and seeding it with an initial set of authorization policies needed for your NiFi nodes (multi-node nifi cluster) and an initial admin user.&amp;nbsp; You need an initial admin so that the admin user can set additional authorization from with in the NiFi UI.&lt;BR /&gt;- In your "file-access-policy-provider" you have told the provider to create the authorization policies for a user identity string "freeipa". So the file-access-policy-provider" must first check to see if that user is known to this NiFi.&amp;nbsp; For that is is configured to use the "&lt;EM&gt;composite-configurable-user-group-provider&lt;/EM&gt;".&lt;BR /&gt;- The "&lt;EM&gt;composite-configurable-user-group-provider"&amp;nbsp;&lt;/EM&gt;is then configured to get users and associated groups from the "&lt;EM&gt;file-user-group-provider" &lt;/EM&gt;and&lt;EM&gt; "ldap-user-group-provider". &lt;/EM&gt;You can NOT have to user-group-provider return the exact same user identity string.&lt;EM&gt;&lt;BR /&gt;- &lt;/EM&gt;Your&lt;EM&gt; "ldap-user-group-provider" &lt;/EM&gt;has ben configured to sync user and group identity strings from your LDAP. One of those user being returned is "freeipa".&lt;BR /&gt;&lt;EM&gt;- Your "file-user-group-provider"&amp;nbsp;&lt;/EM&gt;has been configured to create a local user identity that has the same user identity string of "freeipa".&amp;nbsp; So now you have two user-group-provider returning the same user identity string, so NiFi has not idea which is correct to use and throws the exception you see about two providers providing same user identity.&lt;BR /&gt;- What you have shared above also shows the "&lt;EM&gt;file-user-group-provider"&lt;/EM&gt; twice. You can't have same provider defined twice in this file.&lt;BR /&gt;&lt;BR /&gt;- Steps to move forward.&lt;BR /&gt;1. The file-user-group-provider and the file-access-policy-provider will only create the users.xml file and authorizations.xml file if they do NOT already exist.&amp;nbsp; So if these two files exist, delete them (authorizers.xml and authorizations.xml are two different files, make sure you delete the correct one)&lt;BR /&gt;2. Make sure you ldap-provider is configured to USE_USERNAME and not USE_DN if not already set this way.&lt;BR /&gt;3. Unset the "&lt;EM&gt;Initial User Identity 1" in the file-user-group-provider.&amp;nbsp; We don't want this provider creating the freeipa user in the users.xml since your ldap-user-group-provider will be providing this user identity.&lt;BR /&gt;&lt;/EM&gt;4. Leave the initial admin "freeipa" set in the file-access-policy-provider.&lt;BR /&gt;5. start your NiFi, it will create a new users.xml and authorizations.xml during startup.&lt;BR /&gt;&lt;BR /&gt;At login UI, provide your ldap "freeipa" username and password.&lt;BR /&gt;Once in the UI, your freeipa user will have all the authorization policies needed to act as and admin.&amp;nbsp; This does not mean this user has all authorizations, but does have ability to grant additional authorizations to itself or other users.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;NiFi global menu (upper right corner) --&amp;gt; users (will allow you to see all users and groups long with their associations to one another synced from LDAP).&amp;nbsp; It will also show any local users identities you may define (locally defined identifies will show an edit and delete icon next to them).&amp;nbsp; local user and group identities are only used to set authorizations, they are not able to be used to authenticate in to NiFi.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 19:32:18 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2022-09-16T19:32:18Z</dc:date>
    <item>
      <title>First login to nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/First-login-to-nifi/m-p/352493#M236521</link>
      <description>&lt;P&gt;Hi. Could somebody help me please with composite group provider settings in authorizers.&lt;/P&gt;&lt;P&gt;I'm not sure what should I put in "Initial admin identity" and "Initial user identity 1".&lt;/P&gt;&lt;P&gt;1) When I write just username (like nifi-admin) I cannot login to NiFi since I don't undertand where I can get a password.&lt;/P&gt;&lt;P&gt;2) When I write a full LDAP name (like uid=freeipa,cn=users,cn=accounts,dc=foo,dc=bar) I successfully log in but I cannot access a NiFi interface.&lt;/P&gt;&lt;P&gt;3) When I use name of user who already exists in LDAP, I get an error, that user presents in both file and LDAP provider settings. This case is configured below in&amp;nbsp;my authorizers.xml file:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;authorizers&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;userGroupProvider&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;identifier&amp;gt;file-user-group-provider&amp;lt;/identifier&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;class&amp;gt;org.apache.nifi.authorization.FileUserGroupProvider&amp;lt;/class&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Users File"&amp;gt;./conf/users.xml&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Legacy Authorized Users File"&amp;gt;&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Initial User Identity 1"&amp;gt;freeipa&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Initial User Identity A"&amp;gt;CN=nifi1.foo.bar, OU=NIFI&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;/userGroupProvider&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;authorizers&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;userGroupProvider&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;identifier&amp;gt;file-user-group-provider&amp;lt;/identifier&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;class&amp;gt;org.apache.nifi.authorization.FileUserGroupProvider&amp;lt;/class&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Users File"&amp;gt;./conf/users.xml&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Legacy Authorized Users File"&amp;gt;&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Initial User Identity 1"&amp;gt;freeipa&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Initial User Identity A"&amp;gt;CN=nifi1.foo.bar, OU=NIFI&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;/userGroupProvider&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;userGroupProvider&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;identifier&amp;gt;ldap-user-group-provider&amp;lt;/identifier&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;class&amp;gt;org.apache.nifi.ldap.tenants.LdapUserGroupProvider&amp;lt;/class&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Authentication Strategy"&amp;gt;SIMPLE&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Manager DN"&amp;gt;uid=freeipa,cn=users,cn=accounts,dc=foo,dc=bar&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Manager Password"&amp;gt;********&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Referral Strategy"&amp;gt;FOLLOW&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Connect Timeout"&amp;gt;10 secs&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Read Timeout"&amp;gt;10 secs&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Url"&amp;gt;ldap://192.168.1.1:389&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Sync Interval"&amp;gt;30 mins&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Group Membership - Enforce Case Sensitivity"&amp;gt;false&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="User Search Base"&amp;gt;cn=users,cn=accounts,dc=foo,dc=bar&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="User Object Class"&amp;gt;posixaccount&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="User Search Scope"&amp;gt;ONE_LEVEL&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="User Identity Attribute"&amp;gt;uid&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="User Group Name Attribute"&amp;gt;memberOf&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="User Group Name Attribute - Referenced Group Attribute"&amp;gt;&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Group Search Base"&amp;gt;cn=groups,cn=accounts,dc=foo,dc=bar&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Group Object Class"&amp;gt;posixgroup&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Group Search Scope"&amp;gt;ONE_LEVEL&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Group Member Attribute"&amp;gt;member&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Group Member Attribute - Referenced User Attribute"&amp;gt;&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;/userGroupProvider&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;userGroupProvider&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;identifier&amp;gt;composite-configurable-user-group-provider&amp;lt;/identifier&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;class&amp;gt;org.apache.nifi.authorization.CompositeConfigurableUserGroupProvider&amp;lt;/class&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Configurable User Group Provider"&amp;gt;file-user-group-provider&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="User Group Provider 1"&amp;gt;ldap-user-group-provider&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;/userGroupProvider&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;accessPolicyProvider&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;identifier&amp;gt;file-access-policy-provider&amp;lt;/identifier&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;class&amp;gt;org.apache.nifi.authorization.FileAccessPolicyProvider&amp;lt;/class&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="User Group Provider"&amp;gt;composite-configurable-user-group-provider&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Authorizations File"&amp;gt;./conf/authorizations.xml&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Initial Admin Identity"&amp;gt;freeipa&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Legacy Authorized Users File"&amp;gt;&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Node Identity 1"&amp;gt;CN=nifi1.foo.bar, OU=NIFI&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Node Group"&amp;gt;&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;/accessPolicyProvider&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;authorizer&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;identifier&amp;gt;managed-authorizer&amp;lt;/identifier&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;class&amp;gt;org.apache.nifi.authorization.StandardManagedAuthorizer&amp;lt;/class&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;property name="Access Policy Provider"&amp;gt;file-access-policy-provider&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;/authorizer&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&amp;lt;/authorizers&amp;gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 15:36:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/First-login-to-nifi/m-p/352493#M236521</guid>
      <dc:creator>double_z</dc:creator>
      <dc:date>2022-09-16T15:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: First login to nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/First-login-to-nifi/m-p/352502#M236525</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/100516"&gt;@double_z&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;NiFi does not allow users to create locally managed user accounts (meaning creating a username and password directly in NiFi.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;NOTE:&lt;/STRONG&gt; The latest versions of NiFi provide a single user login provider just so that NiFi can by default be launched securely.&amp;nbsp; This single user would have complete access to do everything and you cannot create additional users.&amp;nbsp; Ideally while this provides some security, it is not a proper recommended deployment method.&lt;BR /&gt;&lt;BR /&gt;The good news here is it sounds like you have successfully setup a ldap-provider in your login-identity.providers.xml.&amp;nbsp; &amp;nbsp;This provider provides a method by which a user can be authenticated via LDAP. Authentication via ldap does not control authorization which is handled within NiFi via the authorizers.xml.&lt;BR /&gt;&lt;BR /&gt;When you login to NiFi, the resulting user identity string (case sensitive) resulting from your login is evaluated against any identity mapping patterns you may have configured in your nifi.properties file. After that the resulting identity string (if pattern match was found) or unmodified identity string from login provider is passed to the NiFi authorization process.&lt;BR /&gt;&lt;BR /&gt;While NiFi loads the providers from the authorizers.xml from the top down, it is easer for a user to read it from bottom up.&lt;BR /&gt;- Your are using the "managed-authorizer" which is calling the "file-access-policy-provider"&lt;BR /&gt;- The "File-access-policy-provider" is responsible for authorizations.xml file and seeding it with an initial set of authorization policies needed for your NiFi nodes (multi-node nifi cluster) and an initial admin user.&amp;nbsp; You need an initial admin so that the admin user can set additional authorization from with in the NiFi UI.&lt;BR /&gt;- In your "file-access-policy-provider" you have told the provider to create the authorization policies for a user identity string "freeipa". So the file-access-policy-provider" must first check to see if that user is known to this NiFi.&amp;nbsp; For that is is configured to use the "&lt;EM&gt;composite-configurable-user-group-provider&lt;/EM&gt;".&lt;BR /&gt;- The "&lt;EM&gt;composite-configurable-user-group-provider"&amp;nbsp;&lt;/EM&gt;is then configured to get users and associated groups from the "&lt;EM&gt;file-user-group-provider" &lt;/EM&gt;and&lt;EM&gt; "ldap-user-group-provider". &lt;/EM&gt;You can NOT have to user-group-provider return the exact same user identity string.&lt;EM&gt;&lt;BR /&gt;- &lt;/EM&gt;Your&lt;EM&gt; "ldap-user-group-provider" &lt;/EM&gt;has ben configured to sync user and group identity strings from your LDAP. One of those user being returned is "freeipa".&lt;BR /&gt;&lt;EM&gt;- Your "file-user-group-provider"&amp;nbsp;&lt;/EM&gt;has been configured to create a local user identity that has the same user identity string of "freeipa".&amp;nbsp; So now you have two user-group-provider returning the same user identity string, so NiFi has not idea which is correct to use and throws the exception you see about two providers providing same user identity.&lt;BR /&gt;- What you have shared above also shows the "&lt;EM&gt;file-user-group-provider"&lt;/EM&gt; twice. You can't have same provider defined twice in this file.&lt;BR /&gt;&lt;BR /&gt;- Steps to move forward.&lt;BR /&gt;1. The file-user-group-provider and the file-access-policy-provider will only create the users.xml file and authorizations.xml file if they do NOT already exist.&amp;nbsp; So if these two files exist, delete them (authorizers.xml and authorizations.xml are two different files, make sure you delete the correct one)&lt;BR /&gt;2. Make sure you ldap-provider is configured to USE_USERNAME and not USE_DN if not already set this way.&lt;BR /&gt;3. Unset the "&lt;EM&gt;Initial User Identity 1" in the file-user-group-provider.&amp;nbsp; We don't want this provider creating the freeipa user in the users.xml since your ldap-user-group-provider will be providing this user identity.&lt;BR /&gt;&lt;/EM&gt;4. Leave the initial admin "freeipa" set in the file-access-policy-provider.&lt;BR /&gt;5. start your NiFi, it will create a new users.xml and authorizations.xml during startup.&lt;BR /&gt;&lt;BR /&gt;At login UI, provide your ldap "freeipa" username and password.&lt;BR /&gt;Once in the UI, your freeipa user will have all the authorization policies needed to act as and admin.&amp;nbsp; This does not mean this user has all authorizations, but does have ability to grant additional authorizations to itself or other users.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;NiFi global menu (upper right corner) --&amp;gt; users (will allow you to see all users and groups long with their associations to one another synced from LDAP).&amp;nbsp; It will also show any local users identities you may define (locally defined identifies will show an edit and delete icon next to them).&amp;nbsp; local user and group identities are only used to set authorizations, they are not able to be used to authenticate in to NiFi.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 19:32:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/First-login-to-nifi/m-p/352502#M236525</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2022-09-16T19:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: First login to nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/First-login-to-nifi/m-p/352592#M236553</link>
      <description>&lt;P&gt;Thank you, Matt. Everything works fine now.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 09:50:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/First-login-to-nifi/m-p/352592#M236553</guid>
      <dc:creator>double_z</dc:creator>
      <dc:date>2022-09-19T09:50:20Z</dc:date>
    </item>
  </channel>
</rss>

