Security

Change the default app for users with a given role

FritzWittwer_ol
Contributor

We'd like to change the default app for a group of users with a given role as we replace an app and will phase out and delete the old app in the future. I tried to figure out how the default app is determined and assume:

  • The first time the user logs in, his/her default app is determined and stored in the users own user-prefs, SPLUNK_HOME/etc/users//user-prefs/local/user-prefs.conf.
    • A LDAP user has an empty default app (something else may be defined in SPLUNK_HOME/etc/apps/local/user-prefs.conf , but only one for all users), so a default app from the assigned roles is taken.
    • A local user gets the launcher as default app upon first login.
    • If more than one assigned role defines a default app, to outcome seems to be undefined.
  • If the user has no permission on the app defined in the user.prefs, a page with the list of all available apps to which the user has access will be displayed.
  • A user may change the own default app in the preferences any time.

Are this assumptions correct, I did not find anything in the documentation.
So changing the default app for the role will probably only affect new users. If we will remove the old App in the future, these user will get the list of all app to which they have access. this is something we try to avoid for various reasons.

0 Karma

sudosplunk
Motivator

Hello, my two cents:

The first time the user logs in, his/her default app is determined and stored in the users own user-prefs, SPLUNK_HOME/etc/users//user-prefs/local/user-prefs.conf.

Yes. That is correct per user-prefs.conf.

A LDAP user has an empty default app (something else may be defined in SPLUNK_HOME/etc/apps/local/user-prefs.conf , but only one for all users), so a default app from the assigned roles is taken.

This may be right, I am partially confident on this. Yet to test.

A local user gets the launcher as default app upon first login.

That is right. Per user-prefs.conf, Splunk defaults the app name to 'launcher' via the default authorize.conf.

If more than one assigned role defines a default app, to outcome seems to be undefined.

This is explained below by @kmorris_splunk

If the user has no permission on the app defined in the user.prefs, a page with the list of all available apps to which the user has access will be displayed.

That is correct. You can find some info here.

A user may change the own default app in the preferences any time.

Yes.

Additionally, this link has some good information about configuring default app by role. HTH!

0 Karma

kmorris_splunk
Splunk Employee
Splunk Employee

If a user has multiple roles that have default app set, it is alphabetical. For example, if i have a_role and b_role, the user will inherit the default app from a_role. If a user sets a default app at the user level, this will override any role based default app for that particular user.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...