<?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: How to remove user roles via rest API curl commands? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-user-roles-via-rest-API-curl-commands/m-p/430448#M75340</link>
    <description>&lt;P&gt;SOLUTION &lt;/P&gt;

&lt;P&gt;Example (add roles user and power):&lt;/P&gt;

&lt;P&gt;"curl -X POST -u admin:password -k https ://servername:8089/servicesNS/-/admin/LDAP-groups/endpointgoeshere%2usersnametoedit -d roles = user -d roles = power"&lt;/P&gt;

&lt;P&gt;To remove all roles you would just leave the "  -d roles =     " part blank.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2019 16:38:46 GMT</pubDate>
    <dc:creator>bobcatluke</dc:creator>
    <dc:date>2019-06-26T16:38:46Z</dc:date>
    <item>
      <title>How to remove user roles via rest API curl commands?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-user-roles-via-rest-API-curl-commands/m-p/430441#M75333</link>
      <description>&lt;P&gt;I am trying to create an automation script using Python. Part of the script needs to be able to remove  roles for a specified user. I have not found any documentation about how to remove ALL user roles or even specific roles using curl commands with the rest api. There has to be a way, does anyone have any insight on how to do this? The resources that I have found only talk about adding a role to a user, or manually removing roles from a user (which defeats the purpose of automating the process). &lt;/P&gt;

&lt;P&gt;LDAP&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 16:47:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-user-roles-via-rest-API-curl-commands/m-p/430441#M75333</guid>
      <dc:creator>bobcatluke</dc:creator>
      <dc:date>2019-06-20T16:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove user roles via rest API curl commands?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-user-roles-via-rest-API-curl-commands/m-p/430442#M75334</link>
      <description>&lt;P&gt;Did you try &lt;CODE&gt;/services/authentication/users/&lt;/CODE&gt; (&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/RESTREF/RESTaccess"&gt;docs page&lt;/A&gt; for more information)?&lt;/P&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 20:00:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-user-roles-via-rest-API-curl-commands/m-p/430442#M75334</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2019-06-20T20:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove user roles via rest API curl commands?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-user-roles-via-rest-API-curl-commands/m-p/430443#M75335</link>
      <description>&lt;P&gt;Yes, but there is nothing about removing roles from a user, only assigning a role/deleting the role itself.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 21:24:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-user-roles-via-rest-API-curl-commands/m-p/430443#M75335</guid>
      <dc:creator>bobcatluke</dc:creator>
      <dc:date>2019-06-20T21:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove user roles via rest API curl commands?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-user-roles-via-rest-API-curl-commands/m-p/430444#M75336</link>
      <description>&lt;P&gt;Can you please provide some more information like. is it local user, LDAP , SAML .... ?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 08:27:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-user-roles-via-rest-API-curl-commands/m-p/430444#M75336</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-06-21T08:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove user roles via rest API curl commands?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-user-roles-via-rest-API-curl-commands/m-p/430445#M75337</link>
      <description>&lt;P&gt;My apologies, LDAP&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 14:30:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-user-roles-via-rest-API-curl-commands/m-p/430445#M75337</guid>
      <dc:creator>bobcatluke</dc:creator>
      <dc:date>2019-06-21T14:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove user roles via rest API curl commands?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-user-roles-via-rest-API-curl-commands/m-p/430446#M75338</link>
      <description>&lt;P&gt;When you have LDAP authentication, you need to map LDAP group with role in Splunk. &lt;/P&gt;

&lt;P&gt;To add/remove access for any LDAP user you need to remove that user from LDAP group, you can't remove LDAP users directly on Splunk.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 14:57:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-user-roles-via-rest-API-curl-commands/m-p/430446#M75338</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-06-21T14:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove user roles via rest API curl commands?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-user-roles-via-rest-API-curl-commands/m-p/430447#M75339</link>
      <description>&lt;P&gt;I see, I was trying to remove role via local authentication. Our org organizes the LDAP configuration file like &lt;BR /&gt;
roleA: person1, person2, person3.  roleB: person1, person5, person9. So I now I need to figure out a way to automate the removal of a instance of a users name in the configuration file. Down another rabbit hole I go. &lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 15:27:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-user-roles-via-rest-API-curl-commands/m-p/430447#M75339</guid>
      <dc:creator>bobcatluke</dc:creator>
      <dc:date>2019-06-21T15:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove user roles via rest API curl commands?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-user-roles-via-rest-API-curl-commands/m-p/430448#M75340</link>
      <description>&lt;P&gt;SOLUTION &lt;/P&gt;

&lt;P&gt;Example (add roles user and power):&lt;/P&gt;

&lt;P&gt;"curl -X POST -u admin:password -k https ://servername:8089/servicesNS/-/admin/LDAP-groups/endpointgoeshere%2usersnametoedit -d roles = user -d roles = power"&lt;/P&gt;

&lt;P&gt;To remove all roles you would just leave the "  -d roles =     " part blank.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 16:38:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-remove-user-roles-via-rest-API-curl-commands/m-p/430448#M75340</guid>
      <dc:creator>bobcatluke</dc:creator>
      <dc:date>2019-06-26T16:38:46Z</dc:date>
    </item>
  </channel>
</rss>

