Security

users can't access result of SPL

indeed_2000
Motivator

Hi
I search exact same SPL, it run and return result with admin user, but doesn't return anything with normal user!

Workaround:
1-set permission for Datamodel And Search. (Read permisison to all)
2-set user index (setting > Access control > role > user > index)

FYI: 1-Data indexed on separate index.
2-without complete SPL I can access to the result with user like this: index="myindex" | search error*

3-inspect job : INFO UserManager - Unwound user context: myuser-> NULL

alt text

Any recommendation?
Thanks,

Labels (2)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @mehrdad_2000,
if you already checked the grants on indexes, did you checked the grants on the knowledge objects "RootObject.*"?

If they are ok, try to run the search in verbose Mode instead Smart Mode for normal user.

To debug your search, delete one after one the parts of the search until pipe, at first the last part, the the previous, etc...
I think that you'll find that, deleting your search until the search command, your search will give results, but without fields definitions.

Ciao.
Giuseppe

0 Karma

indeed_2000
Motivator

1- How can I check "grants on the knowledge objects "RootObject."?"
2- checked different modes.
3- only return result when remove all other part and remain just this part: index="myindex" | search error

Thanks,

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...