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
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...