<?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 Requested Object not found in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Requested-Object-not-found/m-p/114342#M5702</link>
    <description>&lt;P&gt;{{ "name": "vpn-efef",&lt;/P&gt;&lt;P&gt;"email": "test@checkpoint.com",&lt;/P&gt;&lt;P&gt;"expiration-date": "2022-01-05",&lt;/P&gt;&lt;P&gt;"phone-number": "123456",&lt;/P&gt;&lt;P&gt;"authentication-method": "check point password",&lt;/P&gt;&lt;P&gt;"comments": "Herr Test Test",&lt;/P&gt;&lt;P&gt;"groups": "[ { 'name' : 'Administratoren_VPN'} ]",&lt;/P&gt;&lt;P&gt;"password": "******",&lt;/P&gt;&lt;P&gt;"color": "sea green" }}&lt;/P&gt;&lt;P&gt;I am trying to create users via web api and assign a group to them. However, I get an error&lt;BR /&gt;"code": "generic_err_object_not_found",&lt;BR /&gt;"message": "Requested object [[ { 'name' : 'Administrators_VPN'} ]] not found".&lt;/P&gt;&lt;P&gt;The Group exists!&lt;BR /&gt;Does anyone see the mistake?&lt;/P&gt;</description>
    <pubDate>Tue, 23 Mar 2021 10:09:48 GMT</pubDate>
    <dc:creator>Maik1</dc:creator>
    <dc:date>2021-03-23T10:09:48Z</dc:date>
    <item>
      <title>Requested Object not found</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Requested-Object-not-found/m-p/114342#M5702</link>
      <description>&lt;P&gt;{{ "name": "vpn-efef",&lt;/P&gt;&lt;P&gt;"email": "test@checkpoint.com",&lt;/P&gt;&lt;P&gt;"expiration-date": "2022-01-05",&lt;/P&gt;&lt;P&gt;"phone-number": "123456",&lt;/P&gt;&lt;P&gt;"authentication-method": "check point password",&lt;/P&gt;&lt;P&gt;"comments": "Herr Test Test",&lt;/P&gt;&lt;P&gt;"groups": "[ { 'name' : 'Administratoren_VPN'} ]",&lt;/P&gt;&lt;P&gt;"password": "******",&lt;/P&gt;&lt;P&gt;"color": "sea green" }}&lt;/P&gt;&lt;P&gt;I am trying to create users via web api and assign a group to them. However, I get an error&lt;BR /&gt;"code": "generic_err_object_not_found",&lt;BR /&gt;"message": "Requested object [[ { 'name' : 'Administrators_VPN'} ]] not found".&lt;/P&gt;&lt;P&gt;The Group exists!&lt;BR /&gt;Does anyone see the mistake?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 10:09:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Requested-Object-not-found/m-p/114342#M5702</guid>
      <dc:creator>Maik1</dc:creator>
      <dc:date>2021-03-23T10:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Requested Object not found</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Requested-Object-not-found/m-p/114359#M5703</link>
      <description>&lt;P&gt;are you able to share an example request with the code you're using? The first thing I can see is that the error message is referring to a group name that isn't in the request ("Administrators_VPN against Administratoren_VPN").&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 12:13:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Requested-Object-not-found/m-p/114359#M5703</guid>
      <dc:creator>StuartGreen</dc:creator>
      <dc:date>2021-03-23T12:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Requested Object not found</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Requested-Object-not-found/m-p/114507#M5705</link>
      <description>&lt;P&gt;The sample you posted has quotes around the square brackets, which then contain what looks like a JSON object.&lt;/P&gt;
&lt;P&gt;This results in a string containing&amp;nbsp;&lt;STRONG&gt;&lt;U&gt;[ { 'name' : 'Administratoren_VPN'} ]&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;You probably want either of&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;"groups": ["Administratoren_VPN"],

"groups": "Administratoren_VPN",&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;instead.&lt;/P&gt;
&lt;P&gt;From the documentation of add-user (&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html?#web/add-user" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html?#web/add-user&lt;/A&gt;)&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20210324_140636-chrome-291.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/11136iFCF07604896A5EC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="20210324_140636-chrome-291.png" alt="20210324_140636-chrome-291.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The expected input for "groups" is either a string &lt;STRONG&gt;"Group1"&lt;/STRONG&gt;, or a list of strings &lt;STRONG&gt;["Group1","Group2"]&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 18:11:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Requested-Object-not-found/m-p/114507#M5705</guid>
      <dc:creator>Jonas_Rosenboom</dc:creator>
      <dc:date>2021-03-24T18:11:50Z</dc:date>
    </item>
  </channel>
</rss>

