<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Generate a list of users and assigned roles for them in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Generate-a-list-of-users-and-assigned-roles-for-them/m-p/750662#M242394</link>
    <description>&lt;P&gt;I mean we have 100 roles already assigned to the users (AD groups) and we can see only 5 roles when giving that search... We want to see all roles assigned to each user... AD group consists of many members&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jul 2025 17:10:28 GMT</pubDate>
    <dc:creator>splunklearner</dc:creator>
    <dc:date>2025-07-29T17:10:28Z</dc:date>
    <item>
      <title>Generate a list of users and assigned roles for them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-a-list-of-users-and-assigned-roles-for-them/m-p/750636#M242387</link>
      <description>&lt;P&gt;We are having multiple roles created in Splunk restricted by their index and users will be added to this role via AD group and we use LDAP method for authentication.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is authentication.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[authentication]
authType = LDAP
authSettings = uk_ldap_auth

[uk_ldap_auth]
SSLEnabled = 1
bindDN = CN=Infodir-HBEU-INFSLK,OU=Service Accounts,DC=InfoDir,DC=Prod,DC=FED
groupBaseDN = OU=Splunk Network Log Analysis UK,OU=Applications,OU=Groups,DC=Infodir,DC=Prod,DC=FED
groupMappingAttribute = dn
groupMemberAttribute = member
groupNameAttribute = cn
host = aa-lds-prod.uk.fed
port = 3269
userBaseDN = ou=HSBCPeople,dc=InfoDir,dc=Prod,dc=FED
userNameAttribute = employeeid
realNameAttribute = displayname
emailAttribute = mail

[roleMap_uk_ldap_auth]
&amp;lt;roles mapped with AD group created&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Checked this post -&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Security/How-can-I-generate-a-list-of-users-and-assigned-roles/m-p/194811" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Security/How-can-I-generate-a-list-of-users-and-assigned-roles/m-p/194811&lt;/A&gt;&amp;nbsp;and try to give the same command -&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;|rest /services/authentication/users splunk_server=local 
|fields title roles realname |rename title as userName|rename realname as Name&lt;/PRE&gt;&lt;P&gt;Given this in SH search, but hardly returning only 5 results but we have nearly 100 roles created. Even given splunk_server=*, still the same result.&lt;/P&gt;&lt;P&gt;I am having admin role as well and I hope I have the needed capabilities. Not sure what am I missing here? Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 12:07:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-a-list-of-users-and-assigned-roles-for-them/m-p/750636#M242387</guid>
      <dc:creator>splunklearner</dc:creator>
      <dc:date>2025-07-29T12:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a list of users and assigned roles for them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-a-list-of-users-and-assigned-roles-for-them/m-p/750637#M242388</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/273723"&gt;@splunklearner&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your authorize.conf file you have a stanza named [role_system_admin] remove the next two attributes:&lt;/P&gt;&lt;P&gt;edit_roles_grantable = enabled&lt;/P&gt;&lt;P&gt;grantableRoles = system_admin&lt;/P&gt;&lt;P&gt;These lines were required in the older versions of Splunk. Now however they are causing the issues you are seeing.&lt;/P&gt;&lt;P&gt;Check out&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Security/Users-missing-from-Access-Control/m-p/487058#M11170" target="_blank"&gt;https://community.splunk.com/t5/Security/Users-missing-from-Access-Control/m-p/487058#M11170&lt;/A&gt; for more info on this fix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt; &lt;STRONG&gt;Did this answer help you? If so, please consider&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;Your feedback encourages the volunteers in this community to continue contributing.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 12:16:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-a-list-of-users-and-assigned-roles-for-them/m-p/750637#M242388</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-07-29T12:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a list of users and assigned roles for them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-a-list-of-users-and-assigned-roles-for-them/m-p/750638#M242389</link>
      <description>&lt;P&gt;But in local/authorize.conf this stanza is not there&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 12:24:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-a-list-of-users-and-assigned-roles-for-them/m-p/750638#M242389</guid>
      <dc:creator>splunklearner</dc:creator>
      <dc:date>2025-07-29T12:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a list of users and assigned roles for them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-a-list-of-users-and-assigned-roles-for-them/m-p/750659#M242393</link>
      <description>&lt;P&gt;Wait. Are you saying that you're getting only a handful of results meaning that you don't see all users? (because that's usually the case&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp; described - problematic setting in role definitions cause users to not show up properly in some places).&lt;/P&gt;&lt;P&gt;Or do you mean that you have 100 roles defined in your system and ony see 5 roles assigned to the users? This case is acctually normal because Splunk doesn't expand inherited roles. You can see all effective capabilities per user, but you can't see any "intermediate" roles - just the ones explicitly assigned to a user.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 16:44:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-a-list-of-users-and-assigned-roles-for-them/m-p/750659#M242393</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-07-29T16:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a list of users and assigned roles for them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-a-list-of-users-and-assigned-roles-for-them/m-p/750662#M242394</link>
      <description>&lt;P&gt;I mean we have 100 roles already assigned to the users (AD groups) and we can see only 5 roles when giving that search... We want to see all roles assigned to each user... AD group consists of many members&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 17:10:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-a-list-of-users-and-assigned-roles-for-them/m-p/750662#M242394</guid>
      <dc:creator>splunklearner</dc:creator>
      <dc:date>2025-07-29T17:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a list of users and assigned roles for them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-a-list-of-users-and-assigned-roles-for-them/m-p/750667#M242397</link>
      <description>&lt;P&gt;Ok. As I said - you will only see the groups directly assigned by group mappings - no inherited roles. That's one thing.&lt;/P&gt;&lt;P&gt;Another thing - as far as I remember, the user is assigned roles from LDAP mapping at the time they are logging in. After that the provisioned user stays the way it is until the user logs in again, LDAP gets contacted and then user's roles are synchronized to LDAP groups.&lt;/P&gt;&lt;P&gt;So if - for example - your users last logged in a month ago but you added them to various LDAP groups last week, you won't see that in Splunk until they log in.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 17:33:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-a-list-of-users-and-assigned-roles-for-them/m-p/750667#M242397</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-07-29T17:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a list of users and assigned roles for them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-a-list-of-users-and-assigned-roles-for-them/m-p/750668#M242398</link>
      <description>&lt;P&gt;They are logging in daily but still can't able to see their name and title&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 17:40:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-a-list-of-users-and-assigned-roles-for-them/m-p/750668#M242398</guid>
      <dc:creator>splunklearner</dc:creator>
      <dc:date>2025-07-29T17:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Generate a list of users and assigned roles for them</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Generate-a-list-of-users-and-assigned-roles-for-them/m-p/750695#M242402</link>
      <description>&lt;P&gt;Ah my apologies, I misunderstood previously.&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;said, Splunk will only be aware of any changes/additional/removal of groups when a user logs in, so this is something worth considering, although isnt the issue here.&lt;/P&gt;&lt;P&gt;Can I clarify - the 100s of roles that you're referring to here, are these *all* Splunk roles that also exist in Splunk where the AD role is mapped to a specific (unique) Splunk role?&lt;/P&gt;&lt;P&gt;The REST endpoints will only return the Splunk role for a user not all their AD roles - I just want to make sure we're on the same page before I dig deeper! Thanks&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 21:34:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Generate-a-list-of-users-and-assigned-roles-for-them/m-p/750695#M242402</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-07-29T21:34:31Z</dc:date>
    </item>
  </channel>
</rss>

