on 01-24-2014 01:21 AM
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
Hi Team,
Do you have any update on this.
Please reply ASAP @David Wanagel
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.
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: