<?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:RestAPI - Add userGroup members not working in Intel vPro® Platform</title>
    <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1472576#M9907</link>
    <description>&lt;P&gt;Hello Jools86,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have not heard back from you. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you need any additional information, please submit a new question as this thread will no longer be monitored. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Victor G. &lt;/P&gt;&lt;P&gt;Intel Technical Support Technician&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 03 Apr 2023 15:39:35 GMT</pubDate>
    <dc:creator>Victor_G_Intel</dc:creator>
    <dc:date>2023-04-03T15:39:35Z</dc:date>
    <item>
      <title>RestAPI - Add userGroup members not working</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1465060#M9822</link>
      <description>&lt;P&gt;I have previously posted this, and you told me to use a string value instead of an array. This also does not work, and I had already tried this before raising this case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;Using the following POST method via PowerShell:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;&lt;A class="sub_section_element_selectors" href="https://localhost/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://localhost&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class="sub_section_element_selectors"&gt;/api/v5/userGroupMemberships/{userGroupId}/addMembers&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;I set the body as&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;$UPN=@()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;$UPN+="Julian.Loveday@mydomain.com"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;#// Add to User Group&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;$Body = @{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;'UserName'=$UPN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;$JSON=$Body | ConvertTo-Json&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;$UserGroup=Invoke-RestMethod "&lt;/SPAN&gt;&lt;A class="sub_section_element_selectors" href="https://ema.mydomain.com/api/latest/userGroupMemberships/$EMAUserGroupId/addMembers" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;https://ema.mydomain.com/api/latest/userGroupMemberships/$EMAUserGroupId/addMembers&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class="sub_section_element_selectors"&gt;" -Headers $headers -Body $JSON -Method Post&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;however I see this error every time:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jools86_0-1678723494701.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/39047i62BEDA07BBB80B17/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Jools86_0-1678723494701.png" alt="Jools86_0-1678723494701.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;I tried changing to&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;$UserGroup=Invoke-RestMethod "&lt;/SPAN&gt;&lt;A class="sub_section_element_selectors" href="https://ema.mlp.com/api/latest/userGroupMemberships/$($EMAUserGroupId)/addMembers" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;https://ema.mlp.com/api/latest/userGroupMemberships/$($EMAUserGroupId)/addMembers&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class="sub_section_element_selectors"&gt;" -Headers $headers -Body $JSON -Method Post&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;and even changing to&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;$UserGroup=Invoke-RestMethod "&lt;/SPAN&gt;&lt;A class="sub_section_element_selectors" href="https://ema.mlp.com/api/latest/userGroupMemberships/1/addMembers" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;https://ema.mlp.com/api/latest/userGroupMemberships/1/addMembers&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class="sub_section_element_selectors"&gt;" -Headers $headers -Body $JSON -Method Post&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;Could you either:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;a) C&lt;/SPAN&gt;&lt;SPAN class="sub_section_element_selectors"&gt;onfirm there is a BUG in the RestAPI for adding members&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;or b) Send me an example if I am getting the syntax wrong.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;As an FYI, token generates fine (code to generate headers below) - and I can run most other RestAPI queries using the below, its this specific one (&lt;/SPAN&gt;&lt;SPAN class="sub_section_element_selectors"&gt;&lt;A class="sub_section_element_selectors" href="https://localhost/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://localhost&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class="sub_section_element_selectors"&gt;/api/v5/userGroupMemberships/{userGroupId}/addMembers)&lt;/SPAN&gt;&lt;SPAN class="sub_section_element_selectors"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;that is broken.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;#// Generate token to be passed for authorization with each RestAPI request&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;$Token=Invoke-RestMethod "&lt;/SPAN&gt;&lt;A class="sub_section_element_selectors" href="https://mydomain.mlp.com/api/latest/accessTokens/getUsingWindowsCredentials" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;https://mydomain.mlp.com/api/latest/accessTokens/getUsingWindowsCredentials&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class="sub_section_element_selectors"&gt;" -Credential $Cred&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;#// Generate header including token for each API request&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;$headers = @{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;'authorization' = "bearer $($Token.access_token)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;If I change the BODY to not use an array, but just a string value it fails as well:&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;$UPN="Julian.Loveday@mydomain.com"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;#// Add to User Group&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;$Body = @{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;'UserName'=$UPN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;$JSON=$Body | ConvertTo-Json&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;$UserGroup=Invoke-RestMethod "&lt;/SPAN&gt;&lt;A class="sub_section_element_selectors" href="https://ema.mydomain.com/api/latest/userGroupMemberships/$EMAUserGroupId/addMembers" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;https://ema.mydomain.com/api/latest/userGroupMemberships/$EMAUserGroupId/addMembers&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class="sub_section_element_selectors"&gt;" -Headers $headers -Body $JSON -Method Post&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jools86_1-1678724629377.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/39048i1ADD2989D11076DC/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Jools86_1-1678724629377.png" alt="Jools86_1-1678724629377.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is definitely something wrong with this API call.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 16:24:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1465060#M9822</guid>
      <dc:creator>Jools86</dc:creator>
      <dc:date>2023-03-13T16:24:46Z</dc:date>
    </item>
    <item>
      <title>Re:RestAPI - Add userGroup members not working</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1465763#M9827</link>
      <description>&lt;P&gt;Hello Jools86,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for posting on the Intel® communities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me review this information internally, and kindly wait for an update.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once we have more information to share, we will post it on this thread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Victor G.&lt;/P&gt;&lt;P&gt;Intel Technical Support Technician&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Mar 2023 21:55:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1465763#M9827</guid>
      <dc:creator>Victor_G_Intel</dc:creator>
      <dc:date>2023-03-14T21:55:15Z</dc:date>
    </item>
    <item>
      <title>Re:RestAPI - Add userGroup members not working</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1465812#M9830</link>
      <description>&lt;P&gt;Hello Jools86,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To continue with the investigation on our end can you please confirm the version of EMA that you are currently working with?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Victor G.&lt;/P&gt;&lt;P&gt;Intel Technical Support Technician&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Mar 2023 23:55:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1465812#M9830</guid>
      <dc:creator>Victor_G_Intel</dc:creator>
      <dc:date>2023-03-14T23:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Re:RestAPI - Add userGroup members not working</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1466018#M9835</link>
      <description>&lt;P&gt;Hi Victor,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are on 1.9&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 09:22:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1466018#M9835</guid>
      <dc:creator>Jools86</dc:creator>
      <dc:date>2023-03-15T09:22:09Z</dc:date>
    </item>
    <item>
      <title>Re:RestAPI - Add userGroup members not working</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1466170#M9837</link>
      <description>&lt;P&gt;Hello Jools86,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We appreciate your response.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We'll keep you posted on our findings and in case we need anything else from your end we will reach back through the forum.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Victor G.&lt;/P&gt;&lt;P&gt;Intel Technical Support Technician&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Mar 2023 16:21:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1466170#M9837</guid>
      <dc:creator>Victor_G_Intel</dc:creator>
      <dc:date>2023-03-15T16:21:14Z</dc:date>
    </item>
    <item>
      <title>Re:RestAPI - Add userGroup members not working</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1467897#M9854</link>
      <description>&lt;P&gt;Hello Jools86,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your patience.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;At this time, based on the environment that you are currently experiencing this situation on our strongest recommendation is to update EMA to version 1.10.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Victor G. &lt;/P&gt;&lt;P&gt;Intel Technical Support Technician&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Mar 2023 22:08:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1467897#M9854</guid>
      <dc:creator>Victor_G_Intel</dc:creator>
      <dc:date>2023-03-20T22:08:30Z</dc:date>
    </item>
    <item>
      <title>Re:RestAPI - Add userGroup members not working</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1470259#M9883</link>
      <description>&lt;P&gt;Hello Jools86,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Were you able to check the previous post? &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you need further assistance.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Victor G.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Intel Technical Support Technician&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Mar 2023 16:40:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1470259#M9883</guid>
      <dc:creator>Victor_G_Intel</dc:creator>
      <dc:date>2023-03-27T16:40:47Z</dc:date>
    </item>
    <item>
      <title>Re:RestAPI - Add userGroup members not working</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1472576#M9907</link>
      <description>&lt;P&gt;Hello Jools86,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have not heard back from you. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you need any additional information, please submit a new question as this thread will no longer be monitored. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Victor G. &lt;/P&gt;&lt;P&gt;Intel Technical Support Technician&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Apr 2023 15:39:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1472576#M9907</guid>
      <dc:creator>Victor_G_Intel</dc:creator>
      <dc:date>2023-04-03T15:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re:RestAPI - Add userGroup members not working</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1473039#M9911</link>
      <description>&lt;P&gt;Hi Victor, I was locked out of forum since SAML change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will update to 1.10 after easter and feed back to the forum.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 13:34:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1473039#M9911</guid>
      <dc:creator>Jools86</dc:creator>
      <dc:date>2023-04-04T13:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re:RestAPI - Add userGroup members not working</title>
      <link>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1473043#M9913</link>
      <description>&lt;P&gt;Fix was as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The bit in bold to format the body as an array fixed the issue - thanks to Josh.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;========================================&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;$UPN=@()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;$UPN+="Julian.Loveday@mydomain.com"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;#// Add to User Group&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;$Body = @{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;'UserName'=$UPN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;$Body=$Body | ConvertTo-Json&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;STRONG&gt;$JSON=Convert-ToJson -inputobject&amp;nbsp;@($Body)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;$UserGroup=Invoke-RestMethod "&lt;/SPAN&gt;&lt;A class="sub_section_element_selectors" href="https://ema.mydomain.com/api/latest/userGroupMemberships/$EMAUserGroupId/addMembers" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;https://ema.mydomain.com/api/latest/userGroupMemberships/$EMAUserGroupId/addMembers&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class="sub_section_element_selectors"&gt;" -Headers $headers -Body $JSON -Method Post&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;=========================================&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 13:41:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-vPro-Platform/RestAPI-Add-userGroup-members-not-working/m-p/1473043#M9913</guid>
      <dc:creator>Jools86</dc:creator>
      <dc:date>2023-04-04T13:41:34Z</dc:date>
    </item>
  </channel>
</rss>

