<?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 FMC create bulk rules containing Realm user group via API in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/fmc-create-bulk-rules-containing-realm-user-group-via-api/m-p/4187809#M6</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to add around 100 rules and I used the API to do this and all worked fine except 1 thing. I had to remove some code that added the user group to each rule in the body for the post. Whenever it is added i get the Error in connection --&amp;gt; 422 Client Error: Unprocessable Entity for url:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used a get on another rule and used the users object in the json in the body that was used for the POST. Whenever I remove the users it will work so prety sure the fault is in here but it looks okay. Anyone who has managed to add user groups to a rule via the api ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;user field in the body:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"users": {&lt;BR /&gt;"objects": [&lt;BR /&gt;{&lt;BR /&gt;"id": "2336a13c-d804-11ea-8bb2-80f7e2478652_7",&lt;BR /&gt;"type": "RealmUserGroup",&lt;BR /&gt;"name": "groupname",&lt;BR /&gt;"realm": {&lt;BR /&gt;"id": "2336a13c-d804-11ea-8bb2-80f7e2478652",&lt;BR /&gt;"type": "Realm"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 15:59:04 GMT</pubDate>
    <dc:creator>jonasvn65</dc:creator>
    <dc:date>2020-12-03T15:59:04Z</dc:date>
    <item>
      <title>FMC create bulk rules containing Realm user group via API</title>
      <link>https://community.cisco.com/t5/network-security/fmc-create-bulk-rules-containing-realm-user-group-via-api/m-p/4187809#M6</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to add around 100 rules and I used the API to do this and all worked fine except 1 thing. I had to remove some code that added the user group to each rule in the body for the post. Whenever it is added i get the Error in connection --&amp;gt; 422 Client Error: Unprocessable Entity for url:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used a get on another rule and used the users object in the json in the body that was used for the POST. Whenever I remove the users it will work so prety sure the fault is in here but it looks okay. Anyone who has managed to add user groups to a rule via the api ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;user field in the body:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"users": {&lt;BR /&gt;"objects": [&lt;BR /&gt;{&lt;BR /&gt;"id": "2336a13c-d804-11ea-8bb2-80f7e2478652_7",&lt;BR /&gt;"type": "RealmUserGroup",&lt;BR /&gt;"name": "groupname",&lt;BR /&gt;"realm": {&lt;BR /&gt;"id": "2336a13c-d804-11ea-8bb2-80f7e2478652",&lt;BR /&gt;"type": "Realm"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 15:59:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/fmc-create-bulk-rules-containing-realm-user-group-via-api/m-p/4187809#M6</guid>
      <dc:creator>jonasvn65</dc:creator>
      <dc:date>2020-12-03T15:59:04Z</dc:date>
    </item>
  </channel>
</rss>

