Im having issues creating new users via the REST API. I have no issues in the GET/DELETE operations but I get the following error:
"The phone number/extension has violated a restriction in the restriction table. Restriction Type = [Outdial]"
Im POSTing to the following url: https://<server>/vmrest/users?templateAlias=<template alias>&MailboxStoreObjectId=<object ID> with the following payload:
Im able to add users through the GUI interface using the same credentials and only providing the Alias/Extension (which is DtmfAccessId).
Can you share the CUC version and the complete content of both Request/Response? Thanks.
I believe it is: 8.6.1TT2.20014-28TT2
The request payload is the XML above, with the same number in both Alias/DtmfAccessID (XXXXXXXXXX).
The response is:
<message>The Phone Number/Extension has violated a restriction in the restriction table. Phone Number/Extension = [vUserMwiExtension], Restriction Type = [Outdial]</message>
Can you run Fiddler on your client and capture the actual header and body details (raw) of the request so we take a look? Thanks.
out of curiosity which user are you authenticating as when issuing the REST requests? A user with a mailbox that has admin rights or a pure admin user? The restriction table error is an odd one, we used to get that when adding users via ODBC back in the day as well but the logic was changed to overrride the restriction table checks when creating new users (i.e. as opposed to later editing a transfer number). Note that the restriction tables of the actor making the change are evaluated, not the target object's restriction tables - as such my question about the admin user (which has no COS limit or RT mappings) or a user with a mailbox.
I can't repro this error on more modern versions of Connection - 8.6 was the earliest version of Connection supporting REST so it's entirely possible this is a bug - I'll have to dig up an old version to test against to prove that though.
Are you able to share the REST API commands for Deleting
Please sign in to leave a comment.