Splunk Search

search to get an overview of all dashboards and apps with authorizations

rrovers
Communicator

I have a search to get an overview of all users with their authorizations: roles, capabilities, indexes (search found somewhere else on this community).

I wonder if it is also possible to get an overview of the apps and dashboards with the coupled roles.

Does anyone know if this is possible and if so how to do it?

 

 

Labels (1)
0 Karma
1 Solution

rrovers
Communicator

Hi @richgalloway, thanks, if I combine these 2 I get the result I want:

| rest /servicesNS/-/-/data/ui/views
| rename eai:acl.app AS app
| rename eai:acl.perms.write as dashboard-write-permission
| rename eai:acl.perms.read as dashboard-read-permission
| rename eai:appName as appName
| join type=outer appName
[| rest /servicesNS/-/-/apps/local
| rename title AS appName
| rename eai:acl.perms.read AS app-read-permission
| rename eai:acl.perms.write AS app-write-permission]
| table app label title dashboard-read-permission dashboard-read-permission app-write-permission app-read-permission

View solution in original post

rrovers
Communicator

Hi @richgalloway, thanks, if I combine these 2 I get the result I want:

| rest /servicesNS/-/-/data/ui/views
| rename eai:acl.app AS app
| rename eai:acl.perms.write as dashboard-write-permission
| rename eai:acl.perms.read as dashboard-read-permission
| rename eai:appName as appName
| join type=outer appName
[| rest /servicesNS/-/-/apps/local
| rename title AS appName
| rename eai:acl.perms.read AS app-read-permission
| rename eai:acl.perms.write AS app-write-permission]
| table app label title dashboard-read-permission dashboard-read-permission app-write-permission app-read-permission

splunkreal
Motivator

Hello,

at the end we would like put write instead of read 😉

 

| table app label title dashboard-read-permission dashboard-write-permission app-write-permission app-read-permission
* If this helps, please upvote or accept solution 🙂 *
0 Karma

richgalloway
SplunkTrust
SplunkTrust

This thread is more than 2 years old with an accepted solution so it's unlikely to get many more responses.  If it does not solve your problem then please post a new question.

---
If this reply helps you, Karma would be appreciated.
0 Karma

richgalloway
SplunkTrust
SplunkTrust

If your problem is resolved, then please click the "Accept as Solution" button to help future readers.

---
If this reply helps you, Karma would be appreciated.
0 Karma

richgalloway
SplunkTrust
SplunkTrust

You can get a list of apps and dashboards using REST commands, but it will come with user names rather than role names.  You'll have to correlate with your user list to get roles.

Try 

| rest /servicesNS/-/-/data/ui/views

| rest /servicesNS/-/-/apps/local
---
If this reply helps you, Karma would be appreciated.
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...