Thanks for the confirmation.  I do have some REST APIs written to handle this, 
but the problem I have been running into is that when I build RPMs for my stuff 
and then try to update a 4.4 install I get 404 errors.  I guess I will try 
putting that into another post.

Thanks again,

D Chang


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of George Niculae
Sent: Friday, April 27, 2012 3:39 PM
To: sipXecs developer discussions
Subject: Re: [sipx-dev] UserService SOAP API for setting permissions on User

On Fri, Apr 27, 2012 at 9:46 PM, Dan Chang <[email protected]> wrote:
> I am trying to set permissions using the "manageUser" SOAP API of the
> UserService, though admittedly there is nothing that indicates it is
> allowed.  manageUser takes a "property" and "value" element
>
>
>
>             <property>call-handling/LocalDialing</property>
>
>             <value>ENABLE</value>
>
>
>
> so I have been trying various combinations of property and value (including
> permission name, permission path, partial permission path) and they all seem
> to give an exception
>
>
>
>                 Error accessing property call-handling/LocalDialing
>
>
>
> For example, for LocalDialing permission I have tried "LocalDialing",
> "call-handling/LocalDialing", and " permission/call-handling/LocalDialing"
> along with various (but possibly not exhaustive) combinations of "true",
> "TRUE", "enable" and "ENABLE" (although like I mentioned the error always
> indicates a problem with the property as shown above).
>
>
>
> Is there a way to set permissions and can someone maybe give me a sample to
> try?  Thanks!
>

User object has permission element defined (check sipxconfig.wsdl file)

<xsd:element name="permissions" type="xsd:string" nillable="true"
minOccurs="0" maxOccurs="unbounded" />

so you could pass to addUser something like

<user>
<userName>200</userName>
<lastName></lastName>
<firstName></firstName>
<sipPassword>1234</sipPassword>
<emailAddress></emailAddress>
<branchName></branchName>
<groups></groups>
<permissions>LongDistanceDialing</permissions>
<permissions>TollFree</permissions>
</user>

Don't see something similar for manageUser though, but should be easy
to implement.

George
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/

Reply via email to