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

How to import user from ldap with administrativeuser template via REST

shandatt
Cisco Employee
Cisco Employee

Hi All,

I'm trying to import users from LDAP using REST and assign them an admin template.

I get the following error on this URL: https://10.10.10.10:8443/vmrest/import/globalusers/ldap?templateAlias=administratortemplate

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ErrorDetails><errors><code>DATA_EXCEPTION</code><message>Object not found or is not a template:  Parameter = [pTemplateObjectId], Table = [tbl_Alias,tbl_User], Column = [Alias,ObjectId]</message></errors></ErrorDetails>

When I looked into the User Template URL: https://10.10.10.10:8443/vmrest/usertemplates/

I was surprised to see only the user template. The admin template is not in the list.

<UserTemplates total="1">

<UserTemplate>

<URI>

/vmrest/usertemplates/5257c151-6d62-4122-b905-c1f9155fabf4

</URI>

<ObjectId>5257c151-6d62-4122-b905-c1f9155fabf4</ObjectId>

<UseDefaultLanguage>true</UseDefaultLanguage>

<UseDefaultTimeZone>true</UseDefaultTimeZone>

<Alias>voicemailusertemplate</Alias>

<DisplayName>Voice Mail User Template</DisplayName>

<TimeZone>100251</TimeZone>

<CreationTime>2014-03-20T09:57:56Z</Cr.... <Output Truncated>


Can anyone please suggest?

0 Replies 0
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: