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

Created by: Shadan Saniepour Esfahani on 13-01-2010 09:04:05 PM
Greetings 

I am trying to use CUPI to provision  users without mailbox on CUC.  When I use the sample on the CUPI page, users are always created with mailbox. How can I create users without mailbox. I went through all elements defined for user in resource definition page, but could not figure out which one would help create user without mailbox.
 
 Really appreciate your help!
Best regards
Shadan

Subject: RE: Using CUPI for creating users without mailbox
Replied by: David Wanagel on 13-01-2010 09:50:00 PM
<!--StartFragment-->You would need to use the administratortemplate instead of the voicemailusertemplate.  
<!--EndFragment-->

Subject: RE: Using CUPI for creating users without mailbox
Replied by: Shadan Saniepour Esfahani on 14-01-2010 03:43:32 PM
Thanks David. But I used the administratortemplate and I get the following error:


Failure runHTTPCommandPost (execute)java.io.IOException: Server returned HTTP response code: 400 for URL: https://10.88.147.247/vmrest/users?templateAlias=administratortemplate

Is there anything else I am doing wrong? I am only using Alias and FirstName, LastName elements. Your help is much appreciated!
Best regards
Shadan


Subject: RE: Using CUPI for creating users without mailbox
Replied by: David Wanagel on 14-01-2010 04:56:25 PM
My fault, I responded without taking a closer look.  CUPI can only be used to manage voice mail users (i.e. users with a voice mailbox).  It does not support administrator management.
 
-Dave

Subject: RE: New Message from Shadan Saniepour Esfahani in Cisco Unity Connection Pr
Replied by: Matthew Penning on 14-01-2010 05:17:29 PM
Hi Shadan, at this point I don't think we do support non-voicemail users
- the URL /vmrest/users will list only voicemail users. The reason is we
focused the API initially primarily on the more common ongoing
adminsitrative tasks, and generally creating administrative users isn't
done as frequently.

~ Matt

________________________________

From: Cisco Developer Community Forums
[mailto:cdicuser@developer.cisco.com]
Sent: Thursday, January 14, 2010 7:44 AM
To: cdicuser@developer.cisco.com
Subject: New Message from Shadan Saniepour Esfahani in Cisco Unity
Connection Provisioning Interface (CUPI) - CUPI Questions: RE: Using
CUPI for creating users without mailbox


Shadan Saniepour Esfahani has created a new message in the forum "CUPI
Questions":
--------------------------------------------------------------
Thanks David. But I used the administratortemplate and I get the
following error:


Failure runHTTPCommandPost (execute)java.io.IOException: Server returned
HTTP response code: 400 for URL:
https://10.88.147.247/vmrest/users?templateAlias=administratortemplate]

Is there anything else I am doing wrong? I am only using Alias and
FirstName, LastName elements. Your help is much appreciated!
Best regards
Shadan

--
To respond to this post, please click the following link:
<http://developer.cisco.com/web/cupi/forums/-/message_boards/message/189
6760>
or simply reply to this email.
Comments
jose.ibanezvela
Level 1
Level 1

Hi team,

Thanks for the clarification.

Any update in new versions?

Is the other API or way to manage admin users ? (not manual option)

BR,

JI

harsukhpreet.kaur
Community Member

Hi Team,

Do you have any update on this.

Please reply ASAP @David Wanagel

rmoore4743
Level 1
Level 1

There is a way to add an Admin user to Cisco Unity programmatically, but as stated above I couldn't do it using the REST API. I instead used Paramiko to establish and SSH session and then added them via the DB.

 

1. To add App user to Unity via CLI

 

run cuc dbquery unitydirdb execute procedure                        csp_usercreate(pAlias='<userid_you_want>',pAltFirstName='<firstname>',pAltLastName='<Lastname>',pTemplateAlias='<templateName>')

 

2. To remove App user from Unity via CLI:

 

1st - get the object id of the user:

 

run cuc dbquery unitydirdb SELECT objectid FROM tbl_globaluser WHERE alias='<userid>'

 

2nd - delete based on that Object ID:

 

run cuc dbquery unitydirdb execute procedure csp_userdelete(pObjectId='a905bea9-ab87-44ab-bd8e-8626dcbf1997')

 

 

Hope this helps.

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