cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1652
Views
0
Helpful
5
Replies

WebEx API CreateUser

napalm699
Level 1
Level 1

Hello,

I am trying understand the API here:

https://developer.cisco.com/media/webex-xml-api/32CreateUser.html

I have created a custom session type in the admin portal and want create users and add them to the session type. I can also see that my session type has an id of something like 45942. How do I create a user and assign it to the session type? From the API it looks like I need to use the meetingType array and add 45942 to it, but this isn't behaving as expected.

I am using meetingTypes = [13, 15, 16, 45942];

Key:

13 = SC3

15 = SAC

16 = AUO

45942 = PRO1

I have attached my result, which is clearly not what I want.a_5.png

5 Replies 5

ryanhunt
Level 5
Level 5

Hi David,

The XML Request is not an array and should a nest of elements, such as:

<meetingTypes>

<meetingType>13</meetingType>

<meetingType>15</meetingType>

<meetingType>16</meetingType>

<meetingType>45942</meetingType>

</meetingTypes>

Regards,

-Ryan

Yes that is what I am doing. Please advise what I should do next to figure out this problem.

what is the full XML Request you sent in and the response you received? remove any login information before posting here.

I am POSTing to

https://centrify-dev.webex.com/WBXService/XMLService

<?xml version="1.0"?>

<message xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.webex.com/schemas/2002/06/service">

  <header>

    <securityContext>

      <password xmlns="http://www.webex.com/schemas/2002/06/common">password</password>

      <siteName xmlns="http://www.webex.com/schemas/2002/06/common">name</siteName>

      <email xmlns="http://www.webex.com/schemas/2002/06/common">email</email>

    </securityContext>

  </header>

  <body>

    <bodyContent xmlns:q1="http://www.webex.com/schemas/2002/06/service/user" xsi:type="java:com.webex.service.binding.user.SetUser">

      <firstName>webex</firstName>

      <lastName>disp name</lastName>

      <webExId>webexlogin@clouddev.test</webExId>

      <email>webex@email.com</email>

      <meetingTypes>

        <meetingType>13</meetingType>

        <meetingType>15</meetingType>

        <meetingType>16</meetingType>

        <meetingType>45942</meetingType>

      </meetingTypes>

      <privilege />

      <active>ACTIVATED</active>

      <supportedServices />

      <sessionOptions />

    </bodyContent>

  </body>

</message>

I get an OK response from the server.

Ping, please help

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: