<?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: Query permission profiles where used. in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-permission-profiles-where-used/m-p/32305#M1953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like a missing functionality in API. I will open task on that in our system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a WA to suggest (not elegant but will do the trick) - list all administrators which their profile match to specific UID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of command i did on my setup:&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 11.0pt; "&gt;mgmt_cli -r true -d "System Data" show administrators details-level full -f json | jq '.objects[] | select ((."permissions-profile".uid) == "76bf1ca0-5333-46d1-ad06-fb8e9c758cd9")| [.name , .uid, .type] | @csv ' -r&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;And its output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 11.0pt; "&gt;"amiadAdmin","14e0ae1d-fd17-44fc-ad29-42289a7a3c7d","administrator"&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2019 19:16:19 GMT</pubDate>
    <dc:creator>Amiad_Stern</dc:creator>
    <dc:date>2019-02-14T19:16:19Z</dc:date>
    <item>
      <title>Query permission profiles where used.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-permission-profiles-where-used/m-p/32301#M1949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;BR /&gt;I'm trying to use the mgmt_cli to query where a permission profile is used but I'm running into a roadblock.&lt;/P&gt;&lt;P&gt;I can't see any reference to it on accounts or any reference to accounts on it when I query with show object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Object type is blank here which I'm guessing is a problem.&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;.\mgmt_cli.exe show object uid $id details-level full -m $server --format json --session-id $sid&lt;BR /&gt;{&lt;BR /&gt;  "object" : {&lt;BR /&gt;    "uid" : "96040d34-c882-407e-a3db-14dc3e705b62",&lt;BR /&gt;    "name" : "Full_Administration",&lt;BR /&gt;    "type" : "",&lt;BR /&gt;    "domain" : {&lt;BR /&gt;      "uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",&lt;BR /&gt;      "name" : "SMC User",&lt;BR /&gt;      "domain-type" : "domain"&lt;BR /&gt;    },&lt;BR /&gt;    "color" : "blue",&lt;BR /&gt;    "meta-info" : {&lt;BR /&gt;      "validation-state" : "ok",&lt;BR /&gt;      "last-modify-time" : {&lt;BR /&gt;        "posix" : 1542166849773,&lt;BR /&gt;        "iso-8601" : "2018-11-14T11:40+0800"&lt;BR /&gt;      },&lt;BR /&gt;      "last-modifier" : "System",&lt;BR /&gt;      "creation-time" : {&lt;BR /&gt;        "posix" : 1510728202381,&lt;BR /&gt;        "iso-8601" : "2017-11-15T14:43+0800"&lt;BR /&gt;      },&lt;BR /&gt;      "creator" : "System"&lt;BR /&gt;    },&lt;BR /&gt;    "tags" : [ ],&lt;BR /&gt;    "icon" : "General/Role",&lt;BR /&gt;    "comments" : "All Admin rights",&lt;BR /&gt;    "display-name" : "",&lt;BR /&gt;    "customFields" : null&lt;BR /&gt;  }&lt;BR /&gt;}‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Since in the GUI it shows where-used correctly I thought this might be the answer but the where-used command doesn't find it.&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;.\mgmt_cli.exe where-used uid $id details-level full -m $server --format json --session-id $sid&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt;  "code" : "generic_err_object_not_found",&lt;BR /&gt;  "message" : "Requested object [96040d34-c882-407e-a3db-14dc3e705b62] not found"&lt;BR /&gt;}‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to figure out from the API where a permission profile is applied?&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Jeremy&lt;BR /&gt;&lt;BR /&gt;EDIT: Running 80.20&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 04:04:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-permission-profiles-where-used/m-p/32301#M1949</guid>
      <dc:creator>Jeremy_Parker</dc:creator>
      <dc:date>2019-02-12T04:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Query permission profiles where used.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-permission-profiles-where-used/m-p/32302#M1950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of management?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/migrated-users/2192"&gt;Amiad Stern&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2019 05:22:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-permission-profiles-where-used/m-p/32302#M1950</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-02-13T05:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Query permission profiles where used.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-permission-profiles-where-used/m-p/32303#M1951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;80.20, Sorry should have mentioned!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 05:25:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-permission-profiles-where-used/m-p/32303#M1951</guid>
      <dc:creator>Jeremy_Parker</dc:creator>
      <dc:date>2019-02-14T05:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Query permission profiles where used.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-permission-profiles-where-used/m-p/32304#M1952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, you need to be querying against the 'System Data' domain.&lt;/P&gt;&lt;P&gt;For example, I can see&amp;nbsp;the profile associated with my user:&lt;/P&gt;&lt;PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;[Expert@mgmt:0]# &lt;STRONG&gt;mgmt_cli -r true --domain 'System Data' --format json show-administrator name phoneboy&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; "uid" : "5758dc57-9eac-4f8e-8041-0570652a8f19",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; "name" : "phoneboy",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; "type" : "administrator",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; "domain" : {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; "uid" : "a0eebc99-afed-4ef8-bb6d-fedfedfedfed",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; "name" : "System Data",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; "domain-type" : "mds"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; "email" : "",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; "phone-number" : "",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; "authentication-method" : "check point password",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; "must-change-password" : false,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; "permissions-profile" : {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; "uid" : "3c8bf435-6bdc-4dec-aab0-5af53bbf946b",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; "name" : "Read Write All",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; "type" : "PermissionRole",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; "domain" : {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "uid" : "a0bbbc99-adef-4ef8-bb6d-defdefdefdef",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "name" : "Check Point Data",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "domain-type" : "data domain"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; "sic-name" : "",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; "comments" : "",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; "color" : "black",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; "icon" : "General/Administrator",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; "tags" : [ ],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; "meta-info" : {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; "lock" : "unlocked",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; "validation-state" : "ok",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; "last-modify-time" : {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "posix" : 1550159709995,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "iso-8601" : "2019-02-14T15:55+0000"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; "last-modifier" : "admin",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; "creation-time" : {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "posix" : 1550159709995,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; "iso-8601" : "2019-02-14T15:55+0000"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; &amp;nbsp; "creator" : "admin"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; },&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;&amp;nbsp; "read-only" : false&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;Of course, that doesn't solve the next question, which is, why isn't where-used working with permission profiles.&lt;/P&gt;&lt;PRE&gt;&lt;P class=""&gt;&lt;SPAN class="" style="font-size: 13px;"&gt;[Expert@mgmt:0]# &lt;STRONG&gt;mgmt_cli --r true --domain 'System Data' --format json where-used uid 3c8bf435-6bdc-4dec-aab0-5af53bbf946b&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class="" style="font-size: 13px;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class="" style="font-size: 13px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;"code" : "generic_err_object_not_found",&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class="" style="font-size: 13px;"&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;"message" : "Requested object [3c8bf435-6bdc-4dec-aab0-5af53bbf946b] not found"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class="" style="font-size: 13px;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A ___default_attr="2192" _jive_internal="true" data-id="2192" data-objecttype="3" data-orig-content="Amiad Stern" data-type="person" href="https://community.checkpoint.com/people/97a1c88c-0db1-3a8a-84d0-b24302e279cd" jivemacro="user"&gt;Amiad Stern&lt;/A&gt;‌ any ideas here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 16:05:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-permission-profiles-where-used/m-p/32304#M1952</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-02-14T16:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Query permission profiles where used.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-permission-profiles-where-used/m-p/32305#M1953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like a missing functionality in API. I will open task on that in our system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a WA to suggest (not elegant but will do the trick) - list all administrators which their profile match to specific UID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of command i did on my setup:&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 11.0pt; "&gt;mgmt_cli -r true -d "System Data" show administrators details-level full -f json | jq '.objects[] | select ((."permissions-profile".uid) == "76bf1ca0-5333-46d1-ad06-fb8e9c758cd9")| [.name , .uid, .type] | @csv ' -r&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;And its output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 11.0pt; "&gt;"amiadAdmin","14e0ae1d-fd17-44fc-ad29-42289a7a3c7d","administrator"&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 19:16:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-permission-profiles-where-used/m-p/32305#M1953</guid>
      <dc:creator>Amiad_Stern</dc:creator>
      <dc:date>2019-02-14T19:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Query permission profiles where used.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-permission-profiles-where-used/m-p/32306#M1954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the System Data an inbuilt domain? Might it's name be different?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like that's the right way to go about it but my commands don't seem to find it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.\mgmt_cli.exe show-administrators --domain 'System Data' -r true --session-id $sid --format json&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; "code" : "err_inappropriate_domain_type",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; "message" : "This command can work only on domains of type MDS. Cannot execute it in the current domain (current domain type is Domain)."&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doesn't find that domain, or it's not the correct type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.\mgmt_cli.exe show-administrators -r true --session-id $sid --format json&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; "code" : "err_inappropriate_domain_type",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp; "message" : "This command can work only on domains of type MDS. Cannot execute it in the current domain (current domain type is Domain)."&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leaving the domain out is the same thing.&lt;/P&gt;&lt;P&gt;I thought maybe I could check for a rename with show domains.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.\mgmt_cli.exe show domains limit 50 offset 0 --session-id $sid --format json&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; "objects" : [ ],&lt;BR /&gt;&amp;nbsp; "total" : 0&lt;BR /&gt;}&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But that also returns no results. &lt;/P&gt;&lt;P&gt;And just for good measure tried to find that domain with show domain&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;.\mgmt_cli.exe show domain name 'System Data'&amp;nbsp; --session-id $sid --format json&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; "code" : "generic_err_object_not_found",&lt;BR /&gt;&amp;nbsp; "message" : "Requested object [System Data] not found"&lt;BR /&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how to proceed? &lt;BR /&gt;Could just be something weird or different in our environment. It wouldn't be the first time work has changed something in the past for some obscure historical reason and left it like that for 10 years.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 01:17:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-permission-profiles-where-used/m-p/32306#M1954</guid>
      <dc:creator>Jeremy_Parker</dc:creator>
      <dc:date>2019-02-15T01:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Query permission profiles where used.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-permission-profiles-where-used/m-p/32307#M1955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;System Data is an built-in domain that contains MDS-level data.&lt;/P&gt;&lt;P&gt;It exists even on non-MDS systems.&lt;/P&gt;&lt;P&gt;However, the only way you can "show" that domain is to log into the "System Data" domain to show it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="font-size: 13px;"&gt;[Expert@mgmt:0]# &lt;STRONG&gt;mgmt_cli -r true --domain 'System Data' --format json show domains&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; "objects" : [ {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; "uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; "name" : "SMC User",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; "type" : "domain",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; "domain" : {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; "uid" : "a0eebc99-afed-4ef8-bb6d-fedfedfedfed",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; "name" : "System Data",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; "domain-type" : "mds"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; } ],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; "from" : 1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; "to" : 1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt; "total" : 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;[Expert@mumford:0]#&lt;/SPAN&gt; &lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI, -r true will not work from mgmt_cli.exe.&lt;/P&gt;&lt;P&gt;It is a shortcut to create a session as "root" but will only work from the CLI of the management server itself, which I am doing in this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, if you log into the "System Data" domain when you create your session, you can see the administrators.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;PRE&gt;&lt;STRONG&gt;mgmt_cli -u user -p password -m x.y.z.w --domain "System Data"&lt;/STRONG&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;&lt;PRE&gt;&lt;STRONG&gt;mgmt_cli -m x.y.z.w --session-id $sid show-administrators&lt;/STRONG&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;And yes, I did verify this works on Windows as well &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 03:24:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-permission-profiles-where-used/m-p/32307#M1955</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-02-15T03:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Query permission profiles where used.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-permission-profiles-where-used/m-p/32308#M1956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That explains it! I was getting pretty confused. &lt;BR /&gt;I'm getting the data I need out of that now. &lt;BR /&gt;Thanks for the help &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 04:20:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Query-permission-profiles-where-used/m-p/32308#M1956</guid>
      <dc:creator>Jeremy_Parker</dc:creator>
      <dc:date>2019-02-15T04:20:59Z</dc:date>
    </item>
  </channel>
</rss>

