Dashboards & Visualizations

default.xml permission

Explorer

Hi-

i am trying to modify permissions on the nav menu of an app, default.xml. After i save my change, and click on the permissions link again, i see that the change did not take effect.

I did find the following similar post:
http://answers.splunk.com/answers/84175/cant-set-permissions-for-the-navigation-menu

there is not definite answer as to what we should do to fix this. I tried adding the metadata folder with local.meta file in $SPLUNK/etc/apps/idm_app/local/ directory containing this:

more local.meta

[nav/default]
access = read : [ * ], write : [ admin, role_idm ]
owner = nobody

Still the permissions page does NOT show the write checkbox for the role_idm checked.

Can anyone recommend a way to make this work?

THanks!
Nathalie

0 Karma

Path Finder

Make sure all default.xml files in every app have app level permissions. We had another default.xml file in a different app set with global permissions. Once we changed all default.xml files to have app level permissions, we did see the changes we had made to the permissions show up in the UI and the correct roles were able to edit it.

0 Karma

SplunkTrust
SplunkTrust

Hi ngholmieh,

your local.meta file should be in $SPLUNK_HOME/etc/apps/YourAppDir/metadata/ not in $SPLUNK_HOME/etc/apps/YourAppDir/local/.

See the docs for more details ...

cheers, MuS

0 Karma

Champion

which account the splunkd is running under? could you provide admin access to all the path?

[nav/default]
access = read : [ * ], write : [ admin, role_idm ]

owner = admin

0 Karma

Explorer

yes i did. still same behavior. THanks for your help!
N~

0 Karma

Champion

did you restart splunk?

0 Karma

SplunkTrust
SplunkTrust

I will look at this tomorrow 😉

0 Karma

Explorer

Hi MuS-

thanks for your answer. I did create the file in the wrong place indeed, but i went back and checked that the local.meta file actually existed in $SPLUNK_HOME/etc/apps/MyAppDir/metadata/, and it had the appropriate perms

[nav/default]
access = read : [ * ], write : [ admin, role_idm ]
owner = nobody
version = xxx
modtime = xxx

however users in role_admin still cannot write to nav/default.xml

when i re-open the permissions page in the GUI, i only see write for admin.

Any other hints?

thanks!
n~

0 Karma