STEFFEN WENTZEL | Hi all,
a user can log in to CUP (https://<server>/ccmuser) and go to User Options > Privacy > Policies. When selecting the policy "default", the default presence visibility setting is "My Overall Presence and the Presence of each of my devices". CUP version is 7.0.5.10000-18 Challenge: I want to change this setting to "None, always show me as UNAVAILABLE" for many users, so I need some kind of bulk tool here. Currently I use the "Client Configuration Web Service" using SOAP with a perl script. I first login with an admin user, get the session id, then I login the enduser, which works fine. I also can read the presence rules from the user, which works fine as well. My request to change the default visibility is:
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:epas="urn:cisco:epas:soap" xmlns="urn:cisco:epas:soap"> <soapenv:Header> <session-key>dea08c76-af22-3343-494f-65e32ee36162</session-key> </soapenv:Header> <soapenv:Body> <set-presence-rules xmlns="urn:cisco:epas:soap"> <presence-rule name="default"> <rule xmlns="urn:cisco:epas:presence:rules"><visibility>polite-block</visibility></rule> </presence-rule> </set-presence-rules>
</soapenv:Body> </soapenv:Envelope>
This request is working, result is success. Problem is, that in the ccmuser page the default policy still says "My Overall Presence and the Presence of each of my devices". The problem here is that the correct visibility status would be "polite-blocking", with "ing" at the end. But I cannot set the status, if I try I get "Invalid Request". I also tried different xmlns settings etc., nothing helped so far.
When changing the visibility status manually using the ccmuser page, I see this setting in the database: admin:run sql select * from epasprivacypolicy where fkenduser="c779ee43-eaee-466b-86ed-c9677f44901f" pkid name fkenduser fkpefilterinfo ==================================== ======= ==================================== ==================================== dc6a5caa-d325-4800-961c-eae4d8101d10 allowed c779ee43-eaee-466b-86ed-c9677f44901f e6c9fbee-8530-46ee- aa10-0e8d1608a06f 4fd28348-94be-4bb1-919c-c5974ce916f2 default c779ee43-eaee-466b-86ed-c9677f44901f d12eef60-272e-46f3-b6bb- ef6de29eec0e admin:run sql select * from epasprivacypolicy where fkenduser="c779ee43-eaee-466b-86ed-c9677f44901f" pkid name fkenduser fkpefilterinfo ==================================== ======= ==================================== ==================================== dc6a5caa-d325-4800-961c-eae4d8101d10 allowed c779ee43-eaee-466b-86ed-c9677f44901f e6c9fbee-8530-46ee- aa10-0e8d1608a06f 4fd28348-94be-4bb1-919c-c5974ce916f2 default c779ee43-eaee-466b-86ed-c9677f44901f d12eef60-272e-46f3-b6bb- ef6de29eec0e admin:run sql select * from pefilterinfo where pkid="d12eef60-272e-46f3-b6bb-ef6de29eec0e" pkid filterid filterdata
isstandard datetimestamp ============================ d12eef60-272e-46f3-b6bb-ef6de29eec0e 10402 <?xml version="1.0" encoding="UTF-8"?> <rule><visibility>polite-blocking</visibility><reachability><cond><epas-reachability source="Human"/><epas-reachability source="human-manual-override"/><epas-reachability source="cupc"/><when reachability-status="vacation"><epas-status source="*" status="vacation"/></when><when reachability-status="away"><epas-status source="*" status="away"/> </when><when reachability-status="busy"><epas-status source="*" status="busy"/></when><when reachability- status="available"><or><epas-status source="any-im" status="available"/><epas-status source="cupc1.1" status="available"/><epas-status source="Cisco Unified Mobile Communicator" status="available"/><epas-status source="Presence Web Service" status="available"/></or></when><else reachability-status="unavailable"/></cond> </reachability></rule> f 1263567018 admin:
Here the status is also "polite-blocking", which I cannot set using SOAP... I really hope someone here can help me with this problem. Any suggestion would be highly appreciated.
Thanks a lot in advance, Steffen |