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/
