Sametime: Secrets URLs

From Wiki

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"}]}


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