<?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: Users auto join a space in Webex for Developers</title>
    <link>https://community.cisco.com/t5/webex-for-developers/users-auto-join-a-space/m-p/4942989#M2508</link>
    <description>&lt;P&gt;Hi Raffaele, thanks for the reply&lt;/P&gt;
&lt;P&gt;I have already done this in step2 - I create the team first, associate the members to the team, then create a room and associate to that team:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://webexapis.com/v1/teams" target="_blank"&gt;https://webexapis.com/v1/teams&lt;/A&gt;&lt;BR /&gt;{&lt;BR /&gt;"name": "demo $var1",&lt;BR /&gt;"description": "demo"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;A href="https://webexapis.com/v1/team/memberships" target="_blank"&gt;https://webexapis.com/v1/team/memberships&lt;/A&gt;&lt;BR /&gt;for each {&lt;BR /&gt;"personEmail": "$user",&lt;BR /&gt;"teamId": "$newteamid'",&lt;BR /&gt;"isModerator": "true"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;A href="https://webexapis.com/v1/rooms" target="_blank"&gt;https://webexapis.com/v1/rooms&lt;/A&gt;&lt;BR /&gt;{&lt;BR /&gt;"title": "demo $var1"&lt;BR /&gt;"description": "demo",&lt;BR /&gt;"teamId": "$newteamid"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;A href="https://webexapis.com/v1/messages" target="_blank"&gt;https://webexapis.com/v1/messages&lt;/A&gt;&lt;BR /&gt;{&lt;BR /&gt;"roomId": "$newroomid",&lt;BR /&gt;"text": "$body"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;A href="https://webexapis.com/v1/webhooks" target="_blank"&gt;https://webexapis.com/v1/webhooks&lt;/A&gt;&lt;BR /&gt;{&lt;BR /&gt;"event": "created",&lt;BR /&gt;"name": "demo $var1",&lt;BR /&gt;"filter": "roomId=$newroomid",&lt;BR /&gt;"targetUrl": "$mytargeturl",&lt;BR /&gt;"resource": "messages"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;But for each member of that team they need to join that space manually as seen in the screenshots..&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2023 12:26:28 GMT</pubDate>
    <dc:creator>david.mccann1</dc:creator>
    <dc:date>2023-10-18T12:26:28Z</dc:date>
    <item>
      <title>Users auto join a space</title>
      <link>https://community.cisco.com/t5/webex-for-developers/users-auto-join-a-space/m-p/4942908#M2503</link>
      <description>&lt;P&gt;Hi community&lt;/P&gt;
&lt;P&gt;I have been working on a solution that involves the following steps:&lt;/P&gt;
&lt;P&gt;1. Create a Team in Webex (&lt;A href="https://webexapis.com/v1/teams)" target="_blank" rel="noopener"&gt;https://webexapis.com/v1/teams)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2. Add specific users to that team (&lt;A href="https://webexapis.com/v1/team/memberships)" target="_blank" rel="noopener"&gt;https://webexapis.com/v1/team/memberships)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Create a room (&lt;A href="https://webexapis.com/v1/rooms)" target="_blank" rel="noopener"&gt;https://webexapis.com/v1/rooms)&lt;/A&gt;&amp;nbsp;and associate with the new team ("teamId": "$team")&lt;/P&gt;
&lt;P&gt;4. Post a message to that room (&lt;A href="https://webexapis.com/v1/messages)" target="_blank" rel="noopener"&gt;https://webexapis.com/v1/messages)&lt;/A&gt;&amp;nbsp;("roomId":"$roomid")&lt;/P&gt;
&lt;P&gt;5. Create a webhook to receive new notifications regarding replies to messages sent to the room (&lt;A href="https://webexapis.com/v1/webhooks)" target="_blank" rel="noopener"&gt;https://webexapis.com/v1/webhooks)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;All works as expected except for one little element.&amp;nbsp; In order for users to see the messages posted to that room then need to join the space.&amp;nbsp; This is not achieved automatically despite utilising the memberships api.&amp;nbsp; Is there a way of auto accepting participation for each of the users defined in step 2?&lt;/P&gt;
&lt;P&gt;I have attached a couple of screenshots to show where this has to be achieved manually.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_20231016-164743_Webex.jpg" style="width: 461px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/199963iA02DA7CC69AD20AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_20231016-164743_Webex.jpg" alt="Screenshot_20231016-164743_Webex.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_20231016-164736_Webex.jpg" style="width: 461px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/199964i89383B1A6B26BB99/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_20231016-164736_Webex.jpg" alt="Screenshot_20231016-164736_Webex.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I cant see anywhere in API documentation where this can be auto accepted/forced.&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 11:20:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/users-auto-join-a-space/m-p/4942908#M2503</guid>
      <dc:creator>david.mccann1</dc:creator>
      <dc:date>2023-10-18T11:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Users auto join a space</title>
      <link>https://community.cisco.com/t5/webex-for-developers/users-auto-join-a-space/m-p/4942981#M2507</link>
      <description>&lt;P&gt;That message is specific to the Webex Native app. If you want to add members to team's subspaces (all spaces within a team are known as subspaces, unless it's the &lt;EM&gt;General&lt;/EM&gt; space), then you need to use the&amp;nbsp;&lt;A href="https://developer.webex.com/docs/api/v1/memberships" target="_self"&gt;/memberships&lt;/A&gt;&amp;nbsp;with the roomId. You can automate this through code.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 12:13:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/users-auto-join-a-space/m-p/4942981#M2507</guid>
      <dc:creator>Raffaele Lagana</dc:creator>
      <dc:date>2023-10-18T12:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Users auto join a space</title>
      <link>https://community.cisco.com/t5/webex-for-developers/users-auto-join-a-space/m-p/4942989#M2508</link>
      <description>&lt;P&gt;Hi Raffaele, thanks for the reply&lt;/P&gt;
&lt;P&gt;I have already done this in step2 - I create the team first, associate the members to the team, then create a room and associate to that team:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://webexapis.com/v1/teams" target="_blank"&gt;https://webexapis.com/v1/teams&lt;/A&gt;&lt;BR /&gt;{&lt;BR /&gt;"name": "demo $var1",&lt;BR /&gt;"description": "demo"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;A href="https://webexapis.com/v1/team/memberships" target="_blank"&gt;https://webexapis.com/v1/team/memberships&lt;/A&gt;&lt;BR /&gt;for each {&lt;BR /&gt;"personEmail": "$user",&lt;BR /&gt;"teamId": "$newteamid'",&lt;BR /&gt;"isModerator": "true"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;A href="https://webexapis.com/v1/rooms" target="_blank"&gt;https://webexapis.com/v1/rooms&lt;/A&gt;&lt;BR /&gt;{&lt;BR /&gt;"title": "demo $var1"&lt;BR /&gt;"description": "demo",&lt;BR /&gt;"teamId": "$newteamid"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;A href="https://webexapis.com/v1/messages" target="_blank"&gt;https://webexapis.com/v1/messages&lt;/A&gt;&lt;BR /&gt;{&lt;BR /&gt;"roomId": "$newroomid",&lt;BR /&gt;"text": "$body"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;A href="https://webexapis.com/v1/webhooks" target="_blank"&gt;https://webexapis.com/v1/webhooks&lt;/A&gt;&lt;BR /&gt;{&lt;BR /&gt;"event": "created",&lt;BR /&gt;"name": "demo $var1",&lt;BR /&gt;"filter": "roomId=$newroomid",&lt;BR /&gt;"targetUrl": "$mytargeturl",&lt;BR /&gt;"resource": "messages"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;But for each member of that team they need to join that space manually as seen in the screenshots..&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 12:26:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/users-auto-join-a-space/m-p/4942989#M2508</guid>
      <dc:creator>david.mccann1</dc:creator>
      <dc:date>2023-10-18T12:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Users auto join a space</title>
      <link>https://community.cisco.com/t5/webex-for-developers/users-auto-join-a-space/m-p/4943026#M2509</link>
      <description>&lt;P&gt;Please note that /team/memberships API is different to /memberships API I shared previously. The former is used to add members to the team and the latter is used to add members to a space directly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 13:15:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/users-auto-join-a-space/m-p/4943026#M2509</guid>
      <dc:creator>Raffaele Lagana</dc:creator>
      <dc:date>2023-10-18T13:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Users auto join a space</title>
      <link>https://community.cisco.com/t5/webex-for-developers/users-auto-join-a-space/m-p/4943076#M2510</link>
      <description>&lt;P&gt;Superb - exactly what I needed thanks for the help in pointing me in the right direction &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;
&lt;P&gt;best regards&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 14:17:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/users-auto-join-a-space/m-p/4943076#M2510</guid>
      <dc:creator>david.mccann1</dc:creator>
      <dc:date>2023-10-18T14:17:19Z</dc:date>
    </item>
  </channel>
</rss>

