<?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 create LegacyUserAtLocation object through the R80.x api? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-LegacyUserAtLocation-object-through-the-R80-x-api/m-p/23265#M1427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to do some traffic in a virtual environment and its works as expected!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jan 2019 15:36:14 GMT</pubDate>
    <dc:creator>Francesco-P</dc:creator>
    <dc:date>2019-01-11T15:36:14Z</dc:date>
    <item>
      <title>How to create LegacyUserAtLocation object through the R80.x api?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-LegacyUserAtLocation-object-through-the-R80-x-api/m-p/23262#M1424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in a R80.20 SMS, i need to implement a lot of object of type LegacyUserAtLocation and use in the rulebase as ClientAuth rule.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;To use an existing LegacyUserAtLocation object, it's easy by referencing the uid, in the "source" filed of the api call for add-access-rule.&lt;BR /&gt;And this is the only way, because the allowed values for the "source" field are just "string" or a "list" of string (see &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/add-access-rule~v1.3%20"&gt; Management API Reference v1.3&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;For this reason,i suppose this object isn't a "runtime object", and should exist in the db(where, i don't know)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;But how can i create a new LegacyUserAtLocation object?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If i would use add-generic-object api, i should know the class type to use in the "create" field, as explained in this &lt;A _jive_internal="true" href="https://community.checkpoint.com/docs/DOC-2844"&gt;link&lt;/A&gt; (see Request - 2&amp;nbsp;&amp;nbsp;&amp;nbsp; Add new user)... i miss this information&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look to the following request to clarify:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Request - &lt;A href="https://_._._._/web_api/show-generic-object"&gt;https://_._._._/web_api/show-generic-object&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE style="padding-left: 30px;"&gt;This is the request for an existing LegacyUserAtLocation&lt;/PRE&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "uid": "fc3839e0-16d9-4d2b-9b6a-057744f7d3cc",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "details-level" : "full"&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Response&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;{&lt;BR /&gt;&amp;nbsp; "domainsPreset": null,&lt;BR /&gt;&amp;nbsp; "objectValidationState": null,&lt;BR /&gt;&amp;nbsp; "color": "BLACK",&lt;BR /&gt;&amp;nbsp; "userGroup": "0f2aadf4-42b7-11e2-a0d2-00000000dede",&lt;BR /&gt;&amp;nbsp; "location": "ad57e4fc-42bb-11e2-a0d2-00000000dede",&lt;BR /&gt;&amp;nbsp; "uid": "fc3839e0-16d9-4d2b-9b6a-057744f7d3cc",&lt;BR /&gt;&amp;nbsp; "folder": {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "uid": "baf708b7-6543-4b69-aa44-a3f6058e6607",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "Global Objects"&lt;BR /&gt;&amp;nbsp; },&lt;BR /&gt;&amp;nbsp; "domain": {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "uid": "41e821a0-3720-11e3-aa6e-0800200c9fde",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "SMC User"&lt;BR /&gt;&amp;nbsp; },&lt;BR /&gt;&amp;nbsp; "meta-info": {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "metaOwned": false,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "lockStateResponse": null,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "validationState": "OK",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "deletable": true,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "renameable": true,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "newObject": false,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "lastModifytime": 1546965204492,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "lastModifier": "System",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "creationTime": 1546964026903,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "creator": "System"&lt;BR /&gt;&amp;nbsp; },&lt;BR /&gt;&amp;nbsp; "tags": [&lt;BR /&gt;&amp;nbsp; ],&lt;BR /&gt;&amp;nbsp; "name": "user_1@location_1",&lt;BR /&gt;&amp;nbsp; "icon": "Objects/UsersGroup",&lt;BR /&gt;&amp;nbsp; "comments": "",&lt;BR /&gt;&amp;nbsp; "display-name": "",&lt;BR /&gt;&amp;nbsp; "customFields": null,&lt;BR /&gt;&amp;nbsp; "_original_type": "LegacyUserAtLocation"&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;/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;&lt;BR /&gt;I think to use something like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Request - &lt;A href="https://_._._._/web_api/show-generic-object"&gt;https://_._._._/web_api/add-generic-object&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "create" : "com.checkpoint.????.????.ClassUserAtLocation",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "new_user@new_location",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type": "LegacyUserAtLocation",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "color": "black",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "location": "ad57e4fc-42bb-11e2-a0d2-00000000dede",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "userGroup": "0f2aadf4-42b7-11e2-a0d2-00000000dede",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "icon": "Objects/UsersGroup",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "comments": "Some comments",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "display-name": "",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "_original_type": "LegacyUserAtLocation"&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but doesn't work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Possible workaround (dbedit?) or a list of class are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Francesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2019 17:23:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-LegacyUserAtLocation-object-through-the-R80-x-api/m-p/23262#M1424</guid>
      <dc:creator>Francesco-P</dc:creator>
      <dc:date>2019-01-10T17:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create LegacyUserAtLocation object through the R80.x api?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-LegacyUserAtLocation-object-through-the-R80-x-api/m-p/23263#M1425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The appropriate class&amp;nbsp;is going to be 'com.checkpoint.objects.LegacyUserAtLocation'&lt;/P&gt;&lt;P&gt;Then you need to supply the following keys.&lt;/P&gt;&lt;P&gt;name - I would stick with &amp;lt;groupname&amp;gt;@&amp;lt;objectname&amp;gt;&lt;/P&gt;&lt;P&gt;userGroup - uid of group object&lt;/P&gt;&lt;P&gt;location - uid of network object&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So something like:&lt;/P&gt;&lt;P&gt;mgmt_cli add generic-object create&amp;nbsp;'com.checkpoint.objects.LegacyUserAtLocation' userGroup ad7bffcd-af13-4fd6-8115-5662a9f15e57 location 5c2e22c4-1698-43fc-b7b2-bac26ef00c09 name "test_group@test_object"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you need to run show generic-objects class-name com.checkpoint.objects.LegacyUserAtLocation to get the UID of the created UserAtLocation to pass its UID to an access-rule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mgmt_cli show generic-objects class-name com.checkpoint.com.objects.LegacyUserAtLocation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tested in lab, the object creation works, don't know about traffic actually working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2019 20:50:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-LegacyUserAtLocation-object-through-the-R80-x-api/m-p/23263#M1425</guid>
      <dc:creator>Joshua_Hatter</dc:creator>
      <dc:date>2019-01-10T20:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to create LegacyUserAtLocation object through the R80.x api?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-LegacyUserAtLocation-object-through-the-R80-x-api/m-p/23264#M1426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joshua,&lt;BR /&gt;the api works, and asap i'll test the traffic and let you know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 09:22:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-LegacyUserAtLocation-object-through-the-R80-x-api/m-p/23264#M1426</guid>
      <dc:creator>Francesco-P</dc:creator>
      <dc:date>2019-01-11T09:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create LegacyUserAtLocation object through the R80.x api?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-LegacyUserAtLocation-object-through-the-R80-x-api/m-p/23265#M1427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to do some traffic in a virtual environment and its works as expected!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 15:36:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-LegacyUserAtLocation-object-through-the-R80-x-api/m-p/23265#M1427</guid>
      <dc:creator>Francesco-P</dc:creator>
      <dc:date>2019-01-11T15:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create LegacyUserAtLocation object through the R80.x api?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-LegacyUserAtLocation-object-through-the-R80-x-api/m-p/23266#M1428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While it's great you got it working, I do have to ask the question why you are still using&amp;nbsp;Client Auth.&lt;/P&gt;&lt;P&gt;Use on R80.x gateways still works, but has some limitations.&lt;/P&gt;&lt;P&gt;See:&amp;nbsp;&lt;A class="link-titled" href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk115961" title="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk115961"&gt;Install policy on R80.10 Security Gateway fails with verification error messages&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Jan 2019 02:49:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-LegacyUserAtLocation-object-through-the-R80-x-api/m-p/23266#M1428</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-01-13T02:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create LegacyUserAtLocation object through the R80.x api?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-LegacyUserAtLocation-object-through-the-R80-x-api/m-p/23267#M1429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dameon, i get it!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 09:57:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-create-LegacyUserAtLocation-object-through-the-R80-x-api/m-p/23267#M1429</guid>
      <dc:creator>Francesco-P</dc:creator>
      <dc:date>2019-01-15T09:57:40Z</dc:date>
    </item>
  </channel>
</rss>

