cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1541
Views
1
Helpful
6
Replies

CUPI - list user templates

fabien.bonic
Level 5
Level 5

Hi,

When I list the user templates of a Unity Connection on the GUI, I get 56 answer. The same number of result when I use CUDLI on vw_UserTemplate. But if I use CUPI with https://@IP/vmrest/usertemplates, there are only 53 results...

What can explain this difference between CUPI and GUI ?

Thanks,

Fabien

6 Replies 6

stephan.steiner
Spotlight
Spotlight

is there anything special about those 3 missing templates? I suspect there's some code that may filter things.. (just as there are other instances where the api acts differently from cuadmin - I just recently had to file another devsup case on such an issue).

Hi,

Thank you for the answer. After some investigation, It's seem that user templates filtered by the CUPI request are those using type "User Template Without Mailbox"... How to get all user template using CUPI including the "User Template Without Mailbox"?

Thanks,

Fabien

Interesting.. have you tried what happens if you create a new user based on one of the templates you don't get listed? Not that it solves your problem.. but it would show if there's a generic filter of just one in the sql query they run behind the template extraction.

You are right. When I create a new user template based on a filtered user template, this new user template is also filtered on CUPI request "/vmrest/usertemplates".

The same thing happen when I create a new user based on a filtered user template, this new user is also filtered on CUPI request "/vmrest/users".

Thanks,

Fabien

fabien.bonic
Level 5
Level 5

Does anyone have an idea of how to get all the user templates using CUPI including those based on "User Template Without Mailbox"?

Thanks,

Fabien

fabien.bonic
Level 5
Level 5

No answer ? Is it a bug ?

Thanks,

Fabien