<?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 Query Multi-Domain Super Users in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-Multi-Domain-Super-Users/m-p/17474#M1145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any API command to show only multi-domain super users? I have been unable to find one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is not, I'm wondering how others, for auditing purposes, obtain a list of admins who have read/write access, if any are willing to share their methods.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Dec 2018 16:03:03 GMT</pubDate>
    <dc:creator>Mike_A</dc:creator>
    <dc:date>2018-12-18T16:03:03Z</dc:date>
    <item>
      <title>Query Multi-Domain Super Users</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-Multi-Domain-Super-Users/m-p/17474#M1145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any API command to show only multi-domain super users? I have been unable to find one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is not, I'm wondering how others, for auditing purposes, obtain a list of admins who have read/write access, if any are willing to share their methods.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2018 16:03:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-Multi-Domain-Super-Users/m-p/17474#M1145</guid>
      <dc:creator>Mike_A</dc:creator>
      <dc:date>2018-12-18T16:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Query Multi-Domain Super Users</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-Multi-Domain-Super-Users/m-p/17475#M1146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use show-administrators against MDS with details-level full and parse for the relevant profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short python example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.checkpoint.com/legacyfs/online/checkpoint/76470_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2018 19:53:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-Multi-Domain-Super-Users/m-p/17475#M1146</guid>
      <dc:creator>Joshua_Hatter</dc:creator>
      <dc:date>2018-12-18T19:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Query Multi-Domain Super Users</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-Multi-Domain-Super-Users/m-p/17476#M1147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or just run &lt;STRONG&gt;mdsconfig&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.checkpoint.com/legacyfs/online/checkpoint/76496_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 08:08:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-Multi-Domain-Super-Users/m-p/17476#M1147</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2018-12-19T08:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Query Multi-Domain Super Users</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-Multi-Domain-Super-Users/m-p/17477#M1148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joshua! I'll give this a shot but I believe this will give the desired result.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 10:59:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-Multi-Domain-Super-Users/m-p/17477#M1148</guid>
      <dc:creator>Mike_A</dc:creator>
      <dc:date>2018-12-19T10:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Query Multi-Domain Super Users</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-Multi-Domain-Super-Users/m-p/17478#M1149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Danny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;I'm looking for a way to automate and gather this information on a reoccurring basis without the intervention of my team. By using 'mdsconfig', or a screen shot from SmartConsole, we are inherently forcing the team to manually perform these tasks when the auditors ask. With the API I was hoping to write a script, or in this case harvest Joshua's, and run this job every quarter and email out the results.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 11:13:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-Multi-Domain-Super-Users/m-p/17478#M1149</guid>
      <dc:creator>Mike_A</dc:creator>
      <dc:date>2018-12-19T11:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Query Multi-Domain Super Users</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-Multi-Domain-Super-Users/m-p/17479#M1150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mdsconfig is just an interactive tool to quickly access various Check Point commands.&lt;/P&gt;&lt;P&gt;Your interest is in option 6 - Administrators which simply executes &lt;A href="https://sc1.checkpoint.com/documents/R80.10/WebAdminGuides/EN/CP_R80.10_Multi-DomainSecurityManagement_AdminGuide/html_frameset.htm?topic=documents/R80.10/WebAdminGuides/EN/CP_R80.10_Multi-DomainSecurityManagement_AdminGuide/94667"&gt;mdsquerydb&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;mdsquerydb Administrators‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Addtional queries to collect the admin type can be configured within &lt;SPAN class=""&gt;$MDSDIR/&lt;EM&gt;conf/queries&lt;/EM&gt;.&lt;EM&gt;conf&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;So a simple One-liner added as cron job via GAiA's built-in job scheduler would easily address your needs to send you the list as a mail.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;mdsquerydb Administrators | $FWDIR/bin/sendmail -s 'Multi-Domain Super Users' -t MAILSERVER -f SENDER_EMAIL_ADDRESS RECEIVER_EMAIL_ADDRESS;‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;In order to run a python (&lt;EM&gt;&lt;TT&gt;&lt;STRONG&gt;$FWDIR/Python/bin/python&lt;/STRONG&gt;&lt;/TT&gt;&lt;/EM&gt;) script you would first need to whitelist it within &lt;EM&gt;&lt;STRONG&gt;/etc/fw/conf/whitelist &lt;/STRONG&gt;&lt;/EM&gt;to be able to run it.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 12:54:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-Multi-Domain-Super-Users/m-p/17479#M1150</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2018-12-19T12:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Query Multi-Domain Super Users</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-Multi-Domain-Super-Users/m-p/17480#M1151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Danny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 'mdsquerydb Administrators' will output the list of names, I modified the queries.conf file and added "type" after the __name__ attribute. The response I get when adding "type" is '&lt;STRONG&gt;mike-andretta pv1_administrator&lt;/STRONG&gt;' for every user. Im looking at &lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk65181&amp;amp;partition=General&amp;amp;product=Multi-Domain"&gt;sk65181&lt;/A&gt;&amp;nbsp;at the various attributes that could be used in queries.conf but it does not look like, other than type, there is an attribute that will show more of a "Profile Type" which would indicate the Domain Manager vs Multi-Domain Super User.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing an attribute that would give me more of what im looking for by using mdsquerydb?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 13:56:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-Multi-Domain-Super-Users/m-p/17480#M1151</guid>
      <dc:creator>Mike_A</dc:creator>
      <dc:date>2018-12-19T13:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Query Multi-Domain Super Users</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-Multi-Domain-Super-Users/m-p/17481#M1152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Danny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to find "&lt;STRONG&gt;msp_perm&lt;/STRONG&gt;" that is returning a number. It looks like 2x numbers are possibly returned, in my scenario&amp;nbsp;80000000 which looks to equal super user and&amp;nbsp;10000000 which matches up with my Domain Managers. Is there a better way, table/attribute, to gather this information?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Expert@XXXX:0]# cat $MDSDIR/conf/queries.conf | grep Admin&lt;BR /&gt;MDS "mdsdb" Administrators attr pv1_administrators "" __name__,msp_perm # Get names of all Administrators&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&lt;SPAN&gt;Expert@XXXX:0&lt;/SPAN&gt;]# mdsquerydb Administrators | grep mike-andretta&lt;BR /&gt;mike-andretta 80000000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2018 16:07:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-Multi-Domain-Super-Users/m-p/17481#M1152</guid>
      <dc:creator>Mike_A</dc:creator>
      <dc:date>2018-12-19T16:07:44Z</dc:date>
    </item>
  </channel>
</rss>

