<?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: User Status Detection in Splunk React App with LDAP/SAML Authentication in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/User-Status-Detection-in-Splunk-React-App-with-LDAP-SAML/m-p/748022#M11961</link>
    <description>&lt;P&gt;Appreciate the insight&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;&amp;nbsp;— that helps! I’ll be doing a bit more investigation on my end too.&lt;/P&gt;&lt;P&gt;if anyone has any other suggesstions , let me know..&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jun 2025 11:38:00 GMT</pubDate>
    <dc:creator>sanjai</dc:creator>
    <dc:date>2025-06-16T11:38:00Z</dc:date>
    <item>
      <title>User Status Detection in Splunk React App with LDAP/SAML Authentication</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/User-Status-Detection-in-Splunk-React-App-with-LDAP-SAML/m-p/748018#M11958</link>
      <description>&lt;P&gt;Hi Splunk Community,&lt;/P&gt;&lt;P&gt;I’m developing a &lt;STRONG&gt;User Management React application&lt;/STRONG&gt; using the Splunk React UI framework, intended to be used inside a custom Splunk App. This app uses the &lt;STRONG&gt;REST API&lt;/STRONG&gt; (/services/authentication/users) to fetch user details.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I’ve Done:&lt;/STRONG&gt;&lt;BR /&gt;In my &lt;STRONG&gt;local Splunk instance&lt;/STRONG&gt; (where users are created manually with Authentication System = Splunk),&amp;nbsp; for testing the app ,each user object contains a "locked-out" attribute.&lt;BR /&gt;I use this attribute to determine account status:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;"locked-out": 0 → User is Active&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;"locked-out": 1 → User is Locked&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This works as expected in my local environment.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Issue:&lt;/STRONG&gt;&lt;BR /&gt;When testing the same app on a &lt;STRONG&gt;development Splunk instance that uses LDAP authentication&lt;/STRONG&gt;, I noticed that LDAP user accounts &lt;STRONG&gt;do not contain the locked-out attribute&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sanjai_0-1750071850441.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39376iDC6FD31618D2BAD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sanjai_0-1750071850441.png" alt="sanjai_0-1750071850441.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Because of this, my app incorrectly assumes the user is locked (my logic defaults to "Locked" if the attribute is missing).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Do LDAP or SAML user accounts in Splunk expose any attribute that can be used to determine if the account is locked or active?&lt;BR /&gt;If not, is there any workaround or recommended practice for this scenario?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is there a capability that allows a logged-in user to view their own authentication context or session info?&lt;BR /&gt;I’m aware of the edit_user capability, but that allows users to modify other users, which I want to avoid. ( the below image user does't have the &lt;U&gt;&lt;STRONG&gt;Admin&lt;/STRONG&gt; &lt;/U&gt;role how can it shows the &lt;STRONG&gt;USER AND AUTH&lt;/STRONG&gt; menu)&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sanjai_3-1750072131335.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39379iA0B59B2FA1930235/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sanjai_3-1750072131335.png" alt="sanjai_3-1750072131335.png" /&gt;&lt;/span&gt;&lt;P&gt;Table from custom react app(lists only currently logged in user)&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sanjai_4-1750072159647.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39380iADD9A51F428BB8BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sanjai_4-1750072159647.png" alt="sanjai_4-1750072159647.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;What is the expected behavior when an LDAP or SAML user enters the wrong password multiple times?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;For &lt;STRONG&gt;Splunk-native users&lt;/STRONG&gt;, after several failed login attempts, the "locked-out" attribute is set to 1.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;For &lt;STRONG&gt;LDAP/SAML users&lt;/STRONG&gt;, even after multiple incorrect login attempts, I don’t see any status change or locked-out attribute.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Is this expected? Are externally authenticated users (LDAP/SAML) not "locked" in the same way as Splunk-native accounts?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario Tested:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Logged in with correct username but incorrect password (more than 5 times).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Splunk-authenticated user: "locked-out" attribute appears and is set to 1.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;LDAP-authenticated user: no attribute added or updated; no visible change to user status.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Goal:&lt;/STRONG&gt;&lt;BR /&gt;I want the React app to accurately reflect account status for both Splunk-native and LDAP/SAML users. Looking for best practices or alternative approaches for handling this.&lt;/P&gt;&lt;P&gt;Let me know if you additional details about my question&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;BR /&gt;Sanjai&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 11:15:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/User-Status-Detection-in-Splunk-React-App-with-LDAP-SAML/m-p/748018#M11958</guid>
      <dc:creator>sanjai</dc:creator>
      <dc:date>2025-06-16T11:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: User Status Detection in Splunk React App with LDAP/SAML Authentication</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/User-Status-Detection-in-Splunk-React-App-with-LDAP-SAML/m-p/748020#M11959</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/263355"&gt;@sanjai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could use the current-context endpoint (e.g.&amp;nbsp;| rest /services/authentication/current-context) - this does return a locked-out field (see below) however for SSO/SAML/LDAP users this will always be 0 as the locked-out value is only used for native/local Splunk accounts.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="livehybrid_0-1750073283965.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/39382iF4B967C566EE871D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="livehybrid_0-1750073283965.png" alt="livehybrid_0-1750073283965.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It is the authentication provider that determines if the account is locked, e.g. if you fail to login 3 times with LDAP your LDAP provider may temporarily block you, this isnt something you can determine natively from Splunk, you would need some info from LDAP for this.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 11:32:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/User-Status-Detection-in-Splunk-React-App-with-LDAP-SAML/m-p/748020#M11959</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-06-16T11:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: User Status Detection in Splunk React App with LDAP/SAML Authentication</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/User-Status-Detection-in-Splunk-React-App-with-LDAP-SAML/m-p/748021#M11960</link>
      <description>&lt;P&gt;&lt;STRONG&gt;My current understanding of the solution is as follows — please correct me if I’m wrong:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;If the &lt;STRONG&gt;authentication type is SAML or LDAP&lt;/STRONG&gt;, the user is &lt;STRONG&gt;always considered active&lt;/STRONG&gt; (i.e., the account cannot be locked through Splunk (multiple failed login attempts).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If the &lt;STRONG&gt;authentication type is Splunk&lt;/STRONG&gt;, then the user can be either &lt;STRONG&gt;Active&lt;/STRONG&gt; or &lt;STRONG&gt;Locked-out&lt;/STRONG&gt;, based on the "locked-out" attribute.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Therefore, I need to update my logic accordingly:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Check the authentication type&lt;/STRONG&gt; of the user first.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If it's &lt;STRONG&gt;Splunk&lt;/STRONG&gt;, then check the "locked-out" attribute.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If it's &lt;STRONG&gt;LDAP or SAML&lt;/STRONG&gt;, assume the user is &lt;STRONG&gt;active&lt;/STRONG&gt; by default.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 16 Jun 2025 11:33:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/User-Status-Detection-in-Splunk-React-App-with-LDAP-SAML/m-p/748021#M11960</guid>
      <dc:creator>sanjai</dc:creator>
      <dc:date>2025-06-16T11:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: User Status Detection in Splunk React App with LDAP/SAML Authentication</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/User-Status-Detection-in-Splunk-React-App-with-LDAP-SAML/m-p/748022#M11961</link>
      <description>&lt;P&gt;Appreciate the insight&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;&amp;nbsp;&amp;nbsp;— that helps! I’ll be doing a bit more investigation on my end too.&lt;/P&gt;&lt;P&gt;if anyone has any other suggesstions , let me know..&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 11:38:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/User-Status-Detection-in-Splunk-React-App-with-LDAP-SAML/m-p/748022#M11961</guid>
      <dc:creator>sanjai</dc:creator>
      <dc:date>2025-06-16T11:38:00Z</dc:date>
    </item>
  </channel>
</rss>

