Sametime: Secrets URLs: Difference between revisions
Line 13: | Line 13: | ||
{"PolicyInfo":[{"policyWeight":"1","policyType":"USER","policyProduct":"av","policyId":"av.default.policy"}, | {"PolicyInfo":[{"policyWeight":"1","policyType":"USER","policyProduct":"av","policyId":"av.default.policy"}, | ||
{"policyWeight":"1","policyType":"USER","policyProduct":"im","policyId":"im.default.policy"}, | {"policyWeight":"1","policyType":"USER","policyProduct":"im","policyId":"'''im.default.policy'''"}, | ||
{"policyWeight":"1","policyType":"USER","policyProduct":"ms","policyId":"ms.default.policy"}, | {"policyWeight":"1","policyType":"USER","policyProduct":"ms","policyId":"ms.default.policy"}, | ||
{"policyWeight":"1","policyType":"USER","policyProduct":"sc","policyId":"sc.default.policy"}, | {"policyWeight":"1","policyType":"USER","policyProduct":"sc","policyId":"sc.default.policy"}, | ||
Line 21: | Line 21: | ||
{"policyWeight":"0","policyType":"USER","policyProduct":"sc","policyId":"sc.anonymous.policy"}]} | {"policyWeight":"0","policyType":"USER","policyProduct":"sc","policyId":"sc.anonymous.policy"}]} | ||
to get the information from a policy | |||
* http: //<system_console_server>:9080/stpolicy/policy/im.default.policy | |||
Get policies from System Console, return in json format | |||
'''Example''': | |||
'''http: //<system_console_server>:9080/stpolicy/policy/all''' | |||
Result: | |||
{"PolicyInfo":[{"policyXml":"<?xml version=\"1.0\"?><p:policy-template xmlns:p=\"http:\/\/www.ibm.com\/sametime\/console\/policy-template\" | |||
xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema\"><p:policy-attribute-group id=\"imserver.policygroup.chat\" label=\"im.policygroup.chat.label\" | |||
description=\"im.policygroup.chat.desc\" visible=\"true\" ><p:policy-attribute id=\"im.2019\" type=\"boolean\" current-value=\"0\" default-value=\"1\" master- | |||
attribute-link=\"null\" possible-value-labels=\"null\" possible-values=\"null\" label=\"im.2019. | |||
...... | |||
== UserInfoServlet == | == UserInfoServlet == |
Revision as of 19:34, 24 February 2015
Policies
- http: //<system_console_server>:9080/stpolicy/policy/all
Get policies from System Console, return in json format
Example:
http: //<system_console_server>:9080/stpolicy/policy/all Result: {"PolicyInfo":[{"policyWeight":"1","policyType":"USER","policyProduct":"av","policyId":"av.default.policy"}, {"policyWeight":"1","policyType":"USER","policyProduct":"im","policyId":"im.default.policy"}, {"policyWeight":"1","policyType":"USER","policyProduct":"ms","policyId":"ms.default.policy"}, {"policyWeight":"1","policyType":"USER","policyProduct":"sc","policyId":"sc.default.policy"}, {"policyWeight":"0","policyType":"USER","policyProduct":"im","policyId":"im.anonymous.policy"}, {"policyWeight":"0","policyType":"USER","policyProduct":"av","policyId":"av.anonymous.policy"}, {"policyWeight":"0","policyType":"USER","policyProduct":"ms","policyId":"ms.anonymous.policy"}, {"policyWeight":"0","policyType":"USER","policyProduct":"sc","policyId":"sc.anonymous.policy"}]}
to get the information from a policy
- http: //<system_console_server>:9080/stpolicy/policy/im.default.policy
Get policies from System Console, return in json format
Example:
http: //<system_console_server>:9080/stpolicy/policy/all Result: {"PolicyInfo":[{"policyXml":"<?xml version=\"1.0\"?><p:policy-template xmlns:p=\"http:\/\/www.ibm.com\/sametime\/console\/policy-template\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema\"><p:policy-attribute-group id=\"imserver.policygroup.chat\" label=\"im.policygroup.chat.label\" description=\"im.policygroup.chat.desc\" visible=\"true\" ><p:policy-attribute id=\"im.2019\" type=\"boolean\" current-value=\"0\" default-value=\"1\" master- attribute-link=\"null\" possible-value-labels=\"null\" possible-values=\"null\" label=\"im.2019. ......
UserInfoServlet
Get information from Sametime Community about users
- http: //<community_server>/servlet/UserInfoServlet?operation=3&setid=1&userId=<LDAP_Query_string>
Example:
In this case i using TDS as LDAP
http: //<community_server>/servlet/UserInfoServlet?operation=3&setid=1&userId=uid=ebasso Returns: <userinfo> <user id="uid=ebasso"> <field name="MailAddress" type="" error="myemailaddress"/> <field name="Name" type="" error="Enio Basso"/> <field name="Title" type="" error="Sametime Specialist"/> <field name="Location" type="" error="UNAVAILABLE"/> <field name="Telephone" type="" error="UNAVAILABLE"/> <field name="Photo" type="image/jpeg">/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgK .../uj+OafUCWK4hnxATkmLLDpx0NNFpAwBlxvHB+c9uKzrseQYpIvlbypBkegNbJ5OaNtg3P/9k=</field> </user> </userinfo>
Notes:
No spaces in url, you must change for the characters "%20". Example: userId=cn=Enio%20Basso
Ver também
- Instalando o IBM Sametime no Linux
- Configurando conversão de documentos do Sametime 8.5
- Sametime: Comandos Uteis