cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1117
Views
0
Helpful
2
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: nevmehta123 (simulated) on 03-12-2010 01:58:13 AM
Hello,
 
I am facing an issue while using the apidemoeu site to test the API. While creating and deleting users using the xml api i keep getting "Access denied, additional privileges are required" error.

In case of creating a user the xml i am sending is.
 
<?xml version="1.0" encoding="UTF-8"?>
<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:serv="http://www.webex.com/schemas/2002/06/service">
<header>
<securityContext>entered webExID, password, siteID, partnerID</securityContext>
</header>
<body>
<bodyContent xsi:type="java:com.webex.service.binding.user.CreateUser">
<firstName>firstName</firstName>
<lastName>lastName</lastName>
<webExId>testwebexid1000</webExId>
<email>newemail@hotmail.com</email>
<password>password</password>
<active>ACTIVATED</active>
<privilege><host>true</host></privilege>
<sessionOptions>
<defaultSessionType>100</defaultSessionType>
<defaultServiceType>MeetingCenter</defaultServiceType>
<autoDeleteAfterMeetingEnd>false</autoDeleteAfterMeetingEnd>
<displayQuickStartHost>false</displayQuickStartHost>
<displayQuickStartAttendees>false</displayQuickStartAttendees>
</sessionOptions>
</bodyContent></body></serv:message>
 
 
In case of deleting a user the xml i am seinding is:-

<?xml version="1.0" encoding="UTF-8"?>
<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:serv="http://www.webex.com/schemas/2002/06/service">
<header>
<securityContext>entered webExID, password, siteID, partnerID</securityContext>
</header>
<body>
<bodyContent xsi:type="java:com.webex.service.binding.user.DelUser">
<webExId>testcreateusermail</webExId>
</bodyContent></body></serv:message>

 Both return:-

<?xml version="1.0" encoding="UTF-8"?><serv:message xmlns:serv="http://www.webex.com/schemas/2002/06/service" xmlns:com="http://www.webex.com/schemas/2002/06/common" xmlns:use="http://www.webex.com/schemas/2002/06/service/user"><serv:header><serv:response><serv:result>FAILURE</serv:result><serv:reason>Access denied, additional privileges are required</serv:reason><serv:gsbStatus>PRIMARY</serv:gsbStatus><serv:exceptionID>000001</serv:exceptionID></serv:response></serv:header><serv:body><serv:bodyContent/></serv:body></serv:message>

Suprisingly the AT=SU command to create a new user works fine from the URL api for me. Any ideas?


Thanks
Comments
krupathakker
Community Member

Hi,

I am getting the response as below on using the "CreateUser" in webex xml ApI

<?xml version="1.0" encoding="UTF-8"?>

<serv:message xmlns:serv="http://www.webex.com/schemas/2002/06/service" xmlns:com="http://www.webex.com/schemas/2002/06/common" xmlns:use="http://www.webex.com/schemas/2002/06/service/user"><serv:header><serv:response><serv:result>FAILURE</serv:result><serv:reason>Access denied, additional privileges are required</serv:reason><serv:gsbStatus>PRIMARY</serv:gsbStatus><serv:exceptionID>000001</serv:exceptionID></serv:response></serv:header><serv:body><serv:bodyContent/></serv:body></serv:message>

Below is the request that i am sending  on createuser

<?xml version="1.0" encoding="iso-8859-1"?>

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

<header>

    <securityContext>

      <webExID>yyy</webExID>

      <password>xxx</password>

      <siteID>111</siteID>

      <partnerID>tttt!</partnerID>

    </securityContext>

  </header>

  <body>

    <bodyContent

        xsi:type="java:com.webex.service.binding.user.CreateUser">

      <firstName>jjjj</firstName>

      <lastName>dd</lastName>

      <webExId>hhy</webExId>

      <email>a@ycom</email>

      <password>oopkhy@123</password>

      <privilege>

        <host>true</host>

      </privilege>

      <active>ACTIVATED</active>

      <personalMeetingRoom>

        <welcomeMessage>This is welcome message</welcomeMessage>

        <headerImageBranding>false</headerImageBranding>

      </personalMeetingRoom>

      <sessionOptions>

        <defaultSessionType>100</defaultSessionType>

        <defaultServiceType>EventCenter</defaultServiceType>

        <autoDeleteAfterMeetingEnd>false</autoDeleteAfterMeetingEnd>

        <displayQuickStartHost>true</displayQuickStartHost>

        <displayQuickStartAttendees>false</displayQuickStartAttendees>

      </sessionOptions>

      <supportCenter>

        <orderTabs>

          <tab>Tools</tab>

          <tab>Desktop</tab>

          <tab>Application</tab>

          <tab>Session</tab>

        </orderTabs>

      </supportCenter>

    </bodyContent>

  </body>

</serv:message>

Kindly suggest a solution.

Thanks,

Krupa

jaydem
Cisco Employee
Cisco Employee

Hi Krupa,

That error typically means the user account in your securityContext does not have sufficient privileges to perform that action.  The user must be a Site Admin to create users.  If you are attempting to create a user on the sandbox site (apidemoeu.webex.com), you will not be able to do so as this is a shared customer site and you would not have Site Admin privileges on there.

Regards,

Jayde Moors

WebEx API Developer Services

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:

Quick Links