Support Questions

Find answers, ask questions, and share your expertise

No show Users and Policies in Global Menu

New Contributor

Hi..

I don't see the Users and Policies items in the Global Menu

Google Chrome ver99

Apache NiFi 1.15.3

 

AndreDre1_1-1647966818005.png

 

3 REPLIES 3

Master Collaborator

Hi @AndreDre1 ,

 

You probably have a default NiFi configuration, which uses the single-user-authorizer. This authorizer doesn't have a Users menu in the UI. To see the Users menu you need to switch to another authorizer.

 

For example, if you have a brand new installation of NiFi with the default configuration, follow the steps below:

 

  1. Edit the conf/nifi.properties file and update the following property:
    nifi.security.user.authorizer=managed-authorizer
  2. Add the name of your initial admin in the following two places in conf/authorizers.xml:
    ...
    <userGroupProvider>
      <identifier>file-user-group-provider</identifier>
      <class>org.apache.nifi.authorization.FileUserGroupProvider</class>
      <property name="Users File">./conf/users.xml</property>
      <property name="Legacy Authorized Users File"></property>
      <property name="Initial User Identity 1">ADMIN_USERNAME_HERE</property>
    </userGroupProvider>
    ...
    <accessPolicyProvider>
      <identifier>file-access-policy-provider</identifier>
      <class>org.apache.nifi.authorization.FileAccessPolicyProvider</class>
      <property name="User Group Provider">file-user-group-provider</property>
      <property name="Authorizations File">./conf/authorizations.xml</property>
      <property name="Initial Admin Identity">ADMIN_USERNAME_HERE</property>
      <property name="Legacy Authorized Users File"></property>
      <property name="Node Identity 1"></property>
      <property name="Node Group"></property>
      </accessPolicyProvider>
    ...​
  3. Stop NiFi:
    ./bin/nifi.sh stop​
  4. Remove users.xml and authorizations.xml:
    rm conf/users.xml conf/authorizations.xml​
  5. Start NiFi:
    ./bin/nifi.sh start​
  6. After you login to NiFi you should now be able to see the Users menu:

araujo_0-1648029530077.png

 

Cheers,

André

--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.

--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Master Collaborator

@AndreDre1 , did the above answer your question?

 

André

--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.

--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.

New Contributor

Hi @araujo  this link was really useful . But where can i get the password for newly created users. Without password how can new users access it . I am not able to find any documentation for that. i have checked in all the files as well and couldn't find any passwords

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.