<?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>question How to configure Ranger Usersync to sync users from a file in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-Ranger-Usersync-to-sync-users-from-a-file/m-p/95351#M8692</link>
    <description />
    <pubDate>Wed, 14 Oct 2015 01:52:55 GMT</pubDate>
    <dc:creator>amcbarnett</dc:creator>
    <dc:date>2015-10-14T01:52:55Z</dc:date>
    <item>
      <title>How to configure Ranger Usersync to sync users from a file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-Ranger-Usersync-to-sync-users-from-a-file/m-p/95351#M8692</link>
      <description />
      <pubDate>Wed, 14 Oct 2015 01:52:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-Ranger-Usersync-to-sync-users-from-a-file/m-p/95351#M8692</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2015-10-14T01:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Ranger Usersync to sync users from a file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-Ranger-Usersync-to-sync-users-from-a-file/m-p/95352#M8693</link>
      <description>&lt;P&gt;Set the following properties in usersync :&lt;/P&gt;&lt;P&gt;usergroupSync.source.impl.class = org.apache.ranger.unixusersync.process.FileSourceUserGroupBuilder&lt;/P&gt;&lt;P&gt;usergroupSync.filesource.file =C:\\tmp\userSource1.json&lt;/P&gt;&lt;P&gt;usergroupSync.filesource.text.delimiter = ,

Example file:
Multiple Users&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;        "user1001": [&lt;/P&gt;&lt;P&gt;            "group0",&lt;/P&gt;&lt;P&gt;            "group18",&lt;/P&gt;&lt;P&gt;            "group6",&lt;/P&gt;&lt;P&gt;            "group7",&lt;/P&gt;&lt;P&gt;            "group26",&lt;/P&gt;&lt;P&gt;            "group24",&lt;/P&gt;&lt;P&gt;            "group19",&lt;/P&gt;&lt;P&gt;            "group3",&lt;/P&gt;&lt;P&gt;            "group5"&lt;/P&gt;&lt;P&gt;        ],&lt;/P&gt;&lt;P&gt;        "user2001": [&lt;/P&gt;&lt;P&gt;            "group0",&lt;/P&gt;&lt;P&gt;            "group18",&lt;/P&gt;&lt;P&gt;            "group6"&lt;/P&gt;&lt;P&gt;        ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 01:57:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-Ranger-Usersync-to-sync-users-from-a-file/m-p/95352#M8693</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2015-10-14T01:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Ranger Usersync to sync users from a file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-Ranger-Usersync-to-sync-users-from-a-file/m-p/95353#M8694</link>
      <description>&lt;P&gt;Another approach:&lt;/P&gt;&lt;P&gt;Create a text file containing user/group details in the following format:&lt;/P&gt;&lt;P&gt;        - one line for each user&lt;/P&gt;&lt;P&gt;        - each line consists of multiple fields, separated by a comma&lt;/P&gt;&lt;P&gt;        - the first field is the username and every field after that is a group name the user belongs to&lt;/P&gt;&lt;P&gt;        - example line: user1,group1, group2,group3&lt;/P&gt;&lt;P&gt;  Load the user/group information in the text file, say at /home/user/ranger-users.txt, with the following command line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;  java -cp "/usr/hdp/current/ranger-usersync/dist/unixusersync-0.4.0.2.2.0.14-2.jar:/usr/hdp/current/ranger-usersync/lib/*:/etc/ranger/usersync/conf" com.xasecure.unixusersync.process.FileSourceUserGroupBuilder /home/user/ranger-users.txt&lt;/PRE&gt;
Updated for Ranger 0.50

&lt;PRE&gt;java -Dlogdir=/var/log/ranger/usersync -cp "/usr/hdp/current/ranger-usersync/dist/*:/usr/hdp/current/ranger-usersync/lib/*:/usr/hdp/current/ranger-usersync/conf" org.apache.ranger.unixusersync.process.FileSourceUserGroupBuilder /tmp/UserGroupSyncFile.txt&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Oct 2015 02:23:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-Ranger-Usersync-to-sync-users-from-a-file/m-p/95353#M8694</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2015-10-14T02:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Ranger Usersync to sync users from a file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-Ranger-Usersync-to-sync-users-from-a-file/m-p/95354#M8695</link>
      <description>&lt;P&gt;Wiki Documentation on this&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/RANGER/File+Source+User+Group+Sync+process" target="_blank"&gt;https://cwiki.apache.org/confluence/display/RANGER/File+Source+User+Group+Sync+process&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2015 13:38:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-Ranger-Usersync-to-sync-users-from-a-file/m-p/95354#M8695</guid>
      <dc:creator>rmani</dc:creator>
      <dc:date>2015-10-14T13:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure Ranger Usersync to sync users from a file</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-Ranger-Usersync-to-sync-users-from-a-file/m-p/95355#M8696</link>
      <description>&lt;P&gt;Thanks for creating the wiki for this&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 01:30:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-Ranger-Usersync-to-sync-users-from-a-file/m-p/95355#M8696</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2015-12-02T01:30:43Z</dc:date>
    </item>
  </channel>
</rss>

