<?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: Add mutiple users to a role at one Go in Security</title>
    <link>https://community.splunk.com/t5/Security/Add-mutiple-users-to-a-role-at-one-Go/m-p/42868#M1436</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
Thanks much for above guide, I have few doubt/queries-&lt;BR /&gt;
1) Above command edited the roles of users in users.txt and added "some role", Please suggest command only to add role with no changes in existing role.&lt;BR /&gt;
2)Above script modify roles of 1st user in users.txt, but not others. It has thrown below error-&lt;/P&gt;

&lt;P&gt;User rajul.jain edited.&lt;BR /&gt;
Argument "roles" is not supported by this handler.&lt;BR /&gt;
Argument "roles" is not supported by this handler.&lt;/P&gt;

&lt;P&gt;My users.txt looks like this&lt;/P&gt;

&lt;H1&gt;cat /home/rjain/users.txt&lt;/H1&gt;

&lt;P&gt;rajul.jain&lt;BR /&gt;
shas.sin&lt;BR /&gt;
prath.bal&lt;/P&gt;

&lt;P&gt;Please suggest..&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2019 06:33:48 GMT</pubDate>
    <dc:creator>rajuljain2605</dc:creator>
    <dc:date>2019-03-15T06:33:48Z</dc:date>
    <item>
      <title>Add mutiple users to a role at one Go</title>
      <link>https://community.splunk.com/t5/Security/Add-mutiple-users-to-a-role-at-one-Go/m-p/42861#M1429</link>
      <description>&lt;P&gt;How to add mutiple users to a newly created role at one go?&lt;BR /&gt;
Curently i go to each user and add role manually... it runs into hundreds of users and it terrible &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2012 14:53:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Add-mutiple-users-to-a-role-at-one-Go/m-p/42861#M1429</guid>
      <dc:creator>ma_anand1984</dc:creator>
      <dc:date>2012-05-03T14:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Add mutiple users to a role at one Go</title>
      <link>https://community.splunk.com/t5/Security/Add-mutiple-users-to-a-role-at-one-Go/m-p/42862#M1430</link>
      <description>&lt;P&gt;It's probably best do this by editing the authorize.conf config files (though this will require a restart of Splunk), or by coding against the Splunk REST API.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2012 15:44:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Add-mutiple-users-to-a-role-at-one-Go/m-p/42862#M1430</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-05-03T15:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Add mutiple users to a role at one Go</title>
      <link>https://community.splunk.com/t5/Security/Add-mutiple-users-to-a-role-at-one-Go/m-p/42863#M1431</link>
      <description>&lt;P&gt;As an alternative you could script it using splunk's CLI. Eg. on Linux by putting the users into a text file:&lt;/P&gt;

&lt;P&gt;users.txt:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;user1
user2
user3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the then run&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk login &amp;amp;&amp;amp; cat users.txt | while read user; do splunk edit user $user -role some_role; done
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will assign all users in the text file to the role "some_role". &lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2012 16:09:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Add-mutiple-users-to-a-role-at-one-Go/m-p/42863#M1431</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2012-05-03T16:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Add mutiple users to a role at one Go</title>
      <link>https://community.splunk.com/t5/Security/Add-mutiple-users-to-a-role-at-one-Go/m-p/42864#M1432</link>
      <description>&lt;P&gt;Thank you so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
where can i find more info on this, like commands. Any link to tutor ?&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2012 14:26:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Add-mutiple-users-to-a-role-at-one-Go/m-p/42864#M1432</guid>
      <dc:creator>ma_anand1984</dc:creator>
      <dc:date>2012-05-04T14:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Add mutiple users to a role at one Go</title>
      <link>https://community.splunk.com/t5/Security/Add-mutiple-users-to-a-role-at-one-Go/m-p/42865#M1433</link>
      <description>&lt;P&gt;any link to quick start guide on REST API. this is the first time im hearing this&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2012 14:27:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Add-mutiple-users-to-a-role-at-one-Go/m-p/42865#M1433</guid>
      <dc:creator>ma_anand1984</dc:creator>
      <dc:date>2012-05-04T14:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add mutiple users to a role at one Go</title>
      <link>https://community.splunk.com/t5/Security/Add-mutiple-users-to-a-role-at-one-Go/m-p/42866#M1434</link>
      <description>&lt;P&gt;&lt;A href="http://dev.splunk.com/view/rest-api-overview/SP-CAAADP8"&gt;http://dev.splunk.com/view/rest-api-overview/SP-CAAADP8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2012 15:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Add-mutiple-users-to-a-role-at-one-Go/m-p/42866#M1434</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2012-05-04T15:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add mutiple users to a role at one Go</title>
      <link>https://community.splunk.com/t5/Security/Add-mutiple-users-to-a-role-at-one-Go/m-p/42867#M1435</link>
      <description>&lt;P&gt;There's a chapter in the Splunk docs:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/AbouttheCLI"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/AbouttheCLI&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/GethelpwiththeCLI"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/GethelpwiththeCLI&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/AccessandusetheCLIonaremoteserver"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/AccessandusetheCLIonaremoteserver&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/CLIadmincommands"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/CLIadmincommands&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2012 15:04:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Add-mutiple-users-to-a-role-at-one-Go/m-p/42867#M1435</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2012-05-04T15:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Add mutiple users to a role at one Go</title>
      <link>https://community.splunk.com/t5/Security/Add-mutiple-users-to-a-role-at-one-Go/m-p/42868#M1436</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Thanks much for above guide, I have few doubt/queries-&lt;BR /&gt;
1) Above command edited the roles of users in users.txt and added "some role", Please suggest command only to add role with no changes in existing role.&lt;BR /&gt;
2)Above script modify roles of 1st user in users.txt, but not others. It has thrown below error-&lt;/P&gt;

&lt;P&gt;User rajul.jain edited.&lt;BR /&gt;
Argument "roles" is not supported by this handler.&lt;BR /&gt;
Argument "roles" is not supported by this handler.&lt;/P&gt;

&lt;P&gt;My users.txt looks like this&lt;/P&gt;

&lt;H1&gt;cat /home/rjain/users.txt&lt;/H1&gt;

&lt;P&gt;rajul.jain&lt;BR /&gt;
shas.sin&lt;BR /&gt;
prath.bal&lt;/P&gt;

&lt;P&gt;Please suggest..&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 06:33:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Add-mutiple-users-to-a-role-at-one-Go/m-p/42868#M1436</guid>
      <dc:creator>rajuljain2605</dc:creator>
      <dc:date>2019-03-15T06:33:48Z</dc:date>
    </item>
  </channel>
</rss>

