Member since
01-11-2024
1
Post
0
Kudos Received
0
Solutions
01-11-2024
02:03 PM
@joyjlee The File-User-Group-Provider is responsible for: 1. Creating the users.xml using the configured provider properties ONLY if the users.xml file does not already exist. 2. Loading the users from the users.xml in to heap memory on startup when the users.xml already exists. The File-Access-Policy-Provider is responsible for: 1. Generating the authorizations.xml file ONLY if it does not already exist using the configured provider properties. This provider will not work if users are not already loaded by some user group provider (multiple options exist for loading users: file-user-group-provider, ldap-user-group-provider, shell-user-group-provider, etc.) 2. Loading the user's authorizations into memory if the authorizations.xml file already exists. So by creating your own custom users.xml and authorizations.xml files, these providers do nothing beyond loading what is already in those files into memory. They will not append to or modify them. NiFI does not support wildcard policies either. The UUID generated by NiFi for a User Identity string will always be the same. So I am assuming you captured all those UUID for the users.xml you are manually creating. Also NiFi only generates the flow.json.gz (replacing flow.xml.gz) if it does not already exist. While upon creation initially the UUID for the root process group will be random, you could certainly load a pre-built flow.json.gz with your deployment that only has that root PG already in it. That would allow your pre-built users.xml and authorizations.xml to load with policies you defined. If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "Accept as Solution" on one or more of them that helped. Thank you, Matt
... View more